Skip to content

Instantly share code, notes, and snippets.

@HaiNguyen007
HaiNguyen007 / README.md
Created July 24, 2019 15:13 — forked from hrwgc/README.md
download all of your gists from gist.github.com

gist list

A command line script to retrieve json for all of your gists.

usage:

github.sh [username] [password] [total number of gists] [oath or user:password]
@HaiNguyen007
HaiNguyen007 / .block
Created July 24, 2019 15:12 — forked from mbostock/.block
The Gist to Clone All Gists
license: gpl-3.0
@HaiNguyen007
HaiNguyen007 / get_gists.py
Created July 24, 2019 15:10 — forked from leoloobeek/get_gists.py
Download all gists for a specific user
# first: mkdir user && cd user && cp /path/to/get_gists.py .
# python3 get_gists.py user
import requests
import sys
from subprocess import call
user = sys.argv[1]
r = requests.get('https://api.github.com/users/{0}/gists'.format(user))
@HaiNguyen007
HaiNguyen007 / get_gists.py
Created July 24, 2019 15:10 — forked from epogrebnyak/get_gists.py
Download all gists for a specific user
"""Download all gists for a specific user in a local directory using git.
Make a directory for a <user> and copy this file there before running.
mkdir <user>
cd <user>
curl https://gist.githubusercontent.com/epogrebnyak/c14d6d2ca2740d1e1018e701ea00472a/raw/ec44560c8fd8fb92ca81bafa48b0a08272138104/get_gists.py > get_gists.py
python3 get_gists.py user
"""
@HaiNguyen007
HaiNguyen007 / hello.md
Last active July 24, 2019 15:31 — forked from jasonjoh/test.md
Hello World Markdown
We couldn’t find that file to show.
@HaiNguyen007
HaiNguyen007 / pbedit.sh
Created July 21, 2019 13:15 — forked from TooTallNate/pbedit.sh
`pbedit` command: Edit the clipboard in your $EDITOR
# Edit the clipboard in your $EDITOR
# Add this to your `.bashrc` file
function pbedit () {
local tmpfile=`mktemp`
pbpaste > $tmpfile
$EDITOR $tmpfile
pbcopy < $tmpfile
rm -f $tmpmfile
}
export -f pbedit
import -window root -quality 98 /tmp/screenshot.png
xclip -i < /tmp/screenshot.png
rm /tmp/screenshot.png
import -window root -quality 98 /tmp/screenshot.png
xclip -i < /tmp/screenshot.png
rm /tmp/screenshot.png