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 bash | |
usage () { | |
echo "Usage: $( basename $0 ) <e|d>" | |
} | |
if [ "$#" -ne 1 ]; then | |
usage | |
exit 1 | |
fi |
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 bash | |
num=4 | |
if [[ "${1}" -gt "0" ]]; then | |
num="${1}" | |
fi | |
openssl rand -hex "${num}" |
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 bash | |
# Configure the macOS dock | |
defaults delete com.apple.dock | |
killall Dock | |
sleep 5 | |
defaults write com.apple.dock autohide -bool yes | |
defaults write com.apple.dock minimize-to-application -bool yes |
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 ruby | |
# coding: utf-8 | |
h1 = Hash.new(0) | |
h1[:a] += 1 | |
p h1 #=> {:a=>1} | |
h2 = Hash.new({a: 0}) | |
h2[:a][:a] += 1 | |
p h2 #=> {} |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Control+[ to EISUU+Escape</name> | |
<identifier>private.lctrl_lbracket.escape_eisuu</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::BRACKET_LEFT, ModifierFlag::CONTROL_L, | |
KeyCode::ESCAPE, KeyCode::JIS_EISUU | |
</autogen> |
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 ruby | |
# coding: utf-8 | |
require 'socket' | |
s = TCPSocket.open('number.quals.seccon.jp', 31337) | |
count = 1 | |
while line = s.readline('?') | |
puts line |
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/sh | |
# 実行したディレクトリにパンツ先生のプリキュア芸術の泉を爆誕させる | |
# http://diary.fc2.com/cgi-sys/ed.cgi/kazuharoom/ | |
usage(){ | |
echo "Usage: `basename $0` YEAR(yyyy) [MONTH(m)]" | |
exit 1 | |
} |
NewerOlder