Skip to content

Instantly share code, notes, and snippets.

💭
offline

evandrix evandrix

💭
offline
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
https://raw.githubusercontent.com/user/repo/master/filename.js
-> https://rawgit.com/user/repo/master/filename.js
@evandrix
evandrix / index.html
Created Jun 14, 2014
SG-MY Causeway Camera embed
View index.html
<div>
<img alt="LNK CAM S5 SECOND LINK 10 KM-1.3 NB" src="http://www.llm.gov.my/maklumat_trafik_terkini.aspx?ImagePath=HYEC4fuANi4FALhGgLSGmDWAlRFhYuAE7/is8T3p+ROwE7P5XavMSyo/MuMcxM3ICpDtpXzLqfOW4hPqp4ExRJDJqARoFIgnAaRq7RNLqh1DfTZz3VZLZY4T+8oCfM6c">
<img alt="LNK CAM S5 SECOND LINK 8 KM1.8 SB" src="http://www.llm.gov.my/maklumat_trafik_terkini.aspx?ImagePath=HYEC4fuANi4FALhGgLSGmDWAlRFhYuAE7/is8T3p+ROwE7P5XavMSyo/MuMcxM3ICpDtpXzLqfOW4hPqp4ExRNY1mvfC6C26zLOdSXg33IoG4elAdTDml0GqDEBtkqMz">
</div>
@evandrix
evandrix / ADDREV.java
Created Jun 27, 2011
ADDREV template
View ADDREV.java
public class ADDREV {
public static void main(String[] args)
{
}
}
@evandrix
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]
end
@evandrix
evandrix / styles.css
Created Jul 4, 2011
tumblr stylesheet
View styles.css
/* evandrix.tumblr.com */
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
evandrix / README
Created Jul 5, 2011
Node.js ticksort in CoffeeScript!
View README
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 ticksort.coffee.
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,
iVBORw0KGgoAAAANSUhEUgAAAJYAAAB+CAIAAABJdH9aAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
jwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAABh0RVh0
U29mdHdhcmUAUGFpbnQuTkVUIHYzLjM2qefiJQAASwpJREFUeF7tvQd0XNl1JSp5ZFnBrZY140n+
sv9alr/mL80aS7aX3B5pNHK3OjBngmiAIEAQJAiAIDIKhcpVqFzIOeecMwGCOZNgjs2cYzPHZnh/
33eqLh6rkMludf9xrbMKrx6qXr26+5587rnf3rH/8Lfe9kMQBOklv/3tb7/tb/i360lGABC+ddq+
75CU3vr1/+2C0hH41lsZDgJs217n85bBg5y27j0Ion+B3srX/dtF3jKEBB5wYrDtObB5z4FNu/dv
3OUkHINwHsSx/Oox4JMMt0r0/5sp9UZcyMeFg7dx1751O/au2z64dpuTBrYN4uX6HXvxL8KSgAQB
yK+AL+m7cIfOSSbOMxIS/E6+spv5MubuG0GIG6LRwaCA7YATAFuzeXfPpl3dG3d2bdiBZxBe9m3Z
DVCBLoAEm/Lh+5IglPIcvksiGPZt2MkIt4EbdooHF5bfUL58Iwid8lPED/D0b93Ts3Fnx7rtbWu3
@evandrix
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){
printf(argv[1]);
}
# 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.