Skip to content

Instantly share code, notes, and snippets.

View jmcveigh's full-sized avatar

Jason McVeigh jmcveigh

View GitHub Profile
@jmcveigh
jmcveigh / sinatra_example.rb
Created January 24, 2013 14:40
This is an example of a sinatra request.
get '/news/nin' do
rss_feed = "http://feeds.nin.com/ninNews"
rss_content = ""
open(rss_feed) do |fh|
rss_content = fh.read
end
rss = RSS::Parser.parse(rss_content,false)
@jmcveigh
jmcveigh / .zshrc
Created October 26, 2014 21:00
SSH Banner for Fresh RHEL 7 Passeneger Apache AWS Rails Garage Mechanic Stack
echo "__________ .__ ";
echo "\______ \ ____ | | __ __ _________ ";
echo " | | __/ __ \| | | | \/ ___\__ \ ";
echo " | | \ ___/| |_| | / /_/ / __ \_ ";
echo " |______ /\___ |____|____/\___ (____ / ";
echo " ____ ___.__ __ /_____/ \/ .__ ";
echo "| | | |_/ |_____________ __________ ____ |__| ____ ";
echo "| | | |\ __\_ __ \__ \ / ___/ _ \ / \| _/ ___\ ";
echo "| | /| |_| | | | \// __ \_\___ ( <_> | | | \ \___ ";
echo "|______/ |____|__| |__| (____ /____ \____/|___| |__|\___ >";
@jmcveigh
jmcveigh / chink.pl
Created November 11, 2014 11:39
chink.pl -- jmcveigh
#!/usr/bin/perl
# _________ .__ .__ __ .__
# \_ ___ \| |__ |__| ____ | | __ ______ | |
# / \ \/| | \| |/ \| |/ / \____ \| |
# \ \___| Y | | | | < | |_> | |__
# \______ |___| |__|___| |__|_ \ /\ | __/|____/
# \/ \/ \/ \/ \/ |__|
#
# usage 'cat c.log | chink.pl'
# usage 'tail -f c.log | chink.pl'
@jmcveigh
jmcveigh / birthday.cc
Created December 5, 2014 15:05
The Birthday Attack (Approximation)
#include <cmath>
#include <cstdlib>
#include <iostream>
int main(int argc, char ** argv) {
if (argc != 3) {
std::cerr << "Usage: " << argv[0] << " probability-exponent bits" << std::endl;
return 1;
}
@jmcveigh
jmcveigh / METALH.ASC
Created December 7, 2014 21:09
ASCII Header for IRC @efnet #metal
      ,xAQQQ$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$QQQAx,
   ,a$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$a,
  $$$$$$$$yCCCC#CCy$$$$$$$$$$$$$$$$$$i^"""^i$$$$$$$$$$$$$$yCCy$$$$$$$$
 $$$$$$"' ,.aaaaa., **yQ@$ ,......., _@aaQ$_,  ,...., ^Y^ ,.., $$$$$$$$
,$$$@',aa$$$^$$$^$$$aa,^ .,y%#@Q!1I$=i$$$$$i' a$$$$$@y, .,y%#@ $$$$$$$$,
:$$$ i$$$$$i $$$ i$$$$$i,$$$$$ ,i$$i  i$$$$   ,yaa@$$$$ $$$$$' Y"~Y$$$$:
:$$$ '$$$$$  $$$  $$$$$'i$$$$$"""""'  $$$$$  $$$$i"$$$$ $$$$$i,..\ |$$$:
`$$$@ '~Y@$, Y@$ ,$@Y~',."$$$$$y$$$i  '"Y@$, `$$$$a$$$$ "$$$$$y$$$i $$$'
  "$$$Q*...yQy..yaaaaQ$$$*.....,... `Q@y...yQ!....,....aY....,,,...a$y"
@jmcveigh
jmcveigh / birthday.cc
Created January 4, 2015 07:15
Wikipedia : Birthday Attack
#include <cmath>
#include <cstdlib>
#include <iostream>
int main(int argc, char ** argv) {
if (argc != 3) {
std::cerr << "Usage: " << argv[0] << " probability-exponent bits" << std::endl;
return 1;
}
@jmcveigh
jmcveigh / puppet.c
Last active April 6, 2016 05:01
puppet.c
/*
* puppet.c by jmcveigh
*
* This is basically smurf.c with a udp twist.
*
* "There are women that hate me that would love to suck my cock. There are women that love me that would love to garotte me."
*
*/
#include <arpa/inet.h>
. ..
a$$$$$$$$$$$$$$$$$$$$$a
$$4#"""" $$/"""""""""q$$
$$ a$"" $ $$ $ $ a### $$
$$ $..a $ " $ $ P-- $$
$$ $$$# $$$$ \$$" \aaa $$
Q$aaaaaaaaaaaaaaaaaaaaa$P
`"Q$$$$$$$$$$$$$$$P"""`
## # ## ##
@jmcveigh
jmcveigh / #metal.asc
Created July 8, 2015 13:43
#metal - generated ascii art
.

,.;:"^":;., ::. $~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$

$$$

:: . : .,:::::::::::::::::::::. ::: $$$

$$$_,;',;'_;;,. ;

;;;;'''';;;;;;;;'''';;`;; $ ;;; $ $ $''[[''[[''[[[[, ,[[[[, [[cccc [[ ,[[ '[[, [[[ $ $ $ ,$" ,$" "$ """" c$cc$c ' $ $o88oo88oo 888 Y88" 888o888oo,__ $ 88, 888 888,o88oo,.__$ $,M" ,M" MMM M' "MMM""""YUMMM MMM YMM ""` """"YUMMM$

@jmcveigh
jmcveigh / mystic.asc
Created July 8, 2015 13:46
Mystic BBS demo
.

,.;:"^":;., ::. $~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$

$$$. : .-:. ::-. .::::::.:::::::::::

.,-::::: $$$

$$$;;,. ;

';;. ;;;;';;;` ;;;;;;;;'''';;;,;;;'```’ $ $[[[[, ,[[[[, '[[,[[[' '[==/[[[[, [[ [[[[[[ $ $"$ c" ''' $ $ $888 Y88" 888o ,8P" $ 88b dP 88, 888`88bo,__,o, $ $MMM M' "MMMmM" "YMmMY" MMM MMM "YUMMMMMP"$