A command line script to retrieve json for all of your gists.
github.sh [username] [password] [total number of gists] [oath or user:password]| license: gpl-3.0 |
| # 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)) |
| """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 | |
| """ | |
This is content converted from Markdown!
<script src="https://gist.github.com/HaiNguyen007/2b9d0f723bb02f97252ea5ae697c3249.js"></script>Here's a JSON sample:
{| # 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 |
Copied from: xclip -t clipboard video type - Tìm với Google - https://www.google.com/search?ei=khAyXa7JMuXKmAW9iJmICQ&q=xclip+-t+clipboard+video+type&oq=xclip+-t+clipboard+video+type&gs_l=psy-ab.3...11895.13133..13147...3.0..0.88.862.10......0....1..gws-wiz.0j_ClBSCxms&ved=0ahUKEwiu2pHr0sHjAhVlJaYKHT1EBpEQ4dUDCAo&uact=5 xclip -t clipboard video type
| 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 |