Skip to content

Instantly share code, notes, and snippets.

View pimeys's full-sized avatar

Julius de Bruijn pimeys

View GitHub Profile
@pimeys
pimeys / .vimrc
Created December 13, 2012 13:36
.vimrc shortcut to search the currect directory tree with the word below the cursor (or selection) and return the results in a new buffer. Needs ack.vim plugin.
noremap <silent> <leader>a yiw:Ack! <C-r>"<cr>
vnoremap <silent> <leader>a y:Ack! <C-r>"<cr>
require 'cgi'
require 'digest'
params = {
type: 'json',
site_id: '3481',
med_user: '6318_flurry3',
ip: '178.210.115.50',
language: 'en_US',
media_id: '543',
1.9.3p327 :003 > Developer::BatchProviderRolloutsController
NameError: uninitialized constant Developer::BatchProviderRolloutsController
from (irb):3
from /home/pimeys/.rvm/gems/ruby-1.9.3-p327@sp_ams/gems/railties-3.2.12/lib/rails/commands/console.rb:47:in `start'
from /home/pimeys/.rvm/gems/ruby-1.9.3-p327@sp_ams/gems/railties-3.2.12/lib/rails/commands/console.rb:8:in `start'
from /home/pimeys/.rvm/gems/ruby-1.9.3-p327@sp_ams/gems/railties-3.2.12/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
1.9.3p327 :004 > Developer::BatchProviderRollouts
LoadError: Expected /home/pimeys/code/ruby/ams/app/controllers/developer/batch_provider_rollouts.rb to define Developer::BatchProviderRollouts
@pimeys
pimeys / .Xresources
Last active December 19, 2015 21:19
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
#define S_yellow #b58900
#define S_orange #cb4b16
# irssi theme for the Solarized color palette
# (Adapted from default theme distributed with irssi 0.8.15 circa 2011-04-25)
#
# Adaptation by: Huy Z
# Source: https://github.com/huyz/irssi-colors-solarized
#
# When testing changes, the easiest way to reload the theme is with /RELOAD.
# This reloads the configuration file too, so if you did any changes remember
# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
function (input) {
var numbers_to_product = 5;
var max = 0;
for (var i = 0; i <= input.length - numbers_to_product; i++) {
var product = _.reduce(_.range(i, i + numbers_to_product), function(acc, j) {
return acc * parseInt(input[j]);
}, 1);
if (product > max) {
rake aborted!
no such file to load -- pp
kernel/common/code_loader.rb:436:in `load_error'
kernel/common/code_loader.rb:423:in `resolve_require_path'
kernel/common/code_loader.rb:103:in `require'
kernel/bootstrap/rubinius.rb:137:in `synchronize'
kernel/common/code_loader.rb:102:in `require'
kernel/common/code_loader.rb:237:in `require'
kernel/common/kernel.rb:685:in `require'
/home/pimeys/.rvm/gems/rbx-2.0.0@engine/gems/pry-0.9.12.2/lib/pry.rb:5:in `__script__'
http://soundcloud.com/sloberi/january-mix
http://soundcloud.com/bloomlive/bloom-live-entropy-vs-hytky
http://soundcloud.com/desto/sets/no-sleep-ep-forthcoming-rwina
http://soundcloud.com/earmilk/french-fries-hugz-feat
http://soundcloud.com/emmavaltonen/03-2012
http://soundcloud.com/lafleur/winter-cabin-mix
http://soundcloud.com/homemaderecords/hm014-v-a-three-cities-ep
http://soundcloud.com/eerrorr/sunshine
http://soundcloud.com/omunit/om-unit-x-machine-drum-dream
http://soundcloud.com/nightslugs/sets/l-vis-1990-club-constructions
This file has been truncated, but you can view the full file.
Providers::MobileVideoFilterer
when checking if the program cap is reached for the video
and program contingent is set to zero
/home/pimeys/.rvm/gems/ruby-2.1.0@engine/gems/rspec-core-2.14.6/lib/rspec/core/memoized_helpers.rb:199: [BUG] Segmentation fault at 0x007fff51079ff8
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:9330 p:0015 s:32677 e:002673 BLOCK /home/pimeys/.rvm/gems/ruby-2.1.0@engine/gems/rspec-core-2.14.6/lib/rspec/core/memoized_helpers.rb:199 [FINISH]
c:9329 p:---- s:32671 e:002670 CFUNC :fetch
c:9328 p:0011 s:32667 e:002666 LAMBDA /home/pimeys/.rvm/gems/ruby-2.1.0@engine/gems/rspec-core-2.14.6/lib/rspec/core/memoized_helpers.rb:199 [FINISH]
17:33 <@pimeys> http://www.nu.nl/buitenland/3830706/amsterdam-vertrokken-boeing-777-stort-neer-in-oekraine.html
17:33 <@pimeys> https://www.youtube.com/watch?v=JhUkqs9CQ0w#t=15
17:33 <@pimeys> https://www.dropbox.com/s/nmj247y5h1l5cdp/Screenshot%202014-07-17%2017.30.19.png
17:34 <@pimeys> http://www.hs.fi/ulkomaat/Interfax+Malesialainen+lentokone+putosi+maahan+Ukrainassa/a1405567417218?ref=hs-art-new-1?ref=hs-breaking-news
17:40 <@pimeys> https://twitter.com/ReutersWorld/status/489795402892591104 #BREAKING: Malaysian plane was brought down
by a ground-to-air missile: Interior Ministry adviser, quoted by Interfax