Skip to content

Instantly share code, notes, and snippets.

View astr0sl0th's full-sized avatar
💭
Rock'n'Roll 🤘🏻

Joe astr0sl0th

💭
Rock'n'Roll 🤘🏻
  • Function & Form
  • London
View GitHub Profile
@majdiyassin20
majdiyassin20 / Gdrive_Folder_Downloader.sh
Created January 19, 2021 13:34
Download Shared Folder From Google Drive Using Terminal.
#!/bin/bash
fileid="$1"
filename="$2"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
## run chmod +x gdrive_folder_download.sh
## ./gdrive_folder_download.sh <fileID> <fileName>
## Donate BTC : 1Ndmbt6hZn7EEwZYMYKUJWQww1HPhj1uSN
@astr0sl0th
astr0sl0th / country-choices.js
Created April 5, 2018 15:39
I have created a new choices object that contains a list of countries. Hopefully others will find this useful and save time!
const countries = new Choices('.element', {
choices: [
{ value: 'Afghanistan', lable: 'AF' },
{ value: 'Åland Islands', lable: 'AX' },
{ value: 'Albania', lable: 'AL' },
{ value: 'Algeria', lable: 'DZ' },
{ value: 'American Samoa', lable: 'AS' },
{ value: 'AndorrA', lable: 'AD' },
{ value: 'Angola', lable: 'AO' },
{ value: 'Anguilla', lable: 'AI' },