This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/bin ~/src ~/lib/python2.7 | |
cd ~/src | |
wget http://oligarchy.co.uk/xapian/1.2.10/xapian-core-1.2.10.tar.gz | |
tar zxf xapian-core-1.2.10.tar.gz | |
cd xapian-core-1.2.10 | |
./configure --prefix=$HOME | |
make | |
make install | |
cd .. | |
wget http://oligarchy.co.uk/xapian/1.2.10/xapian-bindings-1.2.10.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://oligarchy.co.uk/xapian/1.2.10/xapian-core-1.2.10.tar.gz | |
tar zxf xapian-core-1.2.10.tar.gz | |
cd xapian-core-1.2.10 | |
./configure | |
make -j14 | |
make install | |
cd .. | |
wget http://oligarchy.co.uk/xapian/1.2.10/xapian-bindings-1.2.10.tar.gz | |
tar zxf xapian-bindings-1.2.10.tar.gz | |
cd xapian-bindings-1.2.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
echo "Packages needed for installation:" | |
echo "zlib1g-dev g++" | |
echo | |
echo "You can install it on debian-based distros with command:" | |
echo "apt-get install zlib1g-dev g++" | |
echo | |
if [ -z "$VIRTUAL_ENV" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
from collections import namedtuple, Sequence | |
Item = namedtuple('Item', 'name, price') | |
items = [ | |
Item('apple', 10.0), | |
Item('banana', 12.0), | |
Item('orange', 8.0), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from nameko.extensions import ENTRYPOINT_EXTENSIONS_ATTR | |
from nameko.web.handlers import HttpRequestHandler | |
from werkzeug.routing import Map, Rule | |
class ResolveUrlError(Exception): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script helps one to setup openvpn on a Debian 9 under OpenVZ. | |
# It uses external openvpn-install.sh script (read it carefully! https://git.io/vpn). | |
# Update system. | |
apt-get update | |
apt-get upgrade | |
# Add new user to system. | |
useradd -m vpn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -d $(git branch --merged=master | grep -v master) | |
git branch -d $(git branch --merged=develop | grep -v develop | grep -v master) |