Skip to content

Instantly share code, notes, and snippets.

View yholkamp's full-sized avatar

Yorick Holkamp yholkamp

View GitHub Profile
/home/np/work/sc/db/countrycodes.rb:228: invalid multibyte char (US-ASCII)
/home/np/work/sc/db/countrycodes.rb:228: invalid multibyte char (US-ASCII)
/home/np/work/sc/db/countrycodes.rb:228: syntax error, unexpected $end, expecting tASSOC
{"Verenigd Koninkrijk" => "gb"},
# Relevant lines:
{"Verenigde Staten" => "us"},
{"Verenigd Koninkrijk" => "gb"},
{"Vietnam" => "vn"},
nl:
formtastic:
actions:
create: "Add"
update: "Update"
user:
create: "Bla"
# Failing line:
# <%= form.commit_button %>
namespace :spec do
# largely lifted from http://www.pervasivecode.com/blog/2007/06/28/hacking-rakestats-to-get-gross-loc/
task :stats_setup do
require 'code_statistics'
class CodeStatistics
alias calculate_statistics_orig calculate_statistics
def calculate_statistics
@pairs.inject({}) do |stats, pair|
if 3 == pair.size
nl:
authlogic:
error_messages:
login_blank: moet opgegeven zijn
login_not_found: bestaat niet
login_invalid: mag alleen letters, nummers, spaties en .-_@ bevatten
email_invalid: is geen geldig e-mailadres
password_blank: moet opgegeven zijn
password_invalid: is ongeldig
not_active: Je account is niet actief
<!--[if lte IE 6]>
<style type="text/css">
#ie6msg{border:3px solid #090; margin:8px 0; background:#cfc; color:#000;}
#ie6msg h4{margin:8px; padding:0;}
#ie6msg p{margin:8px; padding:0;}
#ie6msg p a.getie8{font-weight:bold; color:#006;}
#ie6msg p a.ie6expl{font-weight:normal; color:#006;}
</style>
<div id="ie6msg">
<h4>Did you know that your browser is out of date?</h4>
<?php
class Home_Controller extends Layout_Controller {
public function __construct() {
parent::__construct();
}
public function index() {
$this->template->content = new View('home/home');
$this->template->title = 'Index';
# File Line Location
0 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
1 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require'
2 /home/np/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.15/lib/phusion_passenger/utils.rb 221 in `setup_bundler_support'
3 /home/np/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.15/lib/phusion_passenger/rack/application_spawner.rb 105 in `run'
4 /home/np/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.15/lib/phusion_passenger/utils.rb 323 in `report_app_init_status'
5 /home/np/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.15/lib/phusion_passenger/rack/application_spawner.rb 87 in `run'
6 /home/np/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.15/lib/phusion_passenger/rack/application_spawner.rb 65 in `spawn_application'
7 /home/np/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.15/lib/phusion_passenger/utils.rb 252 in `safe_fork'
8 /home/np/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.15/lib/phusion_passenger/rack/application_spawner.rb 58 in `spawn_application'
@yholkamp
yholkamp / ezvzdump
Created October 15, 2011 21:34
ezvzdump with flexible scp/sftp backup synchronization
#!/bin/bash
# ezvzdump
VEIDS="100"
LOCAL_COPIES=7
REMOTE_COPIES=3
# The local path that this script will rsync the VE's to.
LOCAL_PATH="/vz/dump/"
@yholkamp
yholkamp / Gemfile
Created October 16, 2015 12:28 — forked from mm53bar/Gemfile
Be sure to install the datadog agent on your server before applying this code to your app. Instructions are at https://app.datadoghq.com/account/settings#agent or use my Sunzi recipe at https://github.com/Shift81/sunzi-recipes/blob/master/ubuntu/precise/datadog.sh
gem 'dogstatsd-ruby'
@yholkamp
yholkamp / private.xml
Created December 3, 2015 11:42
Karabiner lock screen config
<?xml version="1.0"?>
<root>
<item>
<name>Custom PC Style Lock Screen (Lock screen with ctrl-command--L)</name>
<identifier>remap.custom_pc_style_lock_screen</identifier>
<autogen>
__KeyToKey__
KeyCode::L, ModifierFlag::CONTROL_L, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND,
ConsumerKeyCode::POWER, ModifierFlag::CONTROL_L, ModifierFlag::SHIFT_L,
</autogen>