Skip to content

Instantly share code, notes, and snippets.

View tregoning's full-sized avatar

John Tregoning tregoning

View GitHub Profile
#####################################################################################################################################
# Irssi template
# By: John Tregoning
# Note: Nothing fancy, just changed a few things I didn't that I didn't like from the default theme.
#
# **Initial Setup Tips:**
#
# /NETWORK ADD -nick tregoning -realname "John Tregoning" -autosendcmd "/^msg NickServ identify MY-PASSWORD-GOES-HERE;" Freenode
#
# /SERVER ADD -auto -network Freenode irc.freenode.net 6667
(function() {
var loadScript = function(url){
var script = document.createElement('script');
script.src = url;
script.type = 'text/javascript';
document.getElementsByTagName("HEAD")[0].appendChild(script);
};
#Initial setup
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
yum -y update
yum -y install git-core
#Install Java Compiler
cd /tmp
echo "" | wget -O jdk-6u22-linux-x64.bin http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u22-linux-x64.bin?BundledLineItemUUID=XW6J_hCvhl0AAAEr0jwpG98G&OrderID=1HeJ_hCvMU4AAAErxzwpG98G&ProductID=w9aJ_hCw9PAAAAErNFJuIQy3&FileName=/jdk-6u22-linux-x64.bin
echo "" | /bin/sh jdk-6u22-linux-x64.bin
mv jdk1.6.0_22/ /opt
@tregoning
tregoning / js-validation-git-pre-commit-hook.sh
Created August 20, 2012 06:20
Git pre-commit hook script that checks Javascript files against jshint
#!/bin/bash -
###############################################################################
# File: js-validation-git-pre-commit-hook.sh
#
# Description: Git pre-commit that checks your code for js errors before you commit it
#
# Prerequisites: jshint to install run: "npm install jshint -g"
#
# Instructions: Place this file in your project's .git/hooks renamed to "pre-commit"
# run: "chmod +x .git/hooks/pre-commit"
@tregoning
tregoning / .jshintrc
Created August 20, 2012 06:40
Config file for jshint
{
"predef": [
"_"
],
"bitwise" : true,
"camelcase" : true,
"curly": true,
"eqeqeq": true,
"forin": true,
@tregoning
tregoning / updateUbuntu.sh
Created August 22, 2012 04:14
Update Ubuntu
#!/bin/bash -
###############################################################################
#
# About: Updates the crap out of an Ubuntu installation
#
###############################################################################
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
@tregoning
tregoning / facebookExpand.js
Created October 15, 2012 22:03
Expand all comments on a Facebook page
(function(){
'use strict';
var digCounter = 0,
numberOfDigTries = 3,
bodyHeight = window.getComputedStyle(document.body).height;
var scroll = function(){
window.scrollBy(0, 10000);
@tregoning
tregoning / stealconfig.js
Created August 1, 2013 06:15
stealconfig.js needed for standalone version of funcunit
steal.config({
map: {
"*": {
"jquery/jquery.js" : "jquery"
}
},
paths: {
"jquery": "jquery-1.10.2.min.js",
},
shim : {
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
@tregoning
tregoning / highstock.src.js
Created July 1, 2016 06:40
Highstock v4.2.5 release (with patch applied for symmetricalLog)
This file has been truncated, but you can view the full file.
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v4.2.5 (2016-05-06)
*
* (c) 2009-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/