Skip to content

Instantly share code, notes, and snippets.

View zeroeth's full-sized avatar
🤖
🐱 🤖 🐱 🤖

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
@zeroeth
zeroeth / gist:4004096
Created November 2, 2012 20:21
html stuffy
<p>
<span style="background-color: red">&nbsp;&nbsp;hello&nbsp;&nbsp;</span>
foo
<span style="background-color: pink">world</span>
</p>
%div
%span{style: "background-color: pink;"}
label1
@zeroeth
zeroeth / stuff.cs
Created October 27, 2012 05:24
ramblings from the tribes universe
// X-Calibar Yellings
Say::New( sayHmmmm, "ready", "The time has come...Prepare yourself!");
Say::New( sayYoohooo, "taunt1", "The blade of purity cleanses yet another soul");
Say::New( saySighh, "sorry", "I am sorry, but tis my duty to fight");
Say::New( yellYouFool, "dsgst2", "You Fool! Do you realize what you have done?!?");␠
Say::New( yellProceed, "attac2", "Fight against me if you can");
Say::New( sayNoo, "dsgst4", "Impossible!");
Say::New( sayAllRight, "cheer3", "That was an excellent battle!!");
Say::New( yellHi, "hello", "Greetings!!! I am X-Calibar");
Say::New( yellCover, "coverme", "I may be X-Calibar... but I AM NOT immortal!");
@zeroeth
zeroeth / gist:3959703
Created October 26, 2012 16:17 — forked from jessedearing/gist:2351836
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
@zeroeth
zeroeth / dna.c
Created October 23, 2012 00:13
obfuscated c code competition
// taken from http://www.ioccc.org/years.html
#include <ncurses.h>
#define T typedef unsigned
T long G;
T short CT;
#define ATG srand(time(0)); initscr(); cbreak(); noecho(); start_color();
#define GG(T,C) attrset(A_BOLD*!(T)|COLOR_PAIR(C%2+1));
#define AC(G) init_pair(G/2,G,nodelay(stdscr,G/3));
#define TCT(A,G,C) mvaddch(A+CTT*6+4,CGA*12+G,C)
@zeroeth
zeroeth / stuff.txt
Created September 26, 2012 06:01
stuff
There were two of them. They lived in a world of sorts, with a few billion others.
You might not call it a world, but it was. These two did the things one might
expect to be done in this kind of world; Dance around, gravitate towards others,
and generally just go with the flow. There was not much deviation, and although quite
similar, these two did not know one another; for how could you when you lived
nearly a hundred thousand lightyears apart.
@zeroeth
zeroeth / stuff.rb
Created September 25, 2012 23:30
rough rails app outline
# make Gemfile with 'gem rails'
# make .rvmrc with ruby version and gemset for project
# cd back in to pick up rvm
# bundle to install rails alone
# rails new . (let it overwrite gemfile, it will automatically bundle)
# git init
# git add .
# git commit -m 'initial rails app'
# (configure database yaml.. or use sqlite)
# rake db:create
@zeroeth
zeroeth / ravelry_oauth.rb
Created September 24, 2012 03:20
weeeee
require 'omniauth-oauth'
module OmniAuth
module Strategies
class Ravelry < OmniAuth::Strategies::OAuth
# Give your strategy a name.
option :name, "ravelry"
# This is where you pass the options you would pass when
# initializing your consumer from the OAuth gem.
@zeroeth
zeroeth / check_out_active.sh
Created August 20, 2012 16:30
Jurassic Park movie source code
# CheckOutActive - Check the active window out for modification
#
# Usage: Called by a user­defined menu item
#
# CheckOutActive uses the ProjectInfo command to determine the
# parent project for the file open as the Active window. Once this
# project has been determined, the file open as the Active window
# can be properly checked out.
#
# © Apple Computer, Inc. 1988
@zeroeth
zeroeth / cards.rb
Created August 19, 2012 02:00
sample of card types :D
[["Creature — Cat", 41],
["Creature — Vampire", 42],
["Creature — Elf", 45],
["Creature — Merfolk Wizard", 46],
["Creature — Shapeshifter", 50],
["Creature — Illusion", 52],
["Creature — Goblin Warrior", 55],
["Creature — Drake", 57],
["Creature — Dragon", 59],
["Creature — Wurm", 62],
@zeroeth
zeroeth / crimea.csv
Created August 3, 2012 20:18 — forked from mbostock/.block
Sideways stacked bar timeseries
95 0
45 1
10 2
30 1
80 2
5 0