Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
echo "Cleaning up..."
rm -rf bin/ src/
echo "Copying sources..."
mkdir src/
find SSLKillSwitch -type f \( -name "*.h" -o -name "*.m" -o -name "*.c" \) -exec cp {} src/ \;
BIN_NAME="SSLKillSwitch2.dylib"
#!/usr/bin/env bash
# OpenSSL
# https://github.com/x2on/OpenSSL-for-iPhone
# boost
# https://gist.github.com/faithfracture/c629ae4c7168216a9856
echo "Cleaning up..."
rm -rf bin/
#!/usr/bin/python
# Usage:
# send_apn.py --dev --token=$DEVICE_TOKEN --message='Hello World!' --payload='{"foo": "bar"}'
from optparse import OptionParser
import json, binascii, struct, socket, ssl
parser = OptionParser()
parser.add_option("--dev", action="store_true", dest="dev", default=False, help="use development certificate and sandbox")
@danylokos
danylokos / Info.plist
Created December 28, 2016 09:47
Disable iOS ATS
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
@danylokos
danylokos / qmi_uim_apdu.txt
Created January 23, 2019 13:49
QMI UIM APDU example, iPhone 6 iOS 9.0, Qualcomm MDM9625 4.01.00
QMI UIM APDU example
iPhone 6 iOS 9.0, Qualcomm MDM9625 4.01.00
REQ:
open logical channel on slot 01 width AID a0:00:00:00:87:10:02 (07 bytes) (3GPP USIM AID)
01 1b 00 00 0b 02 00 04 00 3f 00 0f 00 01 01 00 | .........?......
@danylokos
danylokos / iterm2_key_bindings.md
Last active October 9, 2023 10:27
iTerm2 key bindings

iTerm2 Key Bindings

Keys Config Desc
Del send hex 0x15 delete line
Del send hex 0x1B 0x08 delete word
send hex 0x01 move cursor to the beginning of a line
send hex 0x05 move cursor to the end of a line
send esc seq Esc+b move cursor to the left by word
⌥ → send esc seq Esc+f move cursor to the right by word
@danylokos
danylokos / macos-bootable-usb.md
Last active August 11, 2020 09:30
macOS Catalina bootable USB
  1. Download installer
softwareupdate --fetch-full-installer

or specific version

softwareupdate --fetch-full-installer --full-installer-version 10.15.5
@danylokos
danylokos / launchpad.md
Last active November 21, 2019 12:52
Change macOS Launchpad grid size
  1. set number of columns
defaults write com.apple.dock springboard-columns -int 10
  1. set number of rows
defaults write com.apple.dock springboard-rows -int 6
@danylokos
danylokos / aria2c.md
Created October 29, 2019 08:57
aria2c multithread download
aria2c \
-x 16 \
-s 16 \
--load-cookies=cookies.txt \
https://download.developer.apple.com/Developer_Tools/Xcode_10.3/Xcode_10.3.xip
diff:
/usr/local/bin/code -d -n -w $LOCAL $REMOTE
merge:
/usr/local/bin/code -n -w $MERGED