#secure shred
Mac: srm -f -z --medium filename
Linux: shred -f -u -n 7 filename
Windows: sdelete.exe -q -p 7 filename
| create database mytestdatabase; | |
| alter database mytestdatabase CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; |
| #!/bin/bash | |
| # this gets the ip address and the owning server org of the ip address WITH SPINNERS WHILE WAITING | |
| # example (save file as whodig.sh and chmod a+x) then run whodig.sh jamescampbell.us | |
| echo "Looking up ip and owner info for input..." | |
| dig +short $1 > nslook.txt & | |
| pid=$! | |
| spin[0]="-" | |
| spin[1]="\\" | |
| spin[2]="|" |
| mkdir ~/Downloads | |
| cd ~/Downloads | |
| wget https://otr.cypherpunks.ca/libotr-4.1.1.tar.gz | |
| tar -xzf libotr-4.1.1.tar.gz | |
| cd libotr-4.1.1 | |
| sudo apt-get install automake libtool autoconf irssi-dev tor git bitlbee-plugin-otr irssi-plugin-otr libgcrypt-dev gcc libglib2.0-dev -y | |
| ./configure --prefix=/usr && make && sudo make install | |
| mkdir ~/projects | |
| cd ~/projects | |
| git clone https://github.com/cryptodotis/irssi-otr.git |
| # taken from: | |
| # https://lists.torproject.org/pipermail/tor-talk/2016-June/041699.html | |
| # Go to the Cloud Platform Console and log in (you can use a gmail.com account). | |
| # https://console.cloud.google.com/project | |
| # Create a new project. The project ID determines the URL where the app | |
| # will live. For example, if you choose "myproject", then the app will be | |
| # at https://myproject.appspot.com/. | |
| # Download the meek source code. The code you need is in the "appengine" | |
| # directory. | |
| mkdir ~/projects |
| git tag 0.1.5 -m "Added backwards compatibility for < Python 2.2.3." | |
| git push --tag | |
| python setup.py register -r pypi | |
| python setup.py sdist upload -r pypi |
| echo "|||**** BITBALANCE ****|||" | |
| echo "||| Wallet to check: " | |
| read bitwallet | |
| echo "You entered: $bitwallet" | |
| curl --silent "https://blockchain.info/address/$bitwallet?format=json" > balance.txt & | |
| pid=$! | |
| spin[0]="-" | |
| spin[1]="\\" | |
| spin[2]="|" |
| #!/bin/bash | |
| # Author: James Campbell | |
| # Date: August 13 2016 | |
| # What: A list of things to do on a fresh Windows machine. | |
| # 1 edit UEFI and set passwords / encryption if possible | |
| # 2 install chocolately | |
| # 3 install cygwin | |
| choco install cygwin -y | |
| # 4 install cmder |
| #!/bin/bash | |
| # get ip address | |
| myip=$(ip route get 8.8.8.8 | awk 'NR==1 {print $NF}') | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install buildessentials apache2-utils | |
| sudo apt-get install fakeroot devscripts gawk gcc-multilib dpatch | |
| sudo apt-get install build-dep squid3 | |
| sudo apt-get install build-dep openssl | |
| sudo apt-get install libssl-dev openssl |
| import os, binascii, hashlib | |
| #supply password | |
| secret = 'your password here you want to use' # all you need to change! | |
| #static 'count' value later referenced as "c" | |
| indicator = chr(96) | |
| #used to generate salt | |
| rng = os.urandom |