Skip to content

Instantly share code, notes, and snippets.

View bob2314's full-sized avatar
:octocat:
Code...

Bob bob2314

:octocat:
Code...
View GitHub Profile
@bob2314
bob2314 / branch-fu.md
Created October 21, 2016 02:12 — forked from unbracketed/branch-fu.md
Moving commits between branches

Example: Moving up to a few commits to another branch

Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.

cherry-pick does support a range of commits, but if you have merge commits in that range, it gets really complicated

git checkout branch-B
git cherry-pick X
git cherry-pick Y
@bob2314
bob2314 / README.md
Created October 17, 2016 05:56 — forked from lancehudson/README.md
Loopback.io autoexpose soap services

How to

  • Add a datasource for each soap service
  • Install debug and async npm install --save async debug
  • Add boot script
  • Modify main server script to use call back
@bob2314
bob2314 / temporary-email-address-domains
Created October 16, 2016 07:17 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@bob2314
bob2314 / is_installed.sh
Created September 8, 2016 18:39 — forked from JamieMason/is_installed.sh
Check if a program exists from a bash script. Thanks to twitter.com/joshnesbitt and twitter.com/mheap for the help with detecting npm packages.
#!/bin/bash
# Functions ==============================================
# return 1 if global command line program installed, else 0
# example
# echo "node: $(program_is_installed node)"
function program_is_installed {
# set to 1 initially
local return_=1
@bob2314
bob2314 / Vagrantfile
Created February 18, 2016 02:02 — forked from nicholasding/Vagrantfile
Vagrant: ElasticSearch + MongoDB
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@bob2314
bob2314 / osx-homebrew-setup.md
Created October 1, 2015 17:15 — forked from sr75/osx-homebrew-setup.md
Mac Yosemite OSX - Homebrew (RVM/MySQL/Redis) setup

Mac Homebrew (RVM/MySQL/Redis) setup

Follow the steps below to setup a local development environment:

XQuartz

Recommended to download latest XQuartz

iTerm2

@bob2314
bob2314 / gist:7143625
Created October 24, 2013 19:38
AI Redesign VHost config
<VirtualHost *:80>
ServerName redesign.americanidol.com
DocumentRoot /Users/RBrennan/fox/fox-idol-redesign/idol/americanidol
SetEnv APPLICATION_ENV "development"
<Directory /Users/RBrennan/fox/fox-idol-redesign/idol/americanidol>
Options All
AllowOverride All
Order Allow,Deny
Allow from all
DirectoryIndex index.htm index.html index.php