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 / 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 / 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:
#!/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'
require 'omniauth/oauth'
require 'multi_json'
module OmniAuth
module Strategies
class Instapaper < OmniAuth::Strategies::XAuth
def initialize(app, consumer_key = nil, consumer_secret = nil, options = {}, &block)
client_options = {
:title => 'Instapaper',