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
=begin | |
/***** | |
tiananmen.rb | |
*****/ | |
Great Firewall | |
=end | |
Earthquake.init do | |
output_filter do |item| | |
next unless item["text"] |
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
=begin | |
/***** | |
decrypt.rb | |
*****/ | |
Synopsis: | |
難読化されたツイートをデコードするプラグインです。 | |
Avaliable formats: | |
Base64, gzip, rot13, rot47 |
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
=begin | |
/***** | |
encrypt.rb | |
*****/ | |
様々な難読化をなしたうえでツイートするプラグインです。 | |
Avaliable formats: | |
Base64, gzip, lzma, rot13, rot47 | |
Dependeicies: |
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
!keycode n = Key Shift+Key mode_switch+Key mode_switch+Shift+Key | |
keycode 49 = grave asciitilde grave U2368 | |
keycode 10 = 1 exclam U00A8 U221E | |
keycode 11 = 2 at U00AF U2341 | |
keycode 12 = 3 numbersign braceleft U2342 | |
keycode 13 = 4 dollar U2264 U2360 | |
keycode 14 = 5 percent equal U2248 | |
keycode 15 = 6 asciicircum U2265 U2338 | |
keycode 16 = 7 ampersand braceright U236F | |
keycode 17 = 8 asterisk U2260 U2364 |
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
_IB←32 | |
_SD←123456789 362436069 521288629 88675123 | |
∇R←A Xor B | |
R←(_IB⍴2)⊥1=((_IB⍴2)⊤B)+(_IB⍴2)⊤A | |
⍫ | |
∇R←BITS Shl IN | |
R←(_IB⍴2)⊥(BITS↓(_IB⍴2)⊤IN),BITS⍴0 | |
⍫ | |
∇R←BITS Lshr IN | |
R←(_IB⍴2)⊥(BITS⍴0),(-BITS)↓(_IB⍴2)⊤IN |
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
⍝ _IB: 整数のビット幅 | |
⍝ _SD: SEED | |
⍝ _AC: sampleの小数点制度 | |
⍝ _TC: 試行回数 | |
_IB←32 | |
_SD←123456789 362436069 521288629 88675123 | |
_AC←10*6 | |
_TC←10 |
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
a = %w(あ い う え お | |
か き く け こ | |
さ し す せ そ | |
た ち つ て と | |
な に ぬ ね の | |
は ひ ふ へ ほ | |
ま み む め も | |
や ゆ よ | |
ら り る れ ろ | |
わ を ん |
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
mkdir -p ~/.config/systemd/user | |
cd ~/.config/systemd/user | |
vi mezamashi.service mezamashi.timer | |
systemctl --user daemon-reload | |
# 音が鳴るか確認するには下記を実行 | |
# systemcti --user start mezamashi.service | |
# systemcti --user stop mezamashi.service | |
systemctl --user enable mezamashi.timer |
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
[Unit] | |
Description=Play shutdown sound via ALSA | |
ConditionPathExists=/usr/local/share/sounds/Shutdown.wav | |
Before=shutdown.target alsa-store.service | |
DefaultDependencies=no | |
[Service] | |
ExecStart=/usr/bin/aplay /usr/local/share/sounds/Shutdown.wav | |
[Install] |
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
# cat >> /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf << __END__ | |
network={ | |
ssid="eduroam" | |
identity="hoge" | |
password="fuga" | |
proto=RSN | |
pairwise=CCMP | |
group=CCMP TKIP | |
key_mgmt=WPA-EAP | |
eap=PEAP |
OlderNewer