This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function debug_string_backtrace() { | |
$output = ''; | |
$backtrace = debug_backtrace(); | |
foreach($backtrace as $key => $item) { | |
$output .= "\r\n item $key ".$item['file']." [".$item['line']."] ".$item['function']; | |
} | |
return $output; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class BMTNContext { | |
const COOKIE_NAME = 'bmtn_context'; | |
private function __construct() | |
{ | |
return FALSE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Valid Cards | |
4242424242424242 Visa | |
4012888888881881 Visa | |
5555555555554444 MasterCard | |
5105105105105100 MasterCard | |
378282246310005 American Express | |
371449635398431 American Express | |
6011111111111117 Discover | |
6011000990139424 Discover | |
30569309025904 Diner's Club |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Adam Lutz | |
email = nerp | |
[core] | |
excludesfile = /Users/alutz/.gitignore | |
[heroku] | |
[push] | |
default = simple | |
[heroku] | |
account = gokart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# delete all remote origin branches that have been merged into master | |
git b -r --merged master | grep -v master | sed 's/origin\//:/' | xargs -n 1 git push origin | |
# delete all local branches merged into master | |
git branch --merged master | grep -v master | xargs git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install pg -v '0.18.4' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import models, migrations | |
class Migration(migrations.Migration): | |
dependencies = [ | |
('communication', '0008_merge'), | |
('auth', '0001_initial'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clone Scotch Box git@github.com:scotch-io/scotch-box.git | |
Clone project into public | |
ssh into server install | |
sudo apt-get install libpq-dev | |
go into psql | |
sudo -u postgres psql | |
create vagrant user | |
CREATE USER vagrant WITH SUPERUSER; | |
bind rails server to scotchbox ip | |
rails server -b 192.168.33.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'octokit' | |
require 'csv' | |
require 'date' | |
# Github credentials to access your private project | |
USERNAME="name" | |
PASSWORD="sekret" | |
# Project you want to export issues from | |
USER="gokart" | |
PROJECT="mayo-rx" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set PATH $HOME/.rbenv/shims $PATH | |
rbenv rehash >/dev/null ^&1 | |
status --is-interactive; and source (rbenv init -|psub) | |
set -x PATH /usr/local/bin $PATH | |
set -x PATH /usr/local/sbin $PATH | |
set -x PATH ~/bin $PATH | |
set -x PATH /Applications/Postgres.app/Contents/Versions/latest/bin $PATH | |
OlderNewer