Skip to content

Instantly share code, notes, and snippets.

View parkr's full-sized avatar
📡
E.T. Phone Home

Parker Moore parkr

📡
E.T. Phone Home
View GitHub Profile
@parkr
parkr / countries.rb
Last active December 16, 2015 19:58
Country codes and their country names
#
# ISO-3166-1 Alpha-2 Country Codes to their respective Country Names
#
# Original list in German by @i0rek
# Translated into English by @parkr
{
'AF' => 'Afghanistan',
'AL' => 'Albania',
'AQ' => 'Antarctica',
@parkr
parkr / gist:5469410
Created April 26, 2013 18:35
Jekyll::Site#initialize refactor
module Jekyll
class Site
attr_accessor :config, :layouts, :posts, :pages, :static_files,
:categories, :exclude, :include, :source, :dest, :lsi, :pygments,
:permalink_style, :tags, :time, :future, :safe, :plugins, :limit_posts,
:show_drafts, :keep_files, :baseurl
attr_accessor :converters, :generators
# Public: Initialize a new Site.
@parkr
parkr / report_download.sh
Last active December 16, 2015 13:48
Download reports from Adyen
$COMPANY="CompanyName"
$PWD="secret"
$MERCHANT="MerchantAccountName"
wget --http-user=report%Company.$COMPANY --http-password=$PWD \
--quiet --recursive --accept '.csv' --no-check-certificate \
https://ca-live.adyen.com/reports/download/MerchantAccount/$MERCHANT/
@parkr
parkr / this-has-no-lang
Created March 10, 2013 00:21
language-less gist
this
file
must
have
more
than
ten
lines
of
code
@parkr
parkr / Ubuntu rbenv
Last active December 10, 2015 14:50 — forked from HatemMahmoud/Ubuntu rbenv
# for more info: https://gist.github.com/1120938
#!/bin/bash
set -e # exit on error
### README
# * built for Ubuntu (Lucid Lynx)
# * uses GIT via SSH because of !@#$% proxy at work
# * installs your desired ruby version (1.9.2-p290 per default) using rbenv
# ** including openssl (needed by bundler)
# ** including sqlite (probably needed for rails apps)
#
# Before you start:
@parkr
parkr / gist:4334548
Created December 19, 2012 05:15
HipChat crash
Process: HipChat [49247]
Path: /Applications/HipChat.app/Contents/MacOS/HipChat
Identifier: com.hipchat.87969878BBF1203EC547B61E69990E8273C4626D.1
Version: 1.20120926103402 (???)
Code Type: X86 (Native)
Parent Process: launchd [222]
User ID: 501
Date/Time: 2012-12-19 00:14:00.893 -0500
OS Version: Mac OS X 10.8.2 (12C60)
@parkr
parkr / gist:4321346
Created December 17, 2012 19:42
Test gist for octopress gist tag
@@ -590,7 +590,7 @@ class SpritesTest < Test::Unit::TestCase
it "should generate a sprite from nested folders" do
css = render <<-SCSS
- @import "nested/*.png";
+ @import "nested/**/*.png";
@include all-nested-sprites;
SCSS
assert_correct css, <<-CSS
#!/usr/bin/env ruby
$:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
require 'commander/import'
require 'jekyll'
program :name, 'jekyll'
program :version, Jekyll::VERSION
program :description, 'Jekyll is a blog-aware, static site generator in Ruby'
@parkr
parkr / gist:4190917
Created December 2, 2012 20:30
iTunes 11 Crash
Process: iTunes [37023]
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Identifier: com.apple.iTunes
Version: 11.0 (11.0)
Build Info: iTunes-1100099063000000~1
Code Type: X86-64 (Native)
Parent Process: launchd [124]
User ID: 501
Date/Time: 2012-12-02 15:29:33.552 -0500