Skip to content

Instantly share code, notes, and snippets.

View rcrowe's full-sized avatar
🎯
Focusing

Rob Crowe rcrowe

🎯
Focusing
View GitHub Profile
@rcrowe
rcrowe / run.sh
Created August 29, 2018 10:43
Dump a copy of all databases in CockroachDB
#!/bin/bash
set -e
# ---------
# Variables
# ---------
dbHost=$COCKROACH_HOST
if [[ -z $dbHost ]]; then
@rcrowe
rcrowe / main.go
Created August 24, 2018 20:24
stripe ids
package main
import (
"fmt"
"strings"
)
func main() {
// p := Parse("card_1D2lGH2eZvKYlo2CBRpBjjh1")
p := Parse("sk_test_4eC39HqLyjWDarjtT1zdp7dc")
@rcrowe
rcrowe / header.twig
Created August 14, 2014 09:33
Cascading with View::composer
<h1>Super App</h1>
Hi {{ user.name }}
<?php
include_once __DIR__.'/../include/mtier/inc/include.php';
@rcrowe
rcrowe / command
Last active December 30, 2015 12:49
Ansible unable to install apt packages
ansible-playbook -i provisioning/ansible_hosts provisioning/playbook.yml --sudo -vvvv
@rcrowe
rcrowe / gist:7804448
Created December 5, 2013 12:31
Unable to install eventmachine / mailcatcher.
[vagrant@vagrant-centos65 ~]$ sudo ~/.rbenv/shims/gem install mailcatcher
Building native extensions. This could take a while...
ERROR: Error installing mailcatcher:
ERROR: Failed to build gem native extension.
/home/vagrant/.rbenv/versions/2.0.0-p353/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes