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
package main | |
import ( | |
"bufio" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"os" |
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
package main | |
import ( | |
"encoding/asn1" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"os" | |
"github.com/k-sone/snmpgo" |
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
#!/bin/bash | |
# usage: ./create-install-domain.sh <github_repo> <domain> | |
# example: ./create-install-domain.sh kaorimatz/dotfiles dot.kaorimatz.org | |
set -e | |
set -u | |
S3_REGION=ap-northeast-1 | |
S3_HOSTED_ZONE_ID=Z2M4EHUR26P7ZW |
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 python | |
import sys | |
import fontforge | |
if __name__ == '__main__': | |
if len(sys.argv) != 2 and len(sys.argv) != 4: | |
print('usage: {} <font> [<code-point-start> <code-point-end>]'.format(sys.argv[0])) | |
sys.exit(1) |
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
#!/bin/bash | |
set -e | |
DBUS_WATCH_EXPR="\ | |
type='signal',\ | |
sender='org.fedoraproject.Setroubleshootd',\ | |
interface='org.fedoraproject.SetroubleshootdIface',\ | |
member='alert'\ | |
" |
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
(function () { | |
function contains(clazz) { | |
return 'contains(concat(" ", normalize-space(@class), " "), " ' + clazz + ' ")'; | |
} | |
mappings.addUserMap( | |
[modes.NORMAL], | |
['v'], | |
'Open links contained in a selected tweat', |
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
#!/bin/bash | |
set -e | |
if [ $# -ne 2 ]; then | |
echo "usage: $0 <base_uri> <target_dir_path>" | |
exit 1; | |
fi | |
BASE_URI=$1 |
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
(function() { | |
let completer = function (context, args) { | |
let feeds = buffer.pageInfo.f[0]; | |
let completions = []; | |
for (let [title, template] in feeds(true)) { | |
let dom = util.xmlToDom(template, document); | |
let url = dom.firstChild.href; | |
completions.push([url, title]); | |
} |
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 python | |
import sys | |
import fontforge | |
if __name__ == '__main__': | |
if len(sys.argv) != 5: | |
print 'usage: %s <input-font> <output-font> <hhead-ascent> <hhead-descent>' % sys.argv[0] | |
else: | |
font = fontforge.open(sys.argv[1]) |
NewerOlder