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
[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
# -*- 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
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
install meteor | |
deploy app to meteor cloud | |
$ meteor build ~/Meteor/ \ | |
--server=lutz.meteor.com | |
install android studio: http://developer.android.com/sdk/installing/index.html?pkg=studio | |
start new project + create AVD from API 22. | |
$ brew install android-platform-tools | |
$ meteor add-platform android |
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
{ | |
"ensure_newline_at_eof_on_save": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"trim_trailing_white_space_on_save": true, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
} |
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
gem install pg -v '0.18.4' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config |
OlderNewer