Extra modules required to build python from source
sudo apt install $(cat apt_requirements.txt)
#!/bin/bash | |
sudo dd if=/dev/zero of=/swap bs=10M count=100 #Creates a file of size 1000M | |
sudo losetup /dev/loop0 /swap | |
sudo mkswap /dev/loop0 | |
sudo swapon /dev/loop0 |
import requests | |
import time | |
localtime = int(time.time()) | |
r = requests.post('http://COPERNICUS_HOST:PORT/login.xml', data={ | |
'username': 'PLAINTEXT_USERNAME', | |
'password': 'PLAINTEXT_PASSWORD', | |
'mode': 191, | |
'producttype': 0, |
import subprocess | |
import time | |
import os | |
import sys | |
if len(sys.argv) > 1: | |
directory = sys.argv[1] | |
else: | |
directory = './videos' | |
directory = os.path.abspath(directory) |
import re | |
LINEBREAK_REGEX = re.compile(r'((\r\n)|[\n\v])+') | |
NONBREAKING_SPACE_REGEX = re.compile(r'(?!\n)\s+') | |
def normalize_whitespace(text): | |
""" | |
Given ``text`` str, replace one or more spacings with a single space, and one | |
or more linebreaks with a single newline. Also strip leading/trailing whitespace. |
Install this extensions on chrome: Custom JS And open noisli.com and enter the code from this js to the Custom JS editor.
I hereby claim:
To claim this, I am signing this object:
sudo yum install autoconf aclocal automake | |
sudo yum install libtool | |
sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel | |
cd ~/downloads | |
wget http://www.leptonica.com/source/leptonica-1.72.tar.gz | |
tar -zxvf leptonica-1.72.tar.gz | |
cd leptonica-1.72 | |
./configure | |
make | |
sudo make install |