Skip to content

Instantly share code, notes, and snippets.

View Gowee's full-sized avatar

Hung-I Wang Gowee

View GitHub Profile
gumblex /
Last active May 4, 2016 14:59
Clone of WWStar, an ancient Classical Chinese translator.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
Clone of WWStar, an ancient Classical Chinese translator.
usage: python3 [dir]
felixonmars /
Last active October 17, 2017 08:20

Linux 日常 (第一期, 20140531)



Firefox drm

Firefox 要增加针对数字内容版权的 drm 支持啦...

floer32 /
Last active December 24, 2019 15:30
[Regarding Python 2 - in Python 3 just use normal strings that are always Unicode.] // quick example of encoding and decoding a international domain name in Python (from Unicode to Punycode or IDNA codecs and back). Pay attention to the Unicode versus byte strings
>>> x = "www.alliancefranç" # This is the problematic line. Forgot to make this a Unicode string.
>>> print x
>>> x.encode('punycode')
>>> x.encode('punycode').decode('punycode')
>>> print x.encode('punycode').decode('punycode')
CUTTER = python3 jumpcutter/
%_0.3.mp4: %.mkv
ffmpeg -i $< -c:v copy $(basename $<).mp4
if [ -d ./TEMP ]; then rm -r ./TEMP; fi
${CUTTER} --silent_threshold 0.3 --input_file $(basename $<).mp4 --output_file $(basename $<)_0.3.mp4
%_wechat.mp4: %_0.3.mp4
ffmpeg -i $< -c copy -t 00:05:00.00 $@
%_0.1.mp4 %_0.2.mp4 %_0.3.mp4: %.mp4
if [ -d ./TEMP ]; then rm -r ./TEMP; fi
zaxebo1 /
Created October 28, 2017 15:28
How to enable SecureBoot with own keys in KVM and on a laptop (T450s)

UEFI SecureBoot on ArchLinux

For KVM and Laptop


I want full control what boots the computer to avoid the so called evil maid attack. That requires setting SecureBoot with only my own keys.


messa /
Created June 26, 2015 12:43
Python asyncio + SSL TCP client/server example
#!/usr/bin/env python3
import asyncio
import multiprocessing
import os
import ssl
from time import sleep
port = 9000
ursm / len0073.patch
Last active January 16, 2022 06:48
Fix TrackPoint / touchpad issue on ThinkPad X1 Carbon 5th (Linux 4.12)
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index 16c3046..ca912ce 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -173,6 +173,7 @@ static const char * const smbus_pnp_ids[] = {
"LEN0046", /* X250 */
"LEN004a", /* W541 */
"LEN200f", /* T450s */
+ "LEN0073", /* X1 Carbon 5 (Elantech) */
vishvananda /
Created October 22, 2013 03:16
Script to set up an ipsec tunnel between two machines For Example: ./ would set up an ipsec tunnel over address using as a virtual address passwordless sudo required for user on remote machine
if [ "$4" == "" ]; then
echo "usage: $0 <local_ip> <remote_ip> <new_local_ip> <new_remote_ip>"
echo "creates an ipsec tunnel between two machines"
exit 1
SRC="$1"; shift
DST="$1"; shift
avicoder /
Created April 30, 2018 10:52
Frida script to get the list of all API calls from a twitter android app in real time.
#! /usr/bin/python
# Usage `python`
import frida,sys
jspayload= """
setImmediate(function() {
Arnie97 /
Last active July 31, 2022 12:50
Removes the annoying watermarks of's downloaded eBooks
#!/usr/bin/env python3
import sys
import re
import shutil
import argparse
import binascii
# Author: Daxda