Posts

Showing posts with the label Backup

MERN stack (and short Android) dev notes: Feb to Apr 2025 (includes Powershell scripts for copying and listing swdev project source code)

Last updated on 7 Apr. 2025 Quick note The (Windows) Powershell scripts I use mainly for copying and listing software development project source code folders and files are available on my public GitHub repo:  https://github.com/ravisiyer/PS-Scripts  . Detailed notes 7 Apr 2025 Why Companies Are Moving Away from Next.js,  https://analyticsindiamag.com/ai-features/why-companies-are-moving-away-from-next-js/  , 28 Mar. 2025. ---------------------- 26 Mar. 2025 To create a directory/folder hierarchy: New-Item -Path VSCode\HTML-CSS-JS\ -ItemType Directory -Force If they don't exist, creates VSCode folder and HTML-CSS-JS folder within it. ================= IDEA IntelliJ Increase font size: Alt + Shift + period ------------ Android related How to save and retrieve Date in SharedPreferences, https://stackoverflow.com/questions/12343014/how-to-save-and-retrieve-date-in-sharedpreferences https://docs.oracle.com/javase/8/docs/api/java/lang/System.html#currentTimeMillis-- https:...

Windows Powershell scripts: Copy without node_modules and .next folders/directories; List node_modules and .next folders

Last updated on 10 Mar. 2025 5 Mar. 2025 Update I am too squeezed for time to update this post. The latest scripts are available on my public GitHub repo:  https://github.com/ravisiyer/PS-Scripts . Notes roughly after 5 Mar. 2025 are put up on MERN stack dev notes: Feb to Mar 2025 (includes Powershell scripts for copying and listing swdev project source code),  https://raviswdev.blogspot.com/2025/02/mern-stack-dev-notes-feb-2025.html . end- 5 Mar. 2025 Update Quick-Info CopyWoNmnx.ps1 Powershell script that copies contents of a folder/directory excluding node_modules and .next folders. It uses robocopy command to do the main work. ListNmnx.ps1 Powershell script that lists node_modules and .next folders in a folder/directory. It ignores subfolders within the node_modules or .next folders it finds. RemoveNmnxInCurDir.ps1 (very simple) Powershell script that deletes (after confirmation prompt) node_modules and .next folders in current directory after user conf...

Windows PowerShell script and commands to list files and folders modified in past x days excluding specified folders like .git and node_modules (helps in backup)

Last updated on 5 Mar. 2025 5 Mar. 2025 Update I am too squeezed for time to update this post. The latest scripts are available on my public GitHub repo:  https://github.com/ravisiyer/PS-Scripts  . end- 5 Mar. 2025 Update Quick-Info ExcludeDirsRecurseListFilesDirs.ps1 : Recursively outputs Get-ChildItem returned object for files and directories of current working directory OR user specified directory but excludes folders and their contents present in $ExcludeFolders variable in script. Usage: script-name [optional-path] | next-cmd  ... The next-cmd is important for making this script useful. An example: Lists last modified time followed by full path for each folder & file in current directory that was last modifed on 4.05.2024 (4th May) or 5.05.2024 excluding folders whose names are in $ExcludeFolders and such folders' contents script-name | where { ((get-date('5.05.2024'))-$_.LastWriteTime).days -lt 1 } |  ForEach-Object {"$($_.LastWriteTime) $($_.FullName)"}...