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
#!/bin/bash | |
for f in `ls $1/*.txt` | |
do | |
name=`grep "DEFINITIONS" $f|grep "BEGIN"|sed -e 's/^[ \t]*//g'|cut -f1 -d" "` | |
mv $f $1/$name.mib | |
done |
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
// ==UserScript== | |
// @name sony kuso | |
// @version 0.1 | |
// @description ソニー倒産してくれ頼む | |
// @include * | |
// ==/UserScript== | |
document.body.innerHTML = document.body.innerHTML.replace(/(PS\s*4|PlayStation\s*4|プレステ\s*4|プレイステーション\s*4)/g, '日本だけ発売が遅い$1') |
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
# -*- coding: utf-8 -*- | |
# kenjiskaywalker tweet / earthquake plugin | |
# | |
# superdry: http://shindanmaker.com/43570 | |
# | |
require 'httpclient' | |
require 'nokogiri' | |
Earthquake.init do | |
command :kenji do |
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
# -*- coding: utf-8 -*- | |
# hagiyakisuperdry tweet / earthquake plugin | |
# | |
# superdry: http://shindanmaker.com/43570 | |
# | |
require 'httpclient' | |
require 'nokogiri' | |
Earthquake.init do | |
command :hagi do |
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
while true | |
do | |
CHK_PROC=`ps aux|grep earthquake|grep -v grep|wc -l` | |
if [ ${CHK_PROC} -eq 0 ]; then | |
gnome-terminal -e earthquake | |
sleep 2 | |
fi | |
done |
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
# -*- coding: utf-8 -*- | |
# trans tweet / earthquake plugin | |
# e.g. :trans おはよう => Good morning | |
# :trans fr おはよう => Bonjour | |
# 使えるらしい言語 | |
# ar bg zh-CHS zh-CHT cs da nl en et fi fr de el ht he | |
# hu id it ja ko lv lt no pl pt ro ru sk sl es sv th tr uk vi | |
# | |
# appid取得 http://www.bing.com/developers/appids.aspx | |
# |
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
# -*- coding: utf-8 -*- | |
# cola tweet / earthquake plugin | |
# | |
# e.g. :cola うまい #=> コうまいーラ | |
# | |
Earthquake.init do | |
command :cola do |m| | |
input(":update コ#{m[1]}ーラ") | |
end | |
end |
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
# -*- coding: utf-8 -*- | |
# gyaku tweet | |
# | |
# e.g. :gyaku hoge => egoh | |
# reverseと一緒にしたいけどスキルなくて無理だったおversion | |
Earthquake.init do | |
command %r|^:gyaku\s*(\d+)*\s+(.+)$|, :as => :gyaku do |m| | |
text = m[2] | |
input text.split(//).reverse.join | |
end |
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
# -*- coding: utf-8 -*- | |
# superdry tweet / earthquake plugin | |
# | |
# superdry: http://shindanmaker.com/43570 | |
# | |
require 'httpclient' | |
Earthquake.init do | |
command :byunasahi do | |
url = "http://shindanmaker.com/43570" |
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
# -*- coding: utf-8 -*- | |
# ogyohee tweet / earthquake plugin | |
# | |
# ogyohee: http://shindanmaker.com/152454 | |
# | |
require 'httpclient' | |
Earthquake.init do | |
command :byunogyo do | |
url = "http://shindanmaker.com/152454" |
NewerOlder