I hereby claim:
- I am andreirailean on github.
- I am andreirailean (https://keybase.io/andreirailean) on keybase.
- I have a public key whose fingerprint is E471 C53A 5D75 ACFF F336 7B62 FC87 179E 15D8 5E90
To claim this, I am signing this object:
| # Checkout and track remote branch | |
| git checkout --track -b local_branch remote/remote_branch | |
| # Delete all merged local branches except for master | |
| git branch --merged master | grep -v master | xargs git branch -d | |
| # Delete all branches from origin remote except master | |
| git branch -a --merged remotes/origin/master | grep -v master | grep "remotes/origin/" | sed 's|remotes/origin/||' | xargs -n 1 git push --delete origin |
| module['exports'] = function echoHttp (hook) { | |
| hook.debug("Debug messages are sent to the debug console"); | |
| hook.debug(hook.params); | |
| hook.debug(hook.req.path); | |
| hook.debug(hook.req.method); | |
| [user] | |
| name = Andrei Railean | |
| email = [email protected] | |
| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| st = status | |
| s = status | |
| ci = commit | |
| c = commit |
| # Run this when your sequences get out of whack | |
| # Can happen after a botched database restore | |
| # Tested with postgres | |
| ActiveRecord::Base.connection.tables.each do |table| | |
| ActiveRecord::Base.connection.reset_pk_sequence!(table) | |
| end |
| newpg=9.4.0 | |
| oldpg=9.3.5_1 # set this to your current PG version | |
| # Stop current Postgres server | |
| # launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
| # Backup current db | |
| mv /usr/local/var/postgres/ /usr/local/var/postgres-$oldpg | |
| # Homebrew |
| # Delete all merged local branches except for master | |
| git branch --merged master | grep -v master | xargs git branch -d |
I hereby claim:
To claim this, I am signing this object:
| <div id="categories"> | |
| <div id="categories-wrapper"> | |
| <ul class="top"> | |
| {% for toplink in linklists.product-top-menu.links %} | |
| {% capture link_section %}{{ toplink.title | handleize }}{% endcapture %} | |
| <li class="category {% if forloop.first %}first{% endif %}"><a>{{ toplink.title }}</a> | |
| <ul class="items"> | |
| {% for link in linklists[link_section].links %} | |
| <li><a href="{{ link.url }}">{{ link.title }}</a></li> | |
| {% endfor %} |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'redis' | |
| # To use, simply start your Redis server and boot this | |
| # example app with: | |
| # ruby example_note_keeping_app.rb | |
| # | |
| # Point your browser to http://localhost:4567 and enjoy! | |
| # |