Skip to content

Instantly share code, notes, and snippets.

💭
Looking to relocate to the Seattle, WA area!

Brian J King brianjking

💭
Looking to relocate to the Seattle, WA area!
Block or report user

Report or block brianjking

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@brianjking
brianjking / Procfile
Created Aug 16, 2016 — forked from mabroor/Procfile
Hosting Private password protected Sphinx Docs
View Procfile
web: gunicorn -w4 -b0.0.0.0:$PORT app:app
@brianjking
brianjking / example-subtree-usage.md
Created Aug 9, 2016 — forked from kvnsmth/example-subtree-usage.md
A real world usage for git subtrees.
View example-subtree-usage.md

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add git@github.com:AFNetworking/AFNetworking.git Vendor/AFNetworking

or something to that effect.

@brianjking
brianjking / config.rb
Created Jul 28, 2016 — forked from egardner/config.rb
PDF Output for Middleman
View config.rb
# Only the relevant parts of config.rb are included here
require "extensions/pdf"
# ...
configure :build do
activate :pdf do |pdf|
pdf.print_template = "/catalogue/print-template.html"
end
end
@brianjking
brianjking / Git dot files management
Created Apr 13, 2016 — forked from lonetwin/Git dot files management
A simple way to manage dotfiles with git without silly symlinks and special tools. Just use negative matches in your .gitignore !
View Git dot files management
I like to manage dotfiles without having to mess with silly symlinks or having
to install/configure specific dotfile managament tools. So here's what I did:
$ cd ~
$ git init .
$ echo '*' > .gitignore # ignore all files by default
$ echo '!.bashrc' >> .gitignore # ...and then tell git what files not to *not* ignore
$ # ...add other files you may want to track to *not* ignore
$ git add .bashrc # now actually add the files to git
$ git add .gitignore # add the .gitignore to git
@brianjking
brianjking / .git-commit-template.txt
Created Mar 18, 2016 — forked from adeekshith/.git-commit-template.txt
Enforce good commit message practices across teams.
View .git-commit-template.txt
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@brianjking
brianjking / socialmenu.html
Last active Mar 16, 2016 — forked from neilgee/socialmenu.html
FontAwesome Social Media Menu
View socialmenu.html
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<style>
ul {
overflow: auto;
}
ul li {
list-style-type: none;
float: left;
}
@brianjking
brianjking / index.js
Created Mar 11, 2016 — forked from MoOx/index.js
Export/import github labels
View index.js
// go on you labels pages
// eg https://github.com/cssnext/cssnext/labels
// paste this script in your console
// copy the output and now you can import it using https://github.com/popomore/github-labels !
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
@brianjking
brianjking / speedtest-ifttt.sh
Created Mar 8, 2016 — forked from aallan/speedtest-ifttt.sh
Modified version of Henrik Bengtsson's speedtest-cli code which will dispatch the test results to the IFTTT Maker Channel.
View speedtest-ifttt.sh
#!/usr/bin/env bash
###########################################################################
# Originally written by: Henrik Bengtsson, 2014
# https://github.com/HenrikBengtsson/speedtest-cli-extras
# Modified to use IFTTT by: Alasdair Allan, 2015
# License: GPL (>= 2.1) [http://www.gnu.org/licenses/gpl.html]
###########################################################################
# Character for separating values
# (commas are not safe, because some servers return speeds with commas)
@brianjking
brianjking / statement-of-work.md
Created Feb 23, 2016
An example of my statement of work signed with clients as of April 29, 2015.
View statement-of-work.md

Statement of Work

Between us [the Maker] and you [Client]

SUMMARY:

You [Client], located at [address] are hiring us [The Maker] located at [The Maker's addy] to [create something unique and awesome] for the estimated total price of [$XX.XX].

What do both parties agree to do?

You: Possess the authority to enter into this contract on behalf of yourself, your company or your organization. You’ll give us everything we need to complete the project as and when and in the format we need it. You’ll review our work, provide feedback and approval in a timely manner too. Deadlines work two ways, so you’ll also be bound by dates we set together. You also agree to stick to the payment schedule set out at the end of this contract.

You can’t perform that action at this time.