This file contains hidden or 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 . -maxdepth 3 -type d -name '.git' \ | |
-exec sh -c '(cd {}/.. && pwd && echo $(basename $(pwd)) && \ | |
curl -H "Authorization: token $GITHUB_TOKEN" --include --request POST \ | |
--data "{\"name\":\"hacktoberfest\",\"color\":\"ff4499\"}" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
"https://api.github.com/repos/paazmaya/$(basename $(pwd))/labels")' ';' |
This file contains hidden or 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 . -maxdepth 3 -type f -name '*_tape.js' \ | |
-exec sh -c '(cd $(dirname {}) && pwd && base=$(basename {}) && git mv $base ${base/tape/test} )' ';' |
This file contains hidden or 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
/** | |
* Convert unix timestamps to ISO times in frontmatter | |
*/ | |
'use strict'; | |
const fs = require('fs'), | |
path = require('path'), | |
yfm = require('yaml-front-matter'); |
This file contains hidden or 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
/** | |
* Get the files attached on a GitHub issue and its comments | |
* | |
* @see https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue | |
* @see https://developer.github.com/v3/media/#comment-body-properties | |
*/ | |
'use strict'; | |
const fs = require('fs'); | |
const got = require('got'); |
This file contains hidden or 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
// speakerdeck.js | |
// Get a list of decks on the given page | |
(function () { | |
var talks = document.querySelectorAll(".talk.public"); | |
var data = []; | |
for (var i = 0; i < talks.length; i++) { | |
var talk = talks[i]; | |
var item = {}; | |
if (talk) { |
This file contains hidden or 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
hg log -r "removes('**')" --template "{rev}:\n{file_dels % '{file}\n'}\n" | grep -e '\.mp4' -e '\.avi' -e '\.mkv' > ../deleted-videos | |
# hg convert --filemap deleted-videos.map | |
awk '{print "exclude \"" $0 "\""}' ../deleted-videos > ../deleted-videos.map |
This file contains hidden or 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 . -maxdepth 8 -type f -name '*.haml' -exec sh -c 'expand -t 2 {} > {}.new && mv {}.new {}' ';' |
This file contains hidden or 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
/** | |
* node-xperia-camera-rename.js | |
* Juga Paazmaya <[email protected]> | |
* | |
* Take a folder that originates from Sony Xperia Z2 camera | |
* and rename the burst images, so that they can exist in a | |
* same folder. | |
* | |
* node node-xperia-camera-rename.js . | |
*/ |
NewerOlder