Skip to content

Instantly share code, notes, and snippets.

View saitjr's full-sized avatar
💭
I may be slow to respond.

saitjr saitjr

💭
I may be slow to respond.
View GitHub Profile
// https://github.com/n8henrie/pycookiecheat
// https://github.com/bertrandom/chrome-cookies-secure/blob/e04db39a03cdde5912712fd1f659b68fe0af5ea3/index.js
// https://www.jianshu.com/p/c94363c33bae
// npm install sqlite3 keytar
const crypto = require('crypto')
const sqlite3 = require('sqlite3')
const url = require('url')
const keytar = require('keytar')

App List

  • Xcode
  • Charles
  • 1 Passwords
  • Alfred
  • iTerm2
  • SourceTree
  • VSCode
@saitjr
saitjr / app.js
Last active May 14, 2019 03:51
nodejs test api
// mkdir test-node; cd test-node; touch app.js; npm init -y
// 安装:npm install --save express nodemon body-parser
// 执行:nodemon app
var express = require('express');
var app = express();
app.get('/api', (req, res, next) => {
res.send(req.query);
});
@saitjr
saitjr / sai.zsh-theme
Created January 9, 2019 12:11
zsh theme base on ys
# Directory info.
local current_dir='${PWD/#$HOME/~} '
# ret status
local ret_status="(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
# VCS
YS_VCS_PROMPT_PREFIX="%{$fg_bold[white]%}[%{$reset_color%}%{$fg_bold[cyan]%}"
YS_VCS_PROMPT_SUFFIX="%{$reset_color%} "
YS_VCS_PROMPT_DIRTY=" %{$fg[red]%}✗"
@saitjr
saitjr / export.rb
Created March 19, 2018 11:53
Export Developer Devices as deviceids
# Run `gem install plist` first
require 'plist'
file_path = ARGV[0]
map = {} # 用于过滤
File.open(file_path, "r").each do |line|
@saitjr
saitjr / symbolicatecrash
Last active August 17, 2022 11:28
Advance version of symbolicatecrash
#!/usr/bin/perl -w
#
# This script parses a crashdump file and attempts to resolve addresses into function names.
#
# It finds symbol-rich binaries by:
# a) searching in Spotlight to find .dSYM files by UUID, then finding the executable from there.
# That finds the symbols for binaries that a developer has built with "DWARF with dSYM File".
# b) searching in various SDK directories.
#
# Copyright (c) 2008-2015 Apple Inc. All Rights Reserved.
@saitjr
saitjr / delete-annotate.py
Last active June 24, 2016 03:26
delete annotate from project. Include `///<` and `//`
#!/usr/local/bin/python
#coding:utf-8
import re
import os
path = raw_input("folder path: ")
fileType = ['.m', '.h']
@saitjr
saitjr / github-star.py
Last active May 21, 2017 02:57
count total star of user repos. Install BeautifulSoup first.
#!/usr/bin/python
#-*- coding: utf-8 -*-
#encoding=utf-8
import urllib2
import re
from bs4 import BeautifulSoup
import sys
reload(sys)