This program requires base58 (https://pypi.python.org/pypi/base58/0.2.1).
Simply run from command line:
python burnaddress.py 1BitcoinBurnAddressForYou
or
Import into a script:
import os | |
def readCfg(location): | |
# Make sure file exists... | |
if not os.path.exists(location): | |
return False | |
with open(location) as f: | |
cfg= {} | |
for line in f: | |
line = line.strip() |
This program requires base58 (https://pypi.python.org/pypi/base58/0.2.1).
Simply run from command line:
python burnaddress.py 1BitcoinBurnAddressForYou
or
Import into a script:
Something or somebody made /var/lib/tor disappear. | |
Creating one for you again. | |
Something or somebody made /var/log/tor disappear. | |
Creating one for you again. | |
* Starting tor daemon... |
sudo bash -c 'dpkg --add-architecture i386 && apt-get update && apt-get install -y libcgmanager0:i386 libgl1-mesa-glx-lts-utopic:i386 libudev1:i386 libc6:i386 libgl1-mesa-dri-lts-utopic:i386 libglapi-mesa-lts-utopic:i386 steam' |
cd ~/Downloads && wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb && sudo bash -c 'dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb && apt-get update && apt-get install -y cuda && apt-get update && apt-get upgrade' | |
sudo bash -c 'echo "export CUDA_HOME=/usr/local/cuda-7.5" >> ~/.bashrc && echo "export LD_LIBRARY_PATH=${CUDA_HOME}/lib64" >> ~/.bashrc && echo "PATH=${CUDA_HOME}/bin:${PATH}" >> ~/.bashrc && echo "export PATH" >> ~/.bashrc' | |
sudo reboot |
import csv | |
import requests | |
import logging | |
def getAvailUserPorts(url='http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv', minport=1024): | |
""" Downloads the current iana.org port assignment csv and returns a list of 'Unassigned' ports in the 'User' range (>1024)""" | |
logging.info("Downloading: '%s'" % url) | |
logging.info("This could take awhile...") | |
raw = requests.get(url) | |
reader = csv.reader(raw.iter_lines(), delimiter=',') |
from subprocess import Popen, PIPE | |
import logging | |
def genTorPassHash(password): | |
""" Launches a subprocess of tor to generate a hashed <password>""" | |
logging.info("Generating a hashed password") | |
torP = Popen(['tor', '--hush', '--hash-password', str(password)], stdout=PIPE, bufsize=1) | |
try: | |
with torP.stdout: | |
for line in iter(torP.stdout.readline, b''): |
import os.path | |
from csv import reader as csvreader | |
import json, requests, logging | |
# url for retieving the unregistered portlist | |
IANAURL = 'http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv' | |
def getAvailPorts(minport=1024): | |
""" | |
Downloads the current iana.org port assignment csv |
function nvm | |
bash -c 'source ~/.nvm/nvm.sh; nvm "$@"' nvm $argv | |
set -l node_dir "$HOME/.nvm" | |
switch (echo $argv[1]) | |
case install | |
case use | |
set -l node_version (ls $node_dir | grep $argv[2]) | |
set -l node_version (echo $node_version | cut -d " " -f1) |
apt update | |
apt upgrade -y | |
apt install nginx mysql-server -y | |
mysql_install_db | |
mysql_secure_installation | |
apt-get install php5-fpm php5-mysql -y |