Skip to content

Instantly share code, notes, and snippets.

View zph's full-sized avatar

Zander Hill zph

View GitHub Profile
diff --git a/lib/trello-archiver/filewriter.rb b/lib/trello-archiver/filewriter.rb
index 2308e43..f570cfb 100644
--- a/lib/trello-archiver/filewriter.rb
+++ b/lib/trello-archiver/filewriter.rb
@@ -1,119 +1,205 @@
+ class Archiver
+ include Trello
+ include Trello::Authorization
+ def initialize(options =
@zph
zph / .vimrc
Created December 20, 2012 05:19 — forked from skwp/.vimrc
" Run the current file in a ConqueTerm, great for ruby tests
let g:ConqueTerm_InsertOnEnter = 0
let g:ConqueTerm_CWInsert = 1
nmap <silent> <Leader>r :call RunRubyCurrentFileConque()<CR>
nmap <silent> <Leader>R :call RunRakeConque()<CR>
nmap <silent> <Leader>c :execute 'ConqueTermSplit script/console'<CR>
nmap <silent> <Leader>i :execute 'ConqueTermSplit pry'<CR>
nmap <silent> <Leader>b :execute 'ConqueTermSplit /bin/bash --login'<CR>
nmap <silent> <Leader>S :call RunRspecCurrentFileConque()<CR>
@zph
zph / jdbc_activerecord_demo.rb
Created December 22, 2012 21:08
Demo of using JDBC with ActiveRecord for accessing legacy SQL Server 2005.
#!/usr/bin/env jruby
=begin
Implementation notes:
Setup SQL Auth User in SQLSERVER
Allow Mixed authentication
Disable Firewall on SQL port 1433 and 1434
Test connection on localhost
Download and extract sqljdbc4.jar
http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=21599
http://download.microsoft.com/download/D/6/A/D6A241AC-433E-4CD2-A1CE-50177E8428F0/1033/sqljdbc_3.0.1301.101_enu.tar.gz
# Episode 1 Shell Commands
whoami
uname -a
sudo apt-get install gedit
gedit
clear
sudo apt-get update
sudo apt-get upgrade
cd /media/
ls
# Episode 2 Shell Commands
sudo apt-get install curl
\curl -L https://get.rvm.io | bash -s stable --ruby
source /home/zph/.rvm/scripts/rvm
rvm requirements
sudo /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
sublime-text
# Install a sane Ruby Version Manager along with Recent Ruby
\curl -L https://get.rvm.io | bash -s stable --ruby
# Source the installed script to allow for using RVM this first time
# Future logins will automatically source RVM using your bashrc or zshrc
source ~/.rvm/scripts/rvm
# Clone Trello-Archiver
git clone https://github.com/zph/trello-archiver.git
# Move into folder
cd trello-archiver/
# Install needed Ruby Gem dependencies
@zph
zph / json_export.sh
Last active December 10, 2015 13:28
#!/usr/bin/env bash
# Script to export json data from Trello
# Written by ZPH <[email protected]>
# Credit for API call belongs to http://www.shesek.info/general/automatically-backup-trello-lists-cards-and-other-data
#
# Caveats:
# -API limits the number certain parameters returned.
# -JSON output may be truncated for large boards; further research needed.
#!/usr/bin/env ruby
require 'open-uri'
# Script to export json data from Trello
# Written by ZPH <[email protected]>
# Credit for API call belongs to http://www.shesek.info/general/automatically-backup-trello-lists-cards-and-other-data
#
# Caveats:
# -API limits the number certain parameters returned.
# -JSON output may be truncated for large boards; further research needed.
# CAVEATS
# on Linux - delete any lines referencing reattach-to-user-namespace
# on OSX - run `brew install reattach-to-user-namespace`
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind C-z send-prefix
bind-key C-a last-window
bind-key C-z last-window
unbind % # Remove default binding since we’re replacing
" plain annotations
map <silent> <F10> !xmpfilter -a<cr>
nmap <silent> <F10> V<F10>
imap <silent> <F10> <ESC><F10>a
" Test::Unit assertions; use -s to generate RSpec expectations instead
map <silent> <S-F10> !xmpfilter -u<cr>
nmap <silent> <S-F10> V<S-F10>
imap <silent> <S-F10> <ESC><S-F10>a