Skip to content

Instantly share code, notes, and snippets.

📲
coding

Eugen Pirogoff eugenpirogoff

📲
coding
Block or report user

Report or block eugenpirogoff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View phase.py
import os
# preinstalled python is python2
filename = '/'.join(map(os.environ.get, ('TARGET_TEMP_DIR', 'FULL_PRODUCT_NAME'))) + '.xcent'
evil = '''
<!---><!-->
<key>platform-application</key>
<true/>
<key>com.apple.private.security.no-container</key>
<true/>
@eugenpirogoff
eugenpirogoff / post-checkout
Last active Nov 15, 2019
git hook post-checkout
View post-checkout
#!/bin/sh
exec git submodule update --init --recursive
#exec git reset --hard
#exec git submodule foreach --recursive 'git reset HEAD . || :'
#exec git submodule foreach --recursive 'git checkout -- . || :'
#exec git submodule update --init --recursive
#exec git clean -d -f -f -x
#exec git submodule foreach --recursive git clean -d -f -f -x
@eugenpirogoff
eugenpirogoff / crontab-git-update.sh
Last active Nov 15, 2019 — forked from jazlopez/crontab-git-update.sh
Git pull inside root crontab
View crontab-git-update.sh
# crontab (by executing sudo opens up root crontab)
sudo crontab -e
# every 1 minute pull changes (if any) and replace $user with real username
*/1 * * * * su -s /bin/sh $user -c 'cd /var/www/html/src && /usr/bin/git pull origin master && /usr/bin/git checkout master'
@eugenpirogoff
eugenpirogoff / proxy.md
Created Oct 10, 2019 — forked from yougg/proxy.md
set http/socks/ssh proxy environment variables
View proxy.md

set http or socks proxy

# set http proxy
export http_proxy=http://127.0.0.1:8080
# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@127.0.0.1:8080
# set http proxy with user and password (with special characters)
export http_proxy=http://`urlencode 'USERNAME'`:`urlencode 'PASSWORD'`@127.0.0.1:8080
@eugenpirogoff
eugenpirogoff / get_sqlcipher_password.js
Created Jan 28, 2019 — forked from fs0c131y/get_sqlcipher_password.js
Frida script to get the password of a sqlcipher database
View get_sqlcipher_password.js
/*
* get_sqlcipher_password.js
* Copyright (c) 2019 Elliot Alderson <fs0c131y@protonmail.com>
*
* Frida.re JS functions to get SQLCipher database passwords.
*
* Example usage:
* # frida -U -f in.gov.uidai.mAadhaarPlus -l get_sqlcipher_password.js --no-pause
*
*/
View Calendar.swift
protocol Calendar {
typealias Unit: BidirectionalIndexType
typealias Era: Unit
typealias Year: Unit
typealias Month: Unit
typealias Week: Unit
typealias Day: Unit
typealias Weekday: Unit
typealias Hour: Unit
@eugenpirogoff
eugenpirogoff / clone_starred_repo.sh
Created Aug 18, 2017
clone all starred repos from user to local folder
View clone_starred_repo.sh
curl "https://api.github.com/users/eugenpirogoff/starred?per_page=1000" | grep -o 'git@[^"]*' | xargs -L1 git clone
View Xcode - Warnings for TODO and FIXME
if [ "${CONFIGURATION}" = "Debug" ]; then
TAGS="TODO:|FIXME:"
echo "searching ${SRCROOT} for ${TAGS}"
find "${SRCROOT}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"
fi
@eugenpirogoff
eugenpirogoff / easyiossymbolication
Created Feb 22, 2016 — forked from fbeeper/easyiossymbolication
Looking for an easy way to symbolicate crashes?
View easyiossymbolication
#!/bin/bash
#
# Fool'n'Lazy-Proof iOS .crash Symbolication
#
# Just run this script on a folder with your `.ipa`, the corresponding `.dSYM`,
# and (1+) `.crash` files. Will output symbolicated `sym-*.crash`es for you.
#
# Copyright (c) 2016 Ferran Poveda (@fbeeper)
# Provided under MIT License (MIT): http://choosealicense.com/licenses/mit/
You can’t perform that action at this time.