Skip to content

Instantly share code, notes, and snippets.

View fkztw's full-sized avatar
📺
Hello World!

Frank Zheng fkztw

📺
Hello World!
  • Taiwan
  • 19:54 (UTC +08:00)
View GitHub Profile
@fkztw
fkztw / git_overview
Created December 17, 2015 09:31 — forked from tafkey/git_overview
Print git status of all repositories under the current folder
find . -type d -name '.git' | while read dir ; do sh -c "cd $dir/../ && echo -e \"\nGIT STATUS IN ${dir//\.git/}\" && git status -s" ; done

残酷な天使のテーゼ

  • 作詞:及川眠子
  • 作曲:佐藤英敏
  • 編曲:大森俊之 
残酷な天使のように
za n ko ku na te n shi no yo u ni
像是殘酷的天使一樣
@fkztw
fkztw / gifenc.sh
Created October 8, 2015 05:37 — forked from goncalossilva/gifenc.sh
Handy scripts to encode mp4, webm and gif using ffmpeg (2.6 or above). Audio is discarded on all of these!
#!/bin/sh
# sh gifenc.sh input.mp4 output.gif
# Optionally accepts width / height (one or both).
palette="/tmp/palette.png"
filters="fps=15"
if [ ! -z $3 ]; then
if [ ! -z $4 ]; then
filters="$filters,scale=$3:$4"
@fkztw
fkztw / macbookair_or_linux.txt
Last active September 20, 2015 12:20
這是一個在 MacBook Air 上裝了 Arch Linux 的人說出來的話(?)
如果只有這兩個選項的話
半年前我會跟你說2
現在我會跟你說1
(因為我從 OS X 重回 Linux 的懷抱了lol)
原因如下:
Air 的續航力要拿來看電影的話其實也不會好太多
根據我的使用經驗大概剩個 5~6 hrs
而且還要取決於有沒有踩到 OS X 的雷
OS X 10.9 剛出的時候
@fkztw
fkztw / What_Professors_and_Bosses_Love.md
Last active March 4, 2016 06:44
創新技術名詞產生器
  • 雲端大數據分散式軟體定義物聯網
  • 雲端大數據分散式虛擬擴增實境軟體定義物聯網
  • 雲端虛擬擴增實境平行分散式大數據分析軟體定義物聯網
  • 雲端虛擬擴增實境分散平行式大數據分析軟體定義物聯網
  • 雲端虛擬擴增實境分散式平行運算大數據分析軟體定義物聯網
  • 雲端虛擬擴增實境大數據分散式平行分析運算軟體定義物聯網

實在太多了,枚舉不完,所以弄了一個產生器
FunSlots 繽紛樂 | 創新技術名詞產生器

@fkztw
fkztw / ans.py
Last active August 29, 2015 22:00
ans.py for HITCON 2015 IoT Wargame - Arduino Nano
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import serial
import time
lines = []
@fkztw
fkztw / HITCON2015-note.md
Created August 29, 2015 10:30
Note for HITCON2015

Day 1 - 2015/08/28

ALL - 總召致詞、Opening 講師介紹、攤位活動、贊助商介紹、活動介紹 Allen (HITCON 總召) 09:30 ~ 09:50 (20 mins)

ALL - Opening Keynote: Why are our tools so terrible? Geohot 09:50 ~ 10:40 (50 mins)

file1 = '1.txt'
file2 = '2.txt'
rfd = open(file1, "r")
wfd = open(file2, "w")
dict_file = {}
num = {}
seq = {}
@fkztw
fkztw / #1lgputba_(python)_[ptt.cc].py
Last active August 29, 2015 14:20
#1lgputba_(python)_[ptt.cc]
#/usr/bin/env python3
d = {
"Tom": 50,
"Jerry": 70,
"Sally": 90,
}
check = []
while True:
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
import csv
import re
import collections
def main():
#data = parse_csv('bird0-1.csv')