Skip to content

Instantly share code, notes, and snippets.

View wtf.rb
class Bar
def self.class_name
loop { Bar.class_name }
View Glavni program
#include <iostream>
using namespace std;
#include "stog_pokazivaci.h"
//#include "stog_polje.h"
int kraj_rek;
bool print;
View sf-veggie-faves.txt
* Jay's Cheesesteaks (many seitan flavors)
* Ike's Place (tons of amazing veggie sandwiches)
* Toaster Oven (Potbelly's clone)
* Papalote (their house salsa is the best IN THE WORLD)
* El Buen Sabor (my favorite super veggie burrito)
* Taqueria Cancún (classic mission burrito; open till 2am on fri/sat, 1am other days, I think)
mojombo / vwilight.vim
Created Jan 26, 2011
vwilight.vim: A TRUE Twilight color theme for Vim
View vwilight.vim
" Vim color file
" Converted from Textmate theme Twilight using Coloration v0.2.5 (
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
Don't try this at home.
View gist:21
function INTERNETS() {
# Fucking computer forgets how to connect to unsecured & WEP networks
# after going to sleep. I GET. WPA IS BETTER. SOMETIMES ITS NOT MY
# module & restarts the wireless daemon.)
sudo rmmod wl
sudo /etc/rc.d/wicd stop
sudo modprobe wl
sudo /etc/rc.d/wicd start
View FUGPL.txt
The FUGPL License
Free software should be truly free. The GPL and its derivatives infringe
upon the freedoms of the licensee by forcing distribution of code with
distribution of software. This license is a protest against anti-business,
anti-freedom licenses such as the GPL.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

How to set your Acer C720 Chromebook to boot to Ubuntu by default.

  1. Place your closed laptop on a soft surface, upside down.
  2. Use a sharp knife to cut a hole in the warranty sticker (YES THIS WILL VOID THE WARRANTY).
  3. Remove the 13 screws with a small phillips head screwdriver (PH1 size works well). Be careful, the screws are very small and will strip easily if you use the wrong size screwdriver.
  4. Remove the bottom of the laptop by pulling up on it near the hinges. It takes a bit of pressure to remove, but if you lift it from the back (near the hinges) the same way you would open a laptop screen, the hooks won't break (even though they will make a loud snapping sound).
  5. Remove the BIOS write-protect screw. It is labeled as #7 in this image
  6. With the bottom off, turn over the laptop and open the screen.
  7. Plug the laptop in (it must b
View gfm.rb
require 'digest/md5'
def gfm(text)
# Extract pre blocks
extractions = {}
text.gsub!(%r{<pre>.*?</pre>}m) do |match|
md5 = Digest::MD5.hexdigest(match)
extractions[md5] = match
View gist:26183
rails_root = "/data/github/current"
20.times do |num| do |w| = "dj-#{num}" = 'dj'
w.interval = 30.seconds
w.start = "rake -f #{rails_root}/Rakefile production jobs:work"
w.uid = 'git'