Skip to content

Instantly share code, notes, and snippets.

View hang333's full-sized avatar
🐟
摸鱼

Jonathan Goh hang333

🐟
摸鱼
View GitHub Profile
@BirkhoffLee
BirkhoffLee / steamguard.js
Last active June 28, 2019 04:42
Steamguard data & device id extractor
// yarn add binary-cookies bplist-parser
/*
To get the Steamguard file, you don't necessarily need to be jailbroken, but
if you're jailbroken: head to
/private/var/mobile/Containers/Data/Application/6BE5C937-51C0-4365-811D-F2717BAD1213/Documents
and you can get them. I'm not sure the UUID is same on all devices, but this is the actual path
on my device (iOS 12)
If you're non-jailbroken, you need to get an unencrypted backup using iTunes,
@secsilm
secsilm / str_count.py
Created March 25, 2017 14:04
使用 Python 统计字符串中英文、空格、数字、标点个数
# coding: utf-8
import string
from collections import namedtuple
def str_count(s):
'''找出字符串中的中英文、空格、数字、标点符号个数'''
count_en = count_dg = count_sp = count_zh = count_pu = 0