Skip to content

Instantly share code, notes, and snippets.

View brianjking's full-sized avatar
💭
Doin' cool stuff at BrandMuscle AI

Brian J King brianjking

💭
Doin' cool stuff at BrandMuscle AI
View GitHub Profile
@brianjking
brianjking / Procfile
Created August 16, 2016 02:23 — forked from mabroor/Procfile
Hosting Private password protected Sphinx Docs
web: gunicorn -w4 -b0.0.0.0:$PORT app:app
@brianjking
brianjking / example-subtree-usage.md
Created August 9, 2016 19:03 — forked from kvnsmth/example-subtree-usage.md
A real world usage for git subtrees.

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 July 28, 2016 18:49 — forked from egardner/config.rb
PDF Output for Middleman
# 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 April 13, 2016 12:45 — 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 !
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 March 18, 2016 17:05 — forked from adeekshith/.git-commit-template.txt
Enforce good commit message practices across teams.
# <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 March 16, 2016 16:17 — forked from neilgee/socialmenu.html
FontAwesome Social Media Menu
<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 March 11, 2016 17:32 — forked from MoOx/index.js
Export/import github labels
// 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 March 8, 2016 22:37 — 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.
#!/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 February 23, 2016 22:11
An example of my statement of work signed with clients as of April 29, 2015.

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.