Skip to content

Instantly share code, notes, and snippets.

View FiXato's full-sized avatar

Filip H.F. "FiXato" Slagter FiXato

View GitHub Profile
@UnknownEntity634
UnknownEntity634 / chatmosphere_hosts
Created August 24, 2013 22:27
Chatmosphere IPs
app1.chatmosphere.org has address 69.41.179.202
app2.chatmosphere.org has address 69.41.179.203
app3.chatmosphere.org has address 69.41.179.204
app4.chatmosphere.org has address 69.41.179.205
app5.chatmosphere.org has address 69.41.179.206
app6.chatmosphere.org has address 69.41.165.98
app7.chatmosphere.org has address 69.41.165.99
app8.chatmosphere.org has address 69.41.165.100
app9.chatmosphere.org has address 69.41.165.101
app10.chatmosphere.org has address 69.41.165.102
@FiXato
FiXato / Handy CSS Snippets.css
Last active December 11, 2015 20:59
Handy Ruby and CSS Snippets
/* Put the href of all anchors after each link. Useful for print stylesheets. */
a:after {content: attr(href);}
/* Get a scrollbar on the left side */
#nav {max-height:150px; width: 100%; overflow: auto; direction: rtl;}
#nav * {direction: ltr}
/* Nicer looking blockquotes */
blockquote {margin-left: 1em;margin-bottom: 1em; border: 1px solid #666; max-width: 800px;}
/* Including nicer quotation marks */
@FiXato
FiXato / MysteryHunt-matcher.rb
Created January 28, 2013 21:42
Something for Unknown_Entity aka o_o
#!/usr/bin/env ruby
#encoding: utf-8
msgs = [
"[1-7] Porto Mojada: Foxtrot Tango [Work your alphabets]",
"[SOLVED: TATTOO] [1-9] Topless Beach: Boxstep [Gathering Data. Keyword: Boxing]",
"[SOLVED: SYLVESTER] [2-2] Video Store: Harold's Puzzle"
]
regexp = /(\[SOLVED: (?<solution>.+?)\] )?\[(?<num1>\d+)(-(?<num2>\d+))?\] (?<title>.+?)( \[(?<hint>.+?)\])?\z/
msgs.each{|msg| puts msg.match(regexp).inspect}
@FiXato
FiXato / openMSX install instructions.sh
Last active December 11, 2015 19:48
Tools which help with installing and updating openMSX from SVN on Linux.
sudo apt-get install subversion
sudo apt-get build-dep openmsx
mkdir ~/bin
echo '#!/bin/bash' > ~/bin/update_openmsx
echo '[ ! -d ~/openmsx ] && cd ~/ && svn co https://openmsx.svn.sourceforge.net/svnroot/openmsx/openmsx/trunk openMSX' >> ~/bin/update_openmsx
echo "cd ~/openMSX && svn up && ./configure && make && sudo make install" >> ~/bin/update_openmsx && chmod +x ~/bin/update_openmsx
~/bin/update_openmsx
@FiXato
FiXato / Satanklaas.txt
Created December 2, 2012 18:50
Quick English translation of Satanklaas lyrics
Quick English translation of http://www.youtube.com/watch?v=ElYwUY60UYw
Goddamnthecunt!
When I was told
that Santa Claus does not really exist,
something snapped in my head.
Man I got so angry.
I started smoking heavy tobacco
and became a Satanist.
# Apply to Shopify API #
Interested in working at Shopify? Don't use that form, you're a
developer and can clearly do better than that!
Instead you can apply to Shopify via our applicant API. Of course,
for the extra effort you will be given a higher priority than those
who simply apply via the webform.
# How? #
@gorenje
gorenje / Gemfile
Created June 8, 2012 11:05 — forked from fairchild/Gemfile
An example sinatra omniauth client app
source :rubygems
gem 'sinatra'
gem 'json'
gem 'omniauth'
gem 'omniauth-oauth2'
gem 'omniauth-github'
gem 'omniauth-facebook'
gem 'omniauth-twitter'
# gem 'omniauth-att', :path => File.expand_path("./../../omniauth-att", __FILE__)
@hirataya
hirataya / rvdata2_dump.rb
Created February 17, 2012 12:17
rvdata2 dumper
#! /usr/bin/env ruby
require "zlib"
fp = File.open(ARGV.shift, "r:binary")
Marshal.load(fp.read).each.with_index do |cont, index|
id, name, code = cont
code = Zlib::Inflate.inflate(code).force_encoding("utf-8")
puts "#"*79 if 0 < index
printf "[%s] (%d)\n%s", name, id, code
@kyanny
kyanny / gist:1668822
Created January 24, 2012 08:22
bashrc prompt git && rbenv
# rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
source ~/.rbenv/completions/rbenv.bash
# prompt with ruby version
# rbenv version | sed -e 's/ .*//'
__rbenv_ps1 ()
{
rbenv_ruby_version=`rbenv version | sed -e 's/ .*//'`
@henrik
henrik / en.yml
Created January 13, 2010 13:42
Ruby on Rails i18n: storing locale names in their yml files and retrieving them.
# config/locales/en.yml
en:
i18n:
language:
name: 'English'