I hereby claim:
- I am s4w3d0ff on github.
- I am s4w3d0ff (https://keybase.io/s4w3d0ff) on keybase.
- I have a public key whose fingerprint is C952 7DDB 267F CE57 7DAC 61A1 B099 7C35 23A3 B07E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from os import urandom | |
from binascii import b2a_hex | |
from hashlib import sha1 | |
def getTorPassHash(secret='password'): | |
''' | |
https://gist.github.com/jamesacampbell/2f170fc17a328a638322078f42e04cbc | |
''' | |
# static 'count' value later referenced as "c" | |
indicator = chr(96) |
javascript:function myMethod( ) { document.querySelector("button[data-qa='keep_listening_button']").click();} var timer = setInterval(myMethod, 1000); if(timer) { alert('Thanks for listening!'); }
#!/usr/bin python | |
import requests | |
commands = ['playerInfo', 'playerRankings', 'onlinePlayers'] | |
platforms = ['pc','xbox','ps3','xone','ps4'] | |
posout = ['json', 'jsonp', 'js', 'lines'] | |
playeroptions = [ | |
'imagePaths', | |
'details', | |
'names', |
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 |
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) |
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 |
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 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=',') |
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 |