Skip to content

Instantly share code, notes, and snippets.

View nondanee's full-sized avatar
💪

Nzix nondanee

💪
  • Hangzhou, China
View GitHub Profile
@nondanee
nondanee / start.sh
Last active February 26, 2019 10:59
android netease cloud music developer mode
adb shell su -c am start -n com.netease.cloudmusic/com.netease.cloudmusic.activity.DeveloperActivity
@nondanee
nondanee / helper.py
Last active September 29, 2025 11:46
script for vscode ffmpeg lib replacement
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
@author: Nzix
"""
import os, shutil, platform, subprocess
import re, zipfile, json
import ssl
@nondanee
nondanee / mysql.cnf
Last active November 8, 2018 07:08
MySQL use utf8mb4 character set
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
init_connect = 'SET NAMES utf8mb4'
@nondanee
nondanee / dns-tutorial
Created October 21, 2018 13:09
self-build dns tutorial for unblockneteasemusic
$ apt-get install dnsmasq
# /etc/dnsmasq.conf
no-resolv
no-hosts
server=119.29.29.29
addn-hosts=/etc/dnsmasq.hosts
#listen-address=127.0.0.1
# /etc/dnsmasq.hosts
@nondanee
nondanee / .Xmodmap
Created October 20, 2018 10:06
linux keyboard map
keycode 66 = Mode_switch Caps_Lock
keycode 25 = w W Up
keycode 38 = a A Left
keycode 39 = s S Down
keycode 40 = d D Right
@nondanee
nondanee / my.ahk
Last active October 17, 2018 06:02
AutoHotKey configuration
SetStoreCapslockMode, Off
global capslock, action, click
Capslock::
SetTimer, Timeout, -300
click:=1
capslock:=1
action:=0
KeyWait, Capslock
if(!action && click){
@nondanee
nondanee / weapi.pem
Created October 6, 2018 12:51
netease cloud music weapi public key
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDgtQn2JZ34ZC28NWYpAUd98iZ3
7BUrX/aKzmFbt7clFSs6sXqHauqKWqdtLkF2KexO40H1YTX8z2lSgBBOAxLsvakl
V8k4cBFK9snQXE9/DDaFt6Rr7iVZMldczhC0JNgTz+SHXT6CBHuX3e9SdB1Ua44o
ncaTWz7OBGLbCiK45wIDAQAB
-----END PUBLIC KEY-----
@nondanee
nondanee / aes_ecb_test.py
Created September 21, 2018 08:57
ecb encrypted result
# -*- coding: utf-8 -*-
from Crypto.Cipher import AES
f = open('before.bmp','rb')
bid_header = f.read(54)
raw_data = f.read()
f.close()
pad = lambda s: s + (16 - len(s) % 16) * chr(16 - len(s) % 16)
@nondanee
nondanee / config.js
Last active February 13, 2022 17:30
a simple proxy server with https tunnel and basic authentication
const fs = require('fs')
/*
module.exports = {
key: fs.readFileSync('domain.key'),
cert: fs.readFileSync('fullchain.cer'),
}
*/
@nondanee
nondanee / select.js
Last active September 9, 2018 02:32
where to eat
const menu = [
{
name: 'YOSHINOYA 22',
weight: 4
},
{
name: 'YOSHINOYA 24',
weight: 4
},
{