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
#!/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: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
@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)
#!/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 / Ubuntu rbenv
Last active December 10, 2015 14:50 — forked from HatemMahmoud/Ubuntu rbenv
# for more info: https://gist.github.com/1120938
@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 / 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 / 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 / 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',
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/alpine.rb
==> Downloading ftp://ftp.cac.washington.edu/alpine/alpine-2.00.tar.gz
Already downloaded: /Library/Caches/Homebrew/alpine-2.00.tar.gz
tar xf /Library/Caches/Homebrew/alpine-2.00.tar.gz
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.8.3) https://trac.macports.org/export/89747/trunk/dports/mail/alpine/files/alpine-osx-10.6.patch -o 000-homebrew.diff --silent
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file imap/Makefile
patching file imap/src/osdep/unix/ckp_pam.c