Skip to content

Instantly share code, notes, and snippets.

Spot Colors:
PANTONE 116 U
PANTONE 123 U
PANTONE 1245 U
PANTONE 192 U
PANTONE 296 U
PANTONE 376 U
PANTONE 7504 U
@adrianorsouza
adrianorsouza / mkselfssl.sh
Last active September 1, 2023 10:34
Script to create a new self-signed SSL Certificate for Nginx
#!/bin/bash
# @author Adriano Rosa (http://adrianorosa.com)
# @date: 2014-05-13 09:43
#
# Bash Script to create a new self-signed SSL Certificate
# At the end of creating a new Certificate this script will output a few lines
# to be copied and placed into NGINX site conf
#
# USAGE: this command will ask for the certificate name and number in days it will expire
require 'sinatra'
require 'net/http'
get '/' do
is_up = Net::HTTP.start('play.noobonicplague.com').head('/')
code = is_up.code
if code == '200'
"It's up!"
else
@livibetter
livibetter / README.md
Last active August 17, 2019 16:34
Let It Rain!
anonymous
anonymous / gist:5596164
Created May 17, 2013 00:27
# by aji, http://github.com/aji
# (couldn't be bothered to log into account at work)
import sys
alphabet = sys.argv[1]
length = int(sys.argv[2])
# yields every possible permutation of n elements of alphabet
def each(n=length):
anonymous
anonymous / essay.tex
Created April 9, 2013 03:35
\documentclass[12pt]{article}
%Margin - 1 inch on all sides
\usepackage[letterpaper]{geometry}
\geometry{top=1.125in, bottom=1.125in, left=1.125in, right=1.125in}
%Doublespacing
\usepackage{setspace}
\doublespacing
JAVA=java
JAVAC=javac
MAIN=NameOfMainClass
all:
cd bin
${JAVAC} ../src/*
run:
cd bin
@quchen
quchen / trolling_haskell
Last active November 12, 2024 00:10
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@habnabit
habnabit / chatserver.py
Created September 29, 2012 20:10
one expression chatserver
main = lambda port: (lambda dt: (lambda mm: (lambda n: (map(lambda r: (lambda
rr: setattr(n, *rr) if (type(rr) is tuple and len(rr) == 2) else None)(r()),
[lambda: map(setattr, *zip(*[(n, m, __import__(m)) for m in mm.m.decode('ba'
'se64').split()])), lambda: map(n.s['signal.signal'], (n.s['signal.SIGINT'],
n.s['signal.SIGTERM']), [lambda s, f: (n.s['sys.exit']() if n.f else [n.sa(
mm.l[0], n.o)] and n.u('f', True) or n.fc(n.l))] * 2), lambda: setattr(mm,
'l', mm.l.decode('base64').split('~~~')), lambda: ('sw', n.s['types.Functio'
'nType'] (compile("try:\n\tv = n.select.select(n.so, n.w(), [])\nexcept n.s"
"elect.error, e:\n\tif e[0] != n.errno.EINTR: raise\nelse:\n\tn.u('sr', v)",
'', 'exec'), dict(n=n, OSError=OSError))),lambda: ('l', n.s['socket.socket']
@unruthless
unruthless / CSS for <sup> and <sub>
Created May 26, 2010 01:31
CSS for <sub> and <sup>
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position