Skip to content

Instantly share code, notes, and snippets.

View feisuzhu's full-sized avatar

Proton feisuzhu

View GitHub Profile
@feisuzhu
feisuzhu / cast-mac.sh
Last active August 29, 2015 14:16
screencast
#!/bin/bash
if [ "$1" == "" ]; then
ffmpeg -f avfoundation -list_devices true -i ""
echo Choose input device!
exit 1
fi
FILENAME=$(date '+%Y-%m-%d-%H-%M')
ffmpeg -f avfoundation -i 1 -r 1 -vcodec libx264 $FILENAME-slow.mkv
@feisuzhu
feisuzhu / script.md
Created February 14, 2015 09:07
Newbie Script

括号内的话都不用读


(没有按照剧本来的时候说的话) meirin红美铃

喂剧本不是这么写的啊,重来重来!


@feisuzhu
feisuzhu / cv-4.md
Created October 10, 2014 08:50
Character Voice #4

东风谷早苗

Sanae

信仰 ->
    收集信仰哪家强,守矢神社早苗酱!

八坂神奈子

Kanako

神威 ->

@feisuzhu
feisuzhu / cv-3.md
Last active August 29, 2015 14:07
Character Voice #3

卡牌

五谷丰登:

HarvestCard

春天,我把麻薯种在了地里

地图炮

MapCannon

躺着也能中枪!

@feisuzhu
feisuzhu / cv-2.md
Last active August 29, 2015 14:06
Character Voice #2

卡牌

西行妖

春度满满!

天狗盾

(音效)

光学迷彩

你看不见我..你看不见我..

@feisuzhu
feisuzhu / cv-1.md
Last active August 29, 2015 14:05
Character Voice #1

罪袋

罪袋(女声)
亚拉那一卡?(男声)

罪袋狂欢

乖乖站好♂(男声)

莱瓦汀

灭世之炎怎能轻易躲过?

西行妖

樱落蝶舞,一切都化作虚无吧

要石

@feisuzhu
feisuzhu / skip32.py
Created December 17, 2013 13:35
skip32
# -*- coding: utf-8 -*-
from functools import partial
SKIP32_FTABLE = [
0xa3, 0xd7, 0x09, 0x83, 0xf8, 0x48, 0xf6, 0xf4,
0xb3, 0x21, 0x15, 0x78, 0x99, 0xb1, 0xaf, 0xf9,
0xe7, 0x2d, 0x4d, 0x8a, 0xce, 0x4c, 0xca, 0x2e,
0x52, 0x95, 0xd9, 0x1e, 0x4e, 0x38, 0x44, 0x28,
@feisuzhu
feisuzhu / extractor.py
Created April 30, 2013 08:03
Arkanoid TVI 'Isles.dat' extractor
import re
import struct
import zlib
import os
def ensure_dir(f):
d = os.path.dirname(f)
if not os.path.exists(d):
os.makedirs(d)
@feisuzhu
feisuzhu / sendmsg.php
Created September 27, 2012 13:13
PHP: accept form and send as mail
<?php
$str = '';
foreach($_POST as $k => $v) {
if(is_array($v)) {
$v = implode(', ', $v);
}
$str .= "$k: $v\n";
}
@feisuzhu
feisuzhu / decode.py
Created May 24, 2012 13:23
Reversed an encrypt algorithm of a VB app
tbl1 = 'dBtEGkliy0aLvj61Ph2TIzQSfnY9ArmUFK4Rgs8uWxM7ObwoN3JcCq5VHDeXZp'
tbl2 = 'N04A83D7qTIoBMsyQdVLHPGWwiv59YhFX61RbCxftcmSkJlaEeuOg2pZUKzrnj'
def decode(s):
s = ''.join([tbl2[tbl1.index(i)] for i in s])
s1 = s[0::2]
s2 = s[1::2]
ss1 = [s1[i:i+2] for i in range(0, len(s1), 2)]
ss2 = [s2[i:i+2] for i in range(0, len(s2), 2)]
rst = ''