Skip to content

Instantly share code, notes, and snippets.

View RagingTiger's full-sized avatar
🐅

Raging Tiger RagingTiger

🐅
View GitHub Profile
@RagingTiger
RagingTiger / dragon_ascii.txt
Last active March 17, 2017 14:50
Dragon ASCII art from `fortune` command
___====-_ _-====___
_--~~~#####// ' ` \\#####~~~--_
-~##########// ( ) \\##########~-_
-############// |\^^/| \\############-
_~############// (O||O) \\############~_
~#############(( \\// ))#############~
-###############\\ (oo) //###############-
-#################\\ / `' \ //#################-
-###################\\/ () \//###################-
{
"stdout": ["hackers", "hacking", "hack", "git", "github", "golang", "go",
"gopher", "algorithms", "python", "terminal", "bash", "shell",
"unix", "linux", "software", "developers", "python2",
"computers", "computing", "homebrew", "docker", "python3",
"electron", "javascript", "google", "api", "code", "coding",
"machinelearning", "machine learning", "deeplearning",
"deep learning", "bigdata", "malware", "deep", "neural nets",
"neuralnets"]
}
@RagingTiger
RagingTiger / setup-avahi.sh
Created February 24, 2018 13:49 — forked from davisford/setup-avahi.sh
Setup avahi-daemon on Ubuntu for so you can reach hostname `ubuntu.local` from host OS
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan
@RagingTiger
RagingTiger / mount_airport_timecapsule
Created June 10, 2018 23:40
How to mount airport time capsule on raspberry pi
#!/usr/bin/env bash
@RagingTiger
RagingTiger / machina.py
Created October 16, 2018 22:35
Python Script seen over Caleb's Shoulder in Deus Ex Machina
# BlueBook code decryption
import sys
def sieve(n):
# Compute primes using sieve of Eratosthenes
x = [1]*n
x[1] = 0
@RagingTiger
RagingTiger / website_scrape.sh
Last active October 22, 2018 16:46
Scrape Website Complete Static Content with wget
wget \
--html-extension \
--progress=bar \
--random-wait \
--convert-links \
--page-requisites \
--span-hosts \
--no-parent \
--user-agent=Mozilla \
$1 # your website here
@RagingTiger
RagingTiger / isobrowser.sh
Created November 8, 2018 13:23
Command to Run Isolated Firefox Browser on macOS
isobrowser(){
(sleep 6; open http://localhost:5800) & disown && \
docker run -p 5800:5800 --shm-size 2g jlesage/firefox
}
# main
isobrowser
@RagingTiger
RagingTiger / parse_text_files
Created November 13, 2018 10:13
Example of While Loop and Space-delimited Text File Parsing
while read var1 var2; do
echo "$var1"
echo "$var2"
done < $1 # input your text file here: e.g. passwords.txt, file.txt, urls.txt
@RagingTiger
RagingTiger / cputemp.sh
Created January 2, 2019 23:08
Check CPU Temp
cputemp(){
paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | \
column -s $'\t' -t | \
sed 's/\(.\)..$/.\1°C/'
}
cputemp
@RagingTiger
RagingTiger / name_of_god.txt
Created March 3, 2020 15:06
Number printed to screen in the Aronofsky film Pi when Max first finds the number
94143243431512659321054872390486828512913474876027
67195923460328582958304725016523252592969257276553
64363462727184012012643147546329450127847264841075
62234789626728592858295347502772262646456217613984
829519475412398501