Skip to content

Instantly share code, notes, and snippets.

View billie66's full-sized avatar
🏠
Working from home

Billie Zhang billie66

🏠
Working from home
View GitHub Profile
# encoding: UTF-8
# happycasts database
namespace :db do
desc "get episods' info from the table episods"
task :episodes => :environment do
posts = []
Episode.all.each do |e|
post = {}
post['id'] = e.id
@billie66
billie66 / tmux-cheatsheet.markdown
Created September 13, 2016 03:37 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@billie66
billie66 / bongo.sh
Created November 22, 2016 14:28 — forked from nhoening/bongo.sh
Allowing to pass a query for exporting specific data. Added a LIMIT option to limit the number of returned results. Added a debug switch to see errors.
#!/bin/bash
LOADING=false
DEBUG=/dev/null
usage()
{
cat << EOF
usage: $0 [options] <DBNAME>
Verifying my Blockstack ID is secured with the address 1A27dCp2zWG6SAoQpQRWbXUHSZeVa1C7XZ https://explorer.blockstack.org/address/1A27dCp2zWG6SAoQpQRWbXUHSZeVa1C7XZ