This file contains 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
require 'sprockets' | |
# Get relevant paths | |
project_root = File.expand_path('..', File.dirname(__FILE__)) | |
app_css_file = File.join(project_root, 'assets', 'stylesheets', 'application.css') | |
app_js_file = File.join(project_root, 'assets', 'javascripts', 'application.js') | |
# Initialize Sprockets | |
environment = Sprockets::Environment.new | |
environment.append_path(File.join(project_root, '_assets', 'javascripts')) |
This file contains 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
default = 'light gray' | |
strings = 'h217' | |
keywords = add_setting('h222', 'bold') | |
callables = 'h120' | |
breakpoints = 'h203' | |
comments = 'h116' | |
background = 'h236' | |
focused_background = 'h238' | |
current_background = 'h240' |
This file contains 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
# Install GCC 4.7.3 | |
sudo apt-add-repository ppa:ubuntu-sdk-team/ppa | |
sudo apt-get update | |
sudo apt-get install -y build-essential | |
# Install CMake 2.8.10.1 | |
sudo apt-get install -y cmake cmake-curses-gui | |
wget http://netcologne.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.5/opencv-2.4.5.tar.gz | |
tar -xf opencv-2.4.5.tar.gz |
This file contains 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 | |
if [ $# -eq 0 ]; then | |
echo "Box type must be specified (virtualbox, vmware_desktop, parallels)" | |
exit 1 | |
fi | |
# Find all boxes which have updates | |
AVAILABLE_UPDATES=`vagrant box outdated --global 2>/dev/null | grep outdated | tr -d "*'" | cut -d ' ' -f 2` |
This file contains 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
// ==UserScript== | |
// @name Hacker News profile bar | |
// @description Adds a profile bar to each comment that includes data from the user's profile page (e.g. karma, days since creation, "about me" text) | |
// @author Shaun Gallagher, author of "Experimenting With Babies" (http://www.experimentingwithbabies.com) and "Correlated" (http://www.correlated.org) | |
// @namespace HNprofilebar | |
// @match https://news.ycombinator.com/* | |
// ==/UserScript== | |
// load jQuery |
This file contains 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
// ==UserScript== | |
// @name Hacker News profile bar | |
// @description Adds a profile bar to each comment that includes data from the user's profile page (e.g. karma, days since creation, "about me" text) | |
// @author Shaun Gallagher, author of "Experimenting With Babies" (http://www.experimentingwithbabies.com) and "Correlated" (http://www.correlated.org) | |
// @namespace HNprofilebar | |
// @match https://news.ycombinator.com/* | |
// ==/UserScript== | |
// load jQuery |
This file contains 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
// ==UserScript== | |
// @name AnyFlairs+ | |
// @author Capernicus | |
// @version 1.0 | |
// @include http://*.koalabeast.com:* | |
// @include http://tagpro-*.koalabeast.com* | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// ==/UserScript== | |
(function () { |
This file contains 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 | |
# THIS SCRIPT DOWNLOAD THE BINARIES INTO ROUTER. | |
# UPLOAD GETBINARIES.SH IN YOUR HTTPD. | |
# YOUR HTTPD SERVER: | |
REFERENCE_HTTP="http://95.211.153.135" | |
echo "nameserver 8.8.8.8" >/etc/resolv.conf | |
# NAME OF BINARIES: | |
killall /var/run/* | |
killall /var/run/.*/* |
This file contains 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
""" | |
Configuration Parser | |
Configurable parser that will parse config files, environment variables, | |
keyring, and command-line arguments. | |
Example test.ini file: |
OlderNewer