- Branch from develop
- Commit as you go
- Merge develop into your branch
- Push branch, create PR
- When branch is ready to merge, merge the PR
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() { | |
'use strict' | |
var container = document.querySelector('.post-content') | |
var items = container.querySelectorAll('[data-collection-item]') | |
[].slice.call(items).forEach(function(item) { | |
// ... | |
}) |
,ad8888ba, 88
d8"' `"8b "" ,d
d8' 88
88 88 MM88MMM
88 88888 88 88
Y8, 88 88 88
Y8a. .a88 88 88,
`"Y88888P" 88 "Y888
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
REGISTRY=registry.yourdomain.com | |
# You may want/need to pull the latest images on a machine which has access to the registry | |
docker pull $REGISTRY/foo | |
docker pull $REGISTRY/bar | |
# You can save the images as tarballs and distribute them as you please | |
docker save --output=/home/user/images/foo.tar $REGISTRY/foo | |
docker save --output=/home/user/images/bar.tar $REGISTRY/bar |
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
=begin | |
This script will replay an Apache log file and verify whether each request | |
is cacheable by Akamai. | |
To run the script, provide the log file and your Akamai origin host name as | |
arguments, for example: | |
replayer.rb /var/log/apache/access.log http://dsd-www.example.com.edgesuite-staging.net | |
=end | |
require 'net/http' |
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
# This requires GNU sed (or any sed which supports -i) and expand | |
find . -type f -printf "sed -i 's/[ \t]*$//' %p && expand -t 4 %p > %p.tmp && mv %p.tmp %p\n" | sh | |
# It's better to be more specific about which files you want to run the replacement in, e.g. | |
find . -type f -name *.php -printf "sed -i 's/[ \t]*$//' %p && expand -t 4 %p > %p.tmp && mv %p.tmp %p\n" | sh | |
# You can use find's -regex option to match multiple extensions (you need to double-escape backslashes in bash): | |
find . -type f -regex .+\\\.\\\(php\\\|css\\\|js\\\)\$ -printf "sed -i 's/[ \t]*$//' %p && expand -t 4 %p > %p.tmp && mv %p.tmp %p\n" | sh |
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
#!/bin/bash | |
PIDFILE=".watch.pid" | |
touch $PIDFILE || (echo "Unable to write to .watch.pid" && exit 1) | |
# Kill off old processes | |
while read pid; do | |
kill $pid | |
done < $PIDFILE |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://gist.githubusercontent.com/wildlyinaccurate/5539084/raw/hack.sh | sh | |
# |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+d"], "command": "duplicate_line" }, | |
{ "keys": ["ctrl+shift+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys" : ["ctrl+shift+down"], "command" : "swap_line_down"}, | |
{ "keys" : ["ctrl+shift+up"], "command" : "swap_line_up"}, | |
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" }, | |
{ "keys": ["ctrl+s"], "command": "save_all" }, | |
{ "keys": ["ctrl+shift+w"], "command": "close_all" } | |
] |
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
All Autocomplete | |
CoffeeScript | |
DocBlockr | |
Markdown Preview | |
Package Control | |
Sass | |
SideBarEnhancements | |
SublimeCodeIntel | |
SublimeLinter | |
SyncedSideBar |
OlderNewer