- $ brew install git-flow
- $ brew uninstall git
- $ brew install git --without-completions
- enable git-flow in oh my zsh plugin
- restart zsh
- $ git flow init
- $ git flow feature start myFeature
- $ git commit -a
- $ git commit -a
- $ git flow feature finish myFeature
This file contains hidden or 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
| javascript:var%20s=document.createElement('script');s.setAttribute('src',%20'http://code.jquery.com/jquery.js');document.getElementsByTagName('body')[0].appendChild(s);void(s);$("img").attr("src", "http://lh4.googleusercontent.com/-RmrZDM1BSbk/U2bwuAKC6VI/AAAAAAAAD_I/PgK91Uc24xM/w456-h335-no/20140502_202731_852.jpg"); |
-
Postgresql not running
-
pow not running
This file contains hidden or 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
| module ConstantHelper | |
| def redefine_constant(namespace, const_name, new_value) | |
| namespace.send(:remove_const, const_name) if namespace.const_defined?(const_name) | |
| namespace.const_set(const_name, new_value) | |
| end | |
| end |
This file contains hidden or 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
| class Changelog | |
| # Put your available versions in the array, in reverse release order, e.g. %w(1.1 1.0 0.9.9999999) | |
| VERSIONS = %w().freeze | |
| class << self | |
| # e.g. Changelog.after('1.0') | |
| def after(version) | |
| changes = Changelog.new | |
| if index = VERSIONS.index(version) | |
| VERSIONS[0...index].collect {|v| changes[v] }.flatten |
This file contains hidden or 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
| diff --git a/produce.rb b/produce.rb | |
| index 9c531f3..ad34718 100644 | |
| --- a/produce.rb | |
| +++ b/produce.rb | |
| @@ -31,10 +31,11 @@ ActiveRecord::Schema.define do | |
| create_table :post_tags, force: true do |t| | |
| t.integer :post_id | |
| t.integer :tag_id | |
| + t.datetime :created_at | |
| end |
This file contains hidden or 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
| #!/bin/sh | |
| EMAIL= # Your Email | |
| ZONEID= # Your zone id, hex16 string | |
| RECORDID= # You DNS record ID, hex16 string | |
| RECORDNAME= # Your DNS record name, e.g. sub.example.com | |
| API= # Cloudflare API Key | |
| IP=${1} | |
| curl -fs -o /dev/null -XPUT "https://api.cloudflare.com/client/v4/zones/$ZONEID/dns_records/$RECORDID" \ |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Dependencies: | |
| # - inotify-tools | |
| MY_PIDFILE=tmp/pids/my.pid | |
| PUMA_PIDFILE=tmp/pids/puma.pid | |
| case $1 in | |
| "start") |
This file contains hidden or 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
| { | |
| "import_token": "4hSPTrQia5GqfmKm442Rzy7c", | |
| "data": [ | |
| { | |
| "sku": "P300-1", | |
| "name": "T-Shirt", | |
| "category": "Fashion", | |
| "price": 399, | |
| "stock": 24 | |
| }, |
This file contains hidden or 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
| FROM ensogo/passenger-ruby23:0.9.18 | |
| MAINTAINER developers@ensogo.com | |
| ENV HOME /root | |
| CMD ["/sbin/my_init"] | |
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| RUN apt-get update | |
| # Upgrade Passenger |