Skip to content

Instantly share code, notes, and snippets.

R SATO rsato

Block or report user

Report or block rsato

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rsato /
Last active Mar 20, 2019
Download YouTube video (youtube-dl wrapper)
# Dependencies:
# - youtube-dl
# - ffmpeg
# Preparing a "list.txt" that is a list of YouTube video IDs.
# (Video ID is a value of "v" key in YouTube URL: )
# Tips:
# - To expand IDs in the YouTube playlist, use "youtube-dl --get-id" command.
rsato /
Created Feb 26, 2016
import geb.Browser {
go ''
rsato / openssl-export-ciphersuites.txt
Last active Aug 29, 2015
Show EXPORT Ciphersuites on OpenSSL
View openssl-export-ciphersuites.txt
$ openssl ciphers -v EXPORT
EXP-EDH-RSA-DES-CBC-SHA SSLv3 Kx=DH(512) Au=RSA Enc=DES(40) Mac=SHA1 export
EXP-EDH-DSS-DES-CBC-SHA SSLv3 Kx=DH(512) Au=DSS Enc=DES(40) Mac=SHA1 export
EXP-ADH-DES-CBC-SHA SSLv3 Kx=DH(512) Au=None Enc=DES(40) Mac=SHA1 export
EXP-DES-CBC-SHA SSLv3 Kx=RSA(512) Au=RSA Enc=DES(40) Mac=SHA1 export
EXP-RC2-CBC-MD5 SSLv3 Kx=RSA(512) Au=RSA Enc=RC2(40) Mac=MD5 export
EXP-RC2-CBC-MD5 SSLv2 Kx=RSA(512) Au=RSA Enc=RC2(40) Mac=MD5 export
EXP-KRB5-RC2-CBC-SHA SSLv3 Kx=KRB5 Au=KRB5 Enc=RC2(40) Mac=SHA1 export
EXP-KRB5-DES-CBC-SHA SSLv3 Kx=KRB5 Au=KRB5 Enc=DES(40) Mac=SHA1 export
EXP-KRB5-RC2-CBC-MD5 SSLv3 Kx=KRB5 Au=KRB5 Enc=RC2(40) Mac=MD5 export
rsato / target-list.txt
Created Nov 22, 2014
Webサイト #どうして解散するんですか でツイートすると追加される宛先アカウントリスト
View target-list.txt
rsato / sequence_sourceforge-redirect-to-adsrvmedia.txt
Last active Aug 29, 2015
"sourceforge" redirect to "adsrvmedia"
View sequence_sourceforge-redirect-to-adsrvmedia.txt
click link text
redirect (HTTP 307)
iframe src
rsato / JAL-2-step-verification-password-list
Last active Aug 29, 2015
JAL 2-step verification password list. It is the birthday "yyyyMMdd" format. cf. JALホームページにおける2段階認証の実施について .
View JAL-2-step-verification-password-list
rsato / file0.groovy
Created May 15, 2014
「一反田えー(1反田A)」から「千反田える」までを生成する ref:
View file0.groovy
def alphabetList = ["えー", "びー", "しー", "でぃー", "いー", "えふ", "じー", "えいち", "あい", "じぇい", "けー", "える", "えむ", "えぬ", "おー", "ぴー", "きゅー", "あーる", "えす", "てぃー", "ゆー", "ぶい", "だぶりゅー", "えっくす", "わい", "ぜっと"]
def range = 1..1000
range.eachWithIndex {num, i->
println "${arabicNumToKanjiNum(num)}反田${alphabetList[i%alphabetList.size()]}"
// アラビア数字を漢数字に変換します
def arabicNumToKanjiNum(long num){
def kanjiNumUnit = ["", "", "", "", ""]
rsato / file0.txt
Created May 3, 2014
シークヮーサーとファイアーエムブレムの表記ゆれを正規表現で表す ref:
View file0.txt
rsato / PC98Beep.cs
Last active Aug 29, 2015
PC98の起動音をC# とWindows PowerShellで
View PC98Beep.cs
using System;
class PC98Beep
public static void Main(string[] args)
// Console.Beep(int frequency, int duration);
Console.Beep(2000, 120); // pi
Console.Beep(1000, 120); // po
rsato /
Last active Aug 29, 2015
AndroidアプリでNetworkOnMainThreadExceptionを避けつつTwitter4Jを使用したアプリ連携を行う #Twitter4J ref:
public class TwitterOAuthRequestTokenCallbacks implements LoaderCallbacks<RequestToken> {
private Context mContext;
private Twitter mTwitter;
public TwitterOAuthRequestTokenCallbacks(Context context, Twitter twitter) {
mContext = context;
mTwitter = twitter;
You can’t perform that action at this time.