Skip to content

Instantly share code, notes, and snippets.

Avatar
🐝
Buzzzzy!

Sergey Aksenov SergeAx

🐝
Buzzzzy!
View GitHub Profile
@SergeAx
SergeAx / socks5-docker-debian.sh
Created Apr 17, 2018
Installing socks5 proxy via docker
View socks5-docker-debian.sh
#!/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
View keybase.md

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 Sep 4, 2017
Put this file into path directory and use as "git phpcs" (Works in Windows, put script to C:\Program Files\Git\cmd\)
View git-phpcs
#!/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 — forked from olasitarska/pgessays.py
Builds epub book out of Paul Graham's essays.
View pgessays.py
# -*- 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/
"""