there's a bash script for this now: clirepo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
/* escape quotes and commas in contents to be comma-separated */ | |
function wrapCsvContents(content) { | |
if (typeof(content) === 'string') { | |
if (content.replace(/ /g, '').match(/[\s,"]/)) { | |
return '"' + content.replace(/"/g, '""') + '"'; | |
} | |
} | |
return content; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Jitai | |
// @version 1.3.2 | |
// @description Display WaniKani reviews in randomized fonts, for more varied reading training. | |
// @author Samuel (@obskyr) | |
// @copyright 2016-2018, obskyr | |
// @license MIT | |
// @namespace http://obskyr.io/ | |
// @homepageURL https://gist.github.com/obskyr/9f3c77cf6bf663792c6e | |
// @icon http://i.imgur.com/qyuR9bD.png |
there's a bash script for this now: clirepo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import csv | |
filename = 'inputsheet.csv' | |
delimiter = ',' | |
with open(filename, newline='') as csvfile: | |
reader = csv.reader(csvfile, delimiter=delimiter) |
list collaborators
-X GET
is optional
$ curl -u 'USERNAME' -X GET https://api.github.com/repos/USERNAME/REPONAME/collaborators
add a collaborator
$ curl -u 'USERNAME' -X PUT -d '' https://api.github.com/repos/USERNAME/REPONAME/collaborators/COLLABORATORNAME
delete a collaborator
-d ''
is optional
$ curl -u 'USERNAME' -X DELETE -d '' https://api.github.com/repos/USERNAME/REPONAME/collaborators/COLLABORATORNAME
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gcc start GNU compiler | |
# -Wall [optional] flag to show warnings (all possible warnings) | |
# $DESIREDEXECUTABLENAME [optional] name of resulting executable file; otherwise gcc auto-outputs to a.out | |
# $MYFILE.c C file that should get compiled | |
gcc -Wall $DESIREDEXECUTABLENAME $MYFILE.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~ find in $HOME | |
# fdl file types: f = file, d = directory, l = symbolic link | |
# $GROUP current group permission | |
# -exec do something with found files | |
# :$NEWGROUP new group permission (needs leading colon! -> chown owner:group) | |
# {} placeholder for each found file | |
# \; escape the semicolon that ends the -exec part of the command | |
find ~ -type fdl -group $GROUP -print -exec chown :$NEWGROUP {} \; |
NewerOlder