-
brew install tinyproxy
-
Comment out
Allow 127.0.0.1
in/usr/local/etc/tinyproxy.conf
. -
Start tinyproxy with
tinyproxy -d
. -
Follow the log file with
tail -f /usr/local/var/log/tinyproxy/tinyproxy.log
-
On the iOS device, in Wi-Fi settings, set HTTP Proxy to Manual and set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -pv stream | |
tshark -r 26.pcapng -T fields -e tcp.seq -e tcp.len -Y 'ip.src==14.215.85.23' | while read line | |
do | |
let num=num+1 | |
seq=$(echo ${line} | awk '{print $1}') | |
len=$(echo ${line} | awk '{print $2}') | |
file="stream/${num}.bin" | |
tshark -r 26.pcapng -T fields -e data -2 -R "tcp.seq==${seq}" -w t.bin -Q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
palette="palette.png" | |
filters="fps=30,scale=320:-1:flags=lanczos" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . \( -iname '*?.*' -not -iname '*.sh' -not -iname '*.txt' \) -maxdepth 1 > new.txt | |
find . \( -iname '*?.*' -not -iname '*.sh' -not -iname '*.txt' \) -mindepth 2 > raw.txt | |
BASE_TIME=$(cat new.txt | xargs stat -f '%B' | sort -n | head -n 1 | awk '{print $1}') | |
if [ "${BASE_TIME}" = "" ] | |
then | |
echo "WARN:NO_PICTURES_FOR_PROCESS" | |
rm *.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set -x | |
JSON='library.json' | |
export HOME='https://developer.apple.com/library/content' | |
# curl -s -o ${JSON} ${HOME}/navigation/library.json | |
function dojob() | |
{ | |
# echo "$3.date:${1} url:${2}" | |
location=${HOME}/$(echo ${2} | sed 's/..\///' | awk -F'/Introduction' '{print $1}') |
- 在BeyondCompare里面配置转换脚本
/usr/local/bin/bcadapter -s %s -t %t
,并设置分隔符为^
/usr/local/bin/bcadapter
#!/usr/bin/env python
#encoding: utf-8
#include <android/log.h>
#include "utils/StringUtils.h"
#define CString(L) il2cpp::utils::StringUtils::Utf16ToUtf8(&(L->___start_char_1), L->___length_0).c_str()
#define debug(fmt, ...) __android_log_print(ANDROID_LOG_DEBUG, "larryhou", fmt, __VA_ARGS__)
debug("LOAD[%d] %s => %s", ___isAdditive1, (const char*)&L_29->___m_first_2, CString(V_9));
- (void)removePreferences
{
NSArray* classCollection = [NSArray arrayWithObjects:
(__bridge id)kSecClassInternetPassword,
(__bridge id)kSecClassGenericPassword,
(__bridge id)kSecClassCertificate,
(__bridge id)kSecClassKey,
(__bridge id)kSecClassIdentity, nil];
for (int n = 0; n < classCollection.count; n++)