Skip to content

Instantly share code, notes, and snippets.

View amjltc295's full-sized avatar

Ya-Liang Chang (Allen) amjltc295

View GitHub Profile
inoremap jj <Esc>
inoremap wq <Esc>:wq<CR>
map wq <Esc>:wq<CR>
map ww <Esc>:w<CR>
map qq <Esc>:q!<CR>
@amjltc295
amjltc295 / gd-drive-file-download.sh
Created September 17, 2019 08:20 — forked from vithalreddy/gd-drive-file-download.sh
Shell Script To Download Google Drive Files from terminal
#!/bin/bash
read -p "Enter File Id: " fileid
read -e -p "Enter File Dir: " "path_to_download_dir" dir #replce with your download dir path ~/Downloads
cd ~/$dir
echo "File will be downloaded in dir: ~/{$dir}"
curl -c ./$fileid -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
@amjltc295
amjltc295 / new_TWGC_setup.sh
Last active October 4, 2019 09:48
Public new TWGC
echo "============================================================="
echo "1. Update and install zsh, curl, git, tmux"
sudo apt update
sudo apt -y install zsh curl git tmux
echo "============================================================="
echo "2. Install vim8 and vimrc"
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y ppa:jonathonf/vim
sudo apt-get -y update