How do you recursively unzip archives in a directory and its subdirectories from the Unix command-line?

If you want to extract the files to the respective folder you can try this find . -name “*.zip” | while read filename; do unzip -o -d “`dirname “$filename”`” “$filename”; done; A multi-processed version for systems that can handle high I/O: find . -name “*.zip” | xargs -P 5 -I fileName sh -c ‘unzip -o … Read more

How do I set up Vim autoindentation properly for editing Python files?

I use this on my macbook: ” configure expanding of tabs for various file types au BufRead,BufNewFile *.py set expandtab au BufRead,BufNewFile *.c set expandtab au BufRead,BufNewFile *.h set expandtab au BufRead,BufNewFile Makefile* set noexpandtab ” ——————————————————————————– ” configure editor with tabs and nice stuff… ” ——————————————————————————– set expandtab ” enter spaces when tab is … Read more

Visual Studio Code – Convert spaces to tabs

There are 3 options in .vscode/settings.json: // The number of spaces a tab is equal to. “editor.tabSize”: 4, // Insert spaces when pressing Tab. “editor.insertSpaces”: true, // When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents. “editor.detectIndentation”: true editor.detectIndentation detects it from your file, you have to disable it. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)