Skip to content

Instantly share code, notes, and snippets.

View LongLiveCHIEF's full-sized avatar

Brian Vanderbusch LongLiveCHIEF

View GitHub Profile
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@LongLiveCHIEF
LongLiveCHIEF / DOCKERFILE
Last active October 17, 2017 02:33
Rock, Paper, Scissors (Lizard, Spock, Enterprise, Klingon) for Node.js
FROM node:latest
RUN mkdir /rps
COPY rps.js /rps/rps.js
ENTRYPOINT ["node", "/rps/rps.js"]
@LongLiveCHIEF
LongLiveCHIEF / README.md
Created April 22, 2016 22:21
RxServer.io

RxServer.io

A Reactive, real-tim, asynchronously composable socket.io and http server

I wanted a server that:

  • did not require you to compose or configure before startup
  • allows the addition and removal of server configurations/extensions after startup, without requiring a restart
  • allows modularization and isolation of server components, such that application design is up to the developer
{
"description": "This is my Vagrant box, it's an example of what you can do with a custom Vagrant Cloud.",
"short_description": "This is my Vagrant box.",
"name": "myorg/mybox",
"versions": [
{
"version": "1.0.0",
"status": "active",
"description_html": null,
"description_markdown": "",
@LongLiveCHIEF
LongLiveCHIEF / against.md
Last active January 3, 2016 03:31
For and Against Ember.js

Against Ember.js

"It's not developed by "

There's this weird notion that something developed by some big company is bad mojo. True... Microsoft, Oracle, and IBM burried us all in technical debt in the first decade of the new millenium, but we've come a long way since then, (or at least Microsoft and IBM have). Many proponents of Ember enthusiastically tout the fact that it's maintained by a community of folks who build with Ember by day, and build and maintain Ember by night.

Think about that for a moment though... I'm sure many of you have pulled consecutive 60+ hour weeks on a project, and have felt what it's

@LongLiveCHIEF
LongLiveCHIEF / Cannonball.md
Last active August 1, 2020 16:25
Halo 5 - Cannonball

Cannonball

Link to /r/forge post

Cannonball is a Halo 5 custom game variant, meant to be played by 3 players or 3 teams, with one team being on Offense, and the other two teams competing on defense. One player/team onoffense spawns as the "Cannonballer". The Cannonballer's objective is to use a maze-like network of High-Powered Bumpers and a T-Rails, as well as augmented thrusters and ground-pound abilities, to shoot themselves through a scoring ring on the opposite side of the map, before fire from the defensive "Anti-Cannonball" towers shoot them down. Defensive players, placed in the opposing AC towers will have access to a full armory of weapons, with infinite ammo and a 180*360 degree view of the battlefield.

A custom network of Bumpers*, T-Rails*, and Launchers will turn the offensive player into a high-speed projectile, who is essentially acting as a very smart clay-pigeon that the defensive player

@LongLiveCHIEF
LongLiveCHIEF / Converting libraries to Ember CLI addons.md
Created December 4, 2015 20:00 — forked from kristianmandrup/Converting libraries to Ember CLI addons.md
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@LongLiveCHIEF
LongLiveCHIEF / .tmux.conf
Last active August 29, 2015 14:23
Shell Setup
source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-shell /bin/zsh
set-option -g default-terminal "xterm"
set-window-option -g mode-keys vi
set-option -g mouse-select-window on
set-option -g allow-rename off
set-window-option -g mode-mouse on
bind h select-pane -L
bind j select-pane -D
@LongLiveCHIEF
LongLiveCHIEF / Description.md
Last active August 29, 2015 14:19
npm-contractor

NPM Contractor

A chef/puppet like tool that allows you to use npm scripts as your build tool, even with complicated tasks, by creating "contracts". After creating these contracts, they can be published to npm using the npm-contract- to be automatically parsed and utilized by npm install

(I intend to fork npm, and add support for a "contracts" object in package.json, but this should work even if it's not added to the npm tool itself")

Benefits

  • get the benefits of "configuration" (ala Grunt), with the native javascript composability of gulp
  • uses native OS streaming/piping, stdout/stdin/stderr
/** @jsx React.DOM */
var RenderedDeck = React.createClass({
render: function() {
return <div id={this.props.id} className="deck" dangerouslySetInnerHTML={{__html:this.props.contents}}></div>;
}
});
var Deck = React.createClass({
render: function() {