Add the universe repository:
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
sudo apt-get update
Install python virtual environment:
#!/bin/bash | |
# /etc/init.d/kippo | |
### BEGIN INIT INFO | |
# Provides: kippo | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 |
upper_bound = int(input("Upper bound: ")) | |
n = 1 | |
while n <= upper_bound: | |
factors = [] | |
i = 1 | |
while i < n: | |
if n % i == 0: | |
factors.append(i) | |
i += 1 |
order = 'MDCLXVI' | |
add_to_sub = ( | |
('VIIII', 'IX'), | |
('LXXXX', 'XC'), | |
('DCCCC', 'CM'), | |
('IIII', 'IV'), | |
('XXXX', 'XL'), | |
('CCCC', 'CD'), | |
) |
import os | |
import json | |
import getpass | |
import pprint | |
pathMac = [ | |
'/Applications/', os.path.join('/Users/', getpass.getuser(), 'Documents/'), | |
#os.path.join('/home/', getpass.getuser(), 'Downloads/'), | |
#os.path.join('/home/', getpass.getuser(), 'Documents/'), | |
] |
#!/bin/sh | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT |
[report] | |
exclude_lines = | |
pragma: no cover | |
if __name__ == .__main__.: |
'''Tool for analyzing images''' | |
from __future__ import print_function | |
from PIL import Image | |
import imagehash | |
import argparse | |
import shelve | |
import glob | |
import glob2 | |
import uuid | |
import random |
""" | |
This example demonstrates a reverse proxy. | |
Run this example with: | |
$ python reverse-proxy.py | |
Then visit http://192.168.4.13:8000/ (or http://LISTEN_IP:LISTEN_PORT) in | |
your web browser. | |
""" |
SITE_ROOT = '/your/path' | |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': { | |
'standard': { | |
'format' : "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s", | |
'datefmt' : "%d/%b/%Y %H:%M:%S" | |
}, |