Skip to content

Instantly share code, notes, and snippets.

@atomotic
atomotic / Readme.md
Last active September 9, 2022 09:39
Internet Archive Save Page Now
@takeshixx
takeshixx / hb-test.py
Last active March 9, 2024 13:37
OpenSSL heartbeat PoC with STARTTLS support.
#!/usr/bin/env python2
"""
Author: takeshix <takeshix@adversec.com>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser
@sh1n0b1
sh1n0b1 / ssltest.py
Created April 8, 2014 07:53
Python Heartbleed (CVE-2014-0160) Proof of Concept
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@munificent
munificent / gist:9749671
Last active June 23, 2022 04:04
You appear to be creating a new IDE...
You appear to be advocating a new:
[ ] cloud-hosted [ ] locally installable [ ] web-based [ ] browser-based [ ] language-agnostic
[ ] language-specific IDE. Your IDE will not succeed. Here is why it will not succeed.
You appear to believe that:
[ ] Syntax highlighting is what makes programming difficult
[ ] Garbage collection is free
[ ] Computers have infinite memory
[ ] Nobody really needs:
@philfreo
philfreo / gist:7257723
Created October 31, 2013 21:44
Facebook Perl source code from 2005. When browsing around thefacebook.com in 2005 the server spit out some server-side source code rather than running it. I believe this was for their old graph feature that let you visualize the graph between all your friends. The filename is `mygraph.svgz` and contains some gems such as a commented out "zuck" d…
#!/usr/bin/perl
use Mysql;
use strict;
use vars qw($school_name);
use vars qw($pass);
require "./cgi-lib.pl";

Build your own private, encrypted, open-source Dropbox-esque sync folder

Prerequisites:

  • One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
  • A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.

Software components used:

  • Unison for file synchronization
  • EncFS for folder encryption
anonymous
anonymous / gist:4759466
Created February 12, 2013 01:58
Bill Gates AMA - Feb 11 2013

What are your thoughts on the push against the open and free Internet that we have been seeing in the recent past and present (such as sopa, etc)?

There are two things this could reference. One is the free/pay for software mix. The Internet has benefited from having lots of free stuff and lots of commercial software. It has been interesting see people inventing hybrid models. Even stuff that is pretty commercial often has free versions for some audiences. Even the most open stuff often have services people choose to pay for.

The second thing is the anonymous versus identified tension. This is another one where both will probably thrive since you want anonymity for some things and full identity for others. I am surprised how little progress has been made in the identity space but it will improve.


*[What do people give you for your birthday, given that you can buy anything you want?](http:

I've been in this boat, so maybe I can help a bit.

I went to a university for about three months before ultimately deciding to leave to pursue a job offer at a company I had applied to. I didn't actually end up going to that company because it was in San Francisco and I wanted to stay in my home state, but I did get a matching offer from the employer I had been with prior to leaving for school. It has been a year since then and it has been incredible and exciting but there certainly are downsides to choosing this lifestyle.

  1. It is exhausting. I went through high school without exerting very much effort and the most challenging experiences I had were my job outside of school or related a girl or some other social drama. However, at the time it was very clear between me and my employer that I was still in high school and that it came first so I always had an excuse if I needed a break or just some time relax or cool off. Once I had signed my full-time employment contract that understanding was thrown off a
@titanous
titanous / gist:3791767
Created September 27, 2012 02:08
Top 100 Tent.is users by followers
tent,3262
lorenb,199
cat,160
daniel,130
jonathan,119
me,70
jesse,64
po,59
jyap,54
updates,51
@dfm
dfm / Makefile
Created August 13, 2012 19:51
ctypes chi2 example by @jrwren
libchi2.so: chi2.o
gcc -shared -Wl,-soname,libchi2.so.1 -o libchi2.so.1.0.0 chi2.o -lc
chi2.o: chi2.c
gcc -fPIC -g -c -Wall chi2.c