Skip to content

Instantly share code, notes, and snippets.

View bevanhunt's full-sized avatar
:octocat:
Working

Bevan Hunt bevanhunt

:octocat:
Working
View GitHub Profile
#!/bin/sh
echo "how many seconds?"
read seconds
while [ $seconds -gt 0 ]
do
curl localhost:8080/broadcast/$seconds
seconds=`expr $seconds - 1`
done
FROM alpine:3.4
RUN apk update && apk add \
python \
make \
g++ \
bash \
libgcc \
gcc \
nodejs=6.2.0-r0
@bevanhunt
bevanhunt / index.html
Last active September 10, 2015 00:26
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Punub</title>
</head>
<body>
<script src="https://cdn.pubnub.com/pubnub-3.7.14.min.js"></script>
[alias]
# Not Mine
branch-name = !git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \\(.*\\)/\\1/'
export-branch = !git format-patch --stdout $1 > ~/Desktop/`git branch-name`.diff
s = status -s
d = diff
ds = diff --stat
dc = diff --cached
# Logging
@bevanhunt
bevanhunt / yosemite_zsh
Last active August 29, 2015 14:08
Updating to Yosemite - steps I took to get my macbook to get ruby/rvm/zsh working
1. DL and install yosemite
2. Make sure the latest Xcode is installed
3. make sure that your /etc/paths are (sudo to edit):
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
4. Delete other path settings in your .zshrc file (not for rvm)
@bevanhunt
bevanhunt / hubflow_workflow
Last active October 6, 2023 15:00
Hubflow Workflow
Git Hubflow Workflow:
Sync Branch:
git hf update - this will update master and develop and sync remote branches with local ones (be sure not to put commits into develop or master as it will push these up)
git hf push - this will push your commits in your local branch to the matching remote branch
git hf pull - this will pull the remote commits into your local branch (don't use if the remote branch has been rebased - use git pull origin "your-branch" instead)
Feature Branch:
gif hf feature start "my-feature" - this will create a feature branch on origin and local will be based off the latest develop branch (make sure to git hf update before or you will get an error if local develop and remote develop have divereged)
git hf feature finish "my-feature" - this will delete the local and remote branches (only do this after a PR has been merged)
(function() {
var BatApp,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
BatApp = (function(_super) {
__extends(BatApp, _super);
function BatApp() {
@bevanhunt
bevanhunt / polyglot2012rails.markdown
Created May 28, 2012 10:40
Rails Session at Vancouver Polyglot 2012 Recap

The Rails Session at Polyglot was group Q&A:

Q: What are the most popular and hot testing tools?
A:

Q: What about background processes?