Skip to content

Instantly share code, notes, and snippets.


Eugen Pirogoff eugenpirogoff

View GitHub Profile
View gist:09a25499ff776007f631
### Keybase proof
I hereby claim:
* I am eugenpirogoff on github.
* I am eugenpirogoff ( on keybase.
* I have a public key whose fingerprint is 409F 1F0D 5026 3E90 544E 15A8 B368 ACFE 0F43 E26A
To claim this, I am signing this object:
eugenpirogoff / Reachability.swift
Created Oct 21, 2015
Check if there is a network connection
View Reachability.swift
import Foundation
public class Reachability {
class func isConnectedToNetwork()->Bool{
var Status:Bool = false
let url = NSURL(string: "")
let request = NSMutableURLRequest(URL: url!)
request.HTTPMethod = "HEAD"
request.cachePolicy = NSURLRequestCachePolicy.ReloadIgnoringLocalAndRemoteCacheData
eugenpirogoff / easyiossymbolication
Created Feb 22, 2016 — forked from fbeeper/easyiossymbolication
Looking for an easy way to symbolicate crashes?
View easyiossymbolication
# 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):
View Xcode - Warnings for TODO and FIXME
if [ "${CONFIGURATION}" = "Debug" ]; then
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/"
eugenpirogoff /
Created Aug 18, 2017
clone all starred repos from user to local folder
curl "" | grep -o 'git@[^"]*' | xargs -L1 git clone
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 / 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 <>
* JS functions to get SQLCipher database passwords.
* Example usage:
* # frida -U -f -l get_sqlcipher_password.js --no-pause
eugenpirogoff /
Created Oct 10, 2019 — forked from yougg/
set http/socks/ssh proxy environment variables

set http or socks proxy

# set http proxy
export http_proxy=
# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@
# set http proxy with user and password (with special characters)
export http_proxy=http://`urlencode 'USERNAME'`:`urlencode 'PASSWORD'`@
eugenpirogoff /
Last active Nov 15, 2019 — forked from jazlopez/
Git pull inside root crontab
# 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'