Skip to content

Instantly share code, notes, and snippets.

View ChrisMorrisOrg's full-sized avatar

Chris Morris ChrisMorrisOrg

View GitHub Profile
### Keybase proof
I hereby claim:
* I am chrismorrisorg on github.
* I am chrismorrisorg (https://keybase.io/chrismorrisorg) on keybase.
* I have a public key ASC5ZxI3l9bh14E5USVdNK9DdIJaUz4Ew3ApJ7fxhF21RAo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ChrisMorrisOrg on github.
  • I am chrismorrisorg (https://keybase.io/chrismorrisorg) on keybase.
  • I have a public key whose fingerprint is FABD 7667 307E 8111 B07E 8134 44F2 6A82 EFC7 B02F

To claim this, I am signing this object:

Verifying that +chrismorrisorg is my blockchain ID. https://onename.com/chrismorrisorg
@ChrisMorrisOrg
ChrisMorrisOrg / downloadzines.sh
Last active May 7, 2016 12:17
Download every zine from Phrack
#!/bin/sh
# Download every zine from Phrack
COUNTER=1
while [ $COUNTER -ne -1 ]; do
FILE="phrack$COUNTER.tar.gz"
URL="http://phrack.org/archives/tgz/$FILE"
@ChrisMorrisOrg
ChrisMorrisOrg / TriAlphAngle
Created February 7, 2013 03:10
Because loops are fun.
<?php
function trialphangle(){
$characters = "abcdefghiklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890+_)(*&^%$#@!~=-`|}{\":?><\][';/.,";
$len = 2;
for($i = 0; $i < $len; $i++){
for($j = 0; $j < strlen($characters); $j++){
print substr($characters, $j, $j+2)."\n";
}
}
@ChrisMorrisOrg
ChrisMorrisOrg / FakeChat
Last active December 10, 2015 15:08
Given some text, this function will print out the text as if the computer is typing it live, in front of you.
def fakeChat(text):
# Set SPEED_VARIANCE to 0.001 for low variance, 10 for high variance
SPEED_VARIANCE = 0.1
x = 0
rate = 1
# Ensure clean input
text = str(text)
rate = int(rate)
while x < len(text):
@ChrisMorrisOrg
ChrisMorrisOrg / ColourfulShell
Last active January 15, 2024 03:09
Colourise and highlight text in your Python app when running through shell.
# Colourise - colours text in shell. Returns plain if colour doesn't exist.
def colourise(colour, text):
if colour == "black":
return "\033[1;30m" + str(text) + "\033[1;m"
if colour == "red":
return "\033[1;31m" + str(text) + "\033[1;m"
if colour == "green":
return "\033[1;32m" + str(text) + "\033[1;m"
if colour == "yellow":
return "\033[1;33m" + str(text) + "\033[1;m"