Skip to content

Instantly share code, notes, and snippets.

@mokanfar
mokanfar / useful.sh
Last active August 5, 2020 19:45
Common Bash Commands
#=====tar up missing htaccess hidden files recursively from a parent directory and preserve folder structure=====#
find ./magento_dir -name "\.htaccess" | tar -cf missing_htaccess_files_and_dirs -T -
#=====general settings when setting up shell=====#
sudo chmod -R 755 /var/www
sudo chown -R $USER:$GROUP <dir>
sudo usermod -a -G root $USER
#=====insert 1 line beginning of file before everything else=====#
@mokanfar
mokanfar / cVimrc
Last active May 30, 2023 19:31
cVim Chrome Extension Settings
let scrollstep = 500
set noautofocus
set scalehints
set typelinkhints
let hintcharacters= "asdf"
let blacklists = ["https://www.notion.so/*","https://rootnroll.com/d/fish-shell/*","https://docs.google.com/spreadsheets/*"]
let mapleader = ","
unmap K e J j s d k w i m M o b t gg <S-g> <C-f> <C-k> <C-6>