Skip to content

Instantly share code, notes, and snippets.

@pvbhanuteja
pvbhanuteja / gist:0bbb95dd9a1d18c50fae4e97a7133f03
Created May 28, 2020 02:11
linux command to download a drive file
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
@pvbhanuteja
pvbhanuteja / tmux-cheatsheet.markdown
Created May 25, 2020 11:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pvbhanuteja
pvbhanuteja / README.md
Created May 25, 2020 11:31 — forked from hxtree/README.md
Linux Screen

Linux Screens

Linux screens are great for running background tasks and are especially helpful when running a long process on a remote server due to SSH timelimits.

Start a new screen

screen

(Run commands for tasks)

Detach from a screen

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: