This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Quick wrapper for undocumented and unsupported MyMileMarker.com API | |
require 'rubygems' | |
gem 'httparty', '>= 0.3.1' | |
require 'httparty' | |
module MyMileMarker | |
class Client | |
include HTTParty | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(amplify) { | |
var selected_color = '#9E9E9E'; | |
var unselected_color = '#E9E9E9'; | |
var schedule_data = amplify.store('mySchedule'); | |
if (schedule_data == null) { | |
schedule_data = {}; | |
} | |
//console.log(schedule_data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Usage: | |
./rtail.py user@host:path/foo.log bar.log host2:/path/baz.log | |
""" | |
import optparse | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var highlighting_chosen_sessions = false; | |
var hidden = false; | |
function highlight_chosen_sessions() { | |
// look for all hightlighted icons and update the session div to have a border | |
$('img[src="/images/personal-schedule-icon2.png"]').each(function(index, icon) { | |
$(icon) | |
.closest('.session') | |
.not('.highlighted') | |
.addClass('highlighted') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Salt master | |
################################### | |
# LSB header | |
### BEGIN INIT INFO | |
# Provides: salt-master | |
# Required-Start: $remote_fs $network |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install rvm | |
aptitude install -y curl libz-dev | |
curl -L https://get.rvm.io | bash -s stable --ruby | |
source /usr/local/rvm/scripts/rvm | |
gem install fpm | |
# git clone | |
aptitude install -y git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# change to whatever box you want | |
config.vm.box = "ubuntu1204" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env planck | |
(ns dedupe.core | |
(:require [planck.io :refer [read-line]] | |
[clojure.string :refer [split]])) | |
(defn line-seq | |
"Create a lazy sequence of stdin, from http://blog.fikesfarm.com/posts/2015-08-01-planck-scripting.html." | |
[] | |
(take-while identity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cdb | |
import scala.concurrent.duration._ | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import io.gatling.jdbc.Predef._ | |
class BasicSimulation extends Simulation { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
LABEL FOO=Bar |
OlderNewer