Skip to content

Instantly share code, notes, and snippets.

View SergeAx's full-sized avatar

Sergey Aksenov SergeAx

View GitHub Profile
@SergeAx
SergeAx / socks5-docker-debian.sh
Created April 17, 2018 14:11
Installing socks5 proxy via docker
#!/bin/sh
apt-get update
apt-get dist-upgrade -y
apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian/$(lsb_release -cs) stable"
apt-get update

Keybase proof

I hereby claim:

  • I am sergeax on github.
  • I am sergeax (https://keybase.io/sergeax) on keybase.
  • I have a public key ASBRyWEbOIOL1m_wutWakfqbpuMPpBqOt9GJu509m31e4go

To claim this, I am signing this object:

@SergeAx
SergeAx / git-phpcs
Last active September 4, 2017 17:41
Put this file into path directory and use as "git phpcs" (Works in Windows, put script to C:\Program Files\Git\cmd\)
#!/bin/sh
ROOT=$(git rev-parse --show-toplevel);
FILES=$(git diff HEAD --name-only);
if [ ! -z "$FILES" ]; then
for FILE in $FILES; do
phpcs $ROOT/$FILE
done
fi
@SergeAx
SergeAx / pgessays.py
Last active May 30, 2016 20:59 — forked from olasitarska/pgessays.py
Builds epub book out of Paul Graham's essays.
# -*- coding: utf-8 -*-
"""
Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html
Author: Ola Sitarska <ola@sitarska.com>
Copyright: Licensed under the GPL-3 (http://www.gnu.org/licenses/gpl-3.0.html)
This script requires python-epub-library: http://code.google.com/p/python-epub-builder/
"""