Skip to content

Instantly share code, notes, and snippets.


evandrix evandrix

Block or report user

Report or block evandrix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9509160
#coding: utf-8
from cStringIO import StringIO
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.header import Header
from email import Charset
from email.generator import Generator
import smtplib
# Example address data
View gist:10592923
evandrix / index.html
Created Jun 14, 2014
SG-MY Causeway Camera embed
View index.html
<img alt="LNK CAM S5 SECOND LINK 10 KM-1.3 NB" src="">
<img alt="LNK CAM S5 SECOND LINK 8 KM1.8 SB" src="">
evandrix /
Created Jun 27, 2011
ADDREV template
public class ADDREV {
public static void main(String[] args)
evandrix / Hub.rb
Created Jun 30, 2011
hub fix for `hub clone a / b` => `hub clone a/b`
View Hub.rb
module Hub
class Runner
attr_reader :args
def initialize(*args)
# $ hub ["clone", "rtomayko", "/", "tilt"] => hub ["clone", "rtomayko/tilt"]
if args[0] == "clone" and args[2] = "/" and args.length == 4
args = ["clone", args[1..3].join]
evandrix / styles.css
Created Jul 4, 2011
tumblr stylesheet
View styles.css
/* */
pre {
border: 1px solid #CCC;
border-color: #BBB #DDD #DDD #BBB;
margin : 0.5em;
padding : 0.5em;
line-height: 1.1em;
font-size: 1em;
background: #F5F5F5 !important;
overflow: auto;
evandrix / README
Created Jul 5, 2011
Node.js ticksort in CoffeeScript!
Beating your sleepsort by magnitudes! Takes only MAX(argv) ticks and does not overflow the stack either.
Fork the gist if you can reduce the size of
View readyforzero.js
jsyang's solutions for ReadyForZero challenge.
June 16, 2011
|*| Loading question 1...
|*| The 3072 characters below contain a sequence of 5 characters which is
|*| repeated. However, there is a twist: one of the sequences has a typo.
View gist:1066954
<img src="data:image/gif;base64,
evandrix / printf.c
Created Jul 6, 2011
Advanced Format String Attacks Presented by Paul Haas (Linux only)
View printf.c
#include <stdio.h>
int main(int argc, char **argv){
# Compile and setup insecure environment
gcc printf.c -w -O0 -ggdb -std=c99 -static -D_FORTIFY_SOURCE=0 -fno-pie -Wno-format -Wno-format-security -fno-stack-protector -z norelro -z execstack -o printf
sudo sysctl -w kernel.randomize_va_space=0
You can’t perform that action at this time.