tays vimrc
git clone https://github.com/TaylorHawkes/tays_vimrc.git ~/.vim && ln -s ~/.vim/.vimrc ~/.vimrc
Here is what the above code is Doing:
1. Cloning the repo into ~/.vim
2. Creating a symlink to ~/.vim/.vimrc
git clone https://github.com/TaylorHawkes/tays_vimrc.git ~/.vim && ln -s ~/.vim/.vimrc ~/.vimrc
Here is what the above code is Doing:
1. Cloning the repo into ~/.vim
2. Creating a symlink to ~/.vim/.vimrc
// To copy one file scp -i path/to/key file/to/copy user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/file // To copy an entire directory scp -i path/to/key -r directory/to/copy user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/directory Here is what the above code is Doing: 1. The -i flag is used to specify the path to the key file. 2. The -r flag is used to copy an entire directory….
# A one liner if [ $VAR1 -ne 0 ] && [ $VAR2 -ne 0 ]; then \ echo “your action”; \ elif [ $VAR1 -eq 0 ] && [ $VAR2 -ne 0 ]; then \ echo “more actions”; \ else echo “other action”; \ fi Here is what the above code is Doing: 1….
wget -mkEpnp http://example.org Here is what the above code is Doing: 1. -m: mirror the website 2. -k: convert links to local links 3. -E: add .html extension to files 4. -p: download all files necessary to display the page 5. -nH: don’t create a hierarchy of directories 6. -P: specify the directory prefix where…
git config user.name Here is what the above code is Doing: 1. git config –global user.name “Your Name” 2. git config –global user.email “youremail@domain.com” 3. git config –global user.name 4. git config –global user.email
#how to copie files using ssh #copy a file from B to A while logged into B: scp /path/to/file username@a:/path/to/destination #to copy a file from B to A while logged into A: scp username@b:/path/to/file /path/to/destination Here is what the above code is Doing: 1. ssh into the remote machine 2. cd to the directory where…
please subscribe my channel – https://bit.ly/2Me2CfB apt update wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb apt install ./google-chrome-stable_current_amd64.deb Here is what the above code is Doing: 1. Update the apt package list. 2. Download the latest version of Google Chrome. 3. Install the downloaded package.