Skip to content

Instantly share code, notes, and snippets.

Avatar

Walter de Back wdeback

View GitHub Profile
@vladalive
vladalive / gdrive_download.md
Created May 16, 2019
Download Google Drive files from linux terminal via wget
View gdrive_download.md

Setup:

  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 "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
  wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
  rm -rf /tmp/cookies.txt
}
@maxogden
maxogden / bibtex.png
Last active Jun 18, 2022
How to make a scientific looking PDF from markdown (with bibliography)