Skip to content

Instantly share code, notes, and snippets.

@1ookup
1ookup / index.js
Last active August 3, 2023 09:56
google
alert(6)
@1ookup
1ookup / postinst
Created November 20, 2019 03:19
fix ios 12 tweak/tools Killed: 9
# layout/DEBIAN/postinst
echo "Killall RootTools..."
killall -9 RootTools
echo "Sign RootTools..."
ldid -e `which bash` > ent.xml
ldid -Sent.xml `which RootTools`
@1ookup
1ookup / bashrc.sh
Last active December 2, 2019 07:33
常用 shell 函数
scp2phone(){
if [ $# -eq 0 ]; then
echo "No arguments specified.\nUsage:\n scp2phone <file|directory> <file|directory>\n ... | scp2phone <file_name>">&2;
return 1;
fi;
if [ $# -eq 1 ]; then
scp -rp -P 2222 $1 root@127.0.0.1:/tmp/
return 1;
fi;
@1ookup
1ookup / gunicorn.py
Created August 5, 2019 09:50
gunicorn配置文件
import gevent.monkey
gevent.monkey.patch_all()
import multiprocessing
debug = False
loglevel = 'info'
#bind = '0.0.0.0:8002'
#pidfile = 'gunicorn.pid'
@1ookup
1ookup / SettingManager.h
Created June 21, 2019 09:18
使用XUI 全局设置管理
//
// SettingManager.h
// ProtocolRecord
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SettingManager : NSObject
@1ookup
1ookup / DDLogInit.h
Last active June 21, 2019 07:17
初始化DDLog
//
// DDLogInit.h
// ProtocolRecord
//
#import <Foundation/Foundation.h>
#import <CocoaLumberjack/CocoaLumberjack.h>
static const DDLogLevel ddLogLevel = DDLogLevelVerbose;
NS_ASSUME_NONNULL_BEGIN
@1ookup
1ookup / requestszZ.py
Last active April 26, 2019 05:58
pre request hook
#!/usr/bin/env python
# encoding: utf-8
__author__ = 'Elie'
import requests
from urllib.parse import quote
__prepare__ = requests.models.PreparedRequest.prepare
pre_requests_hook = None
@1ookup
1ookup / OpenUDID.h
Created September 17, 2018 09:51
iOS OpenUDID
#import <Foundation/Foundation.h>
@interface AZOpenUDID : NSObject
+(instancetype) shareInstance ;
@property (nonatomic, retain) NSUUID *udid;
@property (nonatomic, retain) NSString *key;
@end
@1ookup
1ookup / CertScan.py
Created October 26, 2017 06:11
批量证书扫描,带有缓存功能
#!/usr/bin/env python3
# encoding: utf-8
# by: ELie
"""
Cert Scan
depend:
python3 pip install pymongo
python3 pip install pyOpenSSL
use: