Skip to content

Instantly share code, notes, and snippets.

Vlad Alive vladalive

Block or report user

Report or block vladalive

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vladalive /
Created May 16, 2019
Download Google Drive files from linux terminal via wget


  1. Add this code to your ~/.bash_aliases file.
function gdrive_download () {
  CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
  wget --load-cookies /tmp/cookies.txt "$CONFIRM&id=$1" -O $2
  rm -rf /tmp/cookies.txt
View typoglycemia.rb
text.gsub(/\w+/){ |w| a = w.split(/^(.)(.*)(.+)$/); a[2] = a[2] && a[2].split(//).shuffle; a.join}
You can’t perform that action at this time.