Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| #!/bin/bash | |
| # This way you can customize which branches should be skipped when | |
| # prepending commit message. | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master develop test) | |
| fi | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" |
| #!/usr/bin/env python | |
| # I wasn't happy with any of the GitHub libraries for Python that I tried so I | |
| # just used the GitHub API directly. If someone would like to rewrite this | |
| # using a library please be my guest | |
| from __future__ import unicode_literals | |
| import argparse | |
| import base64 |
| // NOTE: I previously suggested doing this through Grunt, but had plenty of problems with | |
| // my set up. Grunt did some weird things with scope, and I ended up using nodemon. This | |
| // setup is now using Gulp. It works exactly how I expect it to and is WAY more concise. | |
| var gulp = require('gulp'), | |
| spawn = require('child_process').spawn, | |
| node; | |
| /** | |
| * $ gulp server | |
| * description: launch the server. If there's a server already running, kill it. |
| <!-- jQuery, delete this line if you already have jQuery on your page --> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
| <!-- the twitch widget, place code in the <HEAD> --> | |
| <script> | |
| var twitchUserName = 'timetocode' // your name goes here | |
| $(document).ready(function() { | |
| $.getJSON("https://api.twitch.tv/kraken/streams/"+twitchUserName+"?callback=?",function(streamData) { | |
| console.log('Stream Data:', streamData) // debug message, shows all available data | |
| if(streamData && streamData.stream) { |
| // Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
| $ git ls-files | xargs wc -l |
;(function(){
const authToken = JSON.parse(localStorage.token);
const channel = window.location.href.split('/').pop();
const baseURL = `https://discordapp.com/api/channels/${channel}/messages`;
const headers = {"Authorization": authToken };
let clock = 0;
let interval = 500;| <?php | |
| class StatusCodeHelper | |
| { | |
| const ERROR_CODES = [ | |
| 100 => 'Continue', | |
| 101 => 'Switching Protocols', | |
| 102 => 'Processing', | |
| 200 => 'OK', | |
| 201 => 'Created', |