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
var v = [], | |
opts = ha31lib.ge('survey').getElementsByTagName('input'), | |
i; | |
for (i=0;i<opts.length;i++) { | |
var opt = opts[i]; | |
if (opt.name == 'illbe') { | |
if (opt.checked) { | |
v.push(opt.id); | |
} | |
} |
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
############################################################# | |
# Log memory and CPU usage | |
############################################################# | |
*/5 * * * * /usr/local/bin/log_memory_usage.sh > /dev/null | |
*/5 * * * * /usr/local/bin/log_cpu_usage.sh > /dev/null |
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
SELECT LPAD(CAST(ENVISION.CUSTOMER.custnum AS INTEGER),7,'0'), | |
ENVISION.BOARDPLAN.boardplan | |
FROM ENVISION.BOARDPLAN | |
LEFT OUTER JOIN ENVISION.CUSTOMERBOARD ON ENVISION.CUSTOMERBOARD.boardplan_id=ENVISION.BOARDPLAN.boardplan_id | |
LEFT OUTER JOIN ENVISION.CUSTOMER ON ENVISION.CUSTOMER.CUST_ID=ENVISION.CUSTOMERBOARD.CUST_ID | |
WHERE CAST(ENVISION.CUSTOMER.custnum AS INTEGER) > 0 | |
AND ENVISION.BOARDPLAN.boardplan IS NOT NULL | |
ORDER BY CAST(ENVISION.CUSTOMER.custnum AS INTEGER) |
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
/* | |
Student Planning goes down randomly and we have to recycle the app pool to fix it. | |
This script will try to login to Student Planning and make an AJAX request. It will | |
return text output (console.log() output) about whether it is working or not. | |
NOTE: this script relies on PhatomJS, which you can download here: | |
http://phantomjs.org/download.html | |
NOTE: change the values of the host, user, and pass variables. Optionally change the timeout variable. | |
*/ |
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
<html> | |
<head> | |
<title>Ellucian API Tester</title> | |
<style> | |
body { | |
margin: 10px; | |
font-family: Calibri,Helvetica,Arial,sans-serif; | |
font-style:normal; | |
} | |
.flexbox-container { |
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
CoffeeScript | |
ColdFusion | |
Cucumber | |
HTML-CSS-JS Prettify | |
Javascript Beautify | |
JSONLint | |
Package Control | |
PowerShell | |
Pretty JSON | |
RocketUniData |
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
#!/usr/bin/env ruby | |
# coding: utf-8 | |
require 'rubygems' | |
require "mp3info" | |
dir = File.expand_path(File.dirname(__FILE__)) | |
Dir["#{dir}/*mp3"].each do |filename| | |
Mp3Info.open(filename) do |mp3| | |
disk_num = mp3.tag2["disc_number"] |
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 | |
export ORACLE_HOME=/usr/lib/oracle/11.1/client | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib | |
export PATH=$PATH:$ORACLE_HOME/bin | |
exec "/usr/bin/ruby" "$@" |
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
# config/initializers/mongrel.rb | |
# This will make Mongrel the default server in development | |
module Rack | |
module Handler | |
def self.default(options = {}) | |
# Guess. | |
if ENV.include?("PHP_FCGI_CHILDREN") | |
# We already speak FastCGI | |
options.delete :File | |
options.delete :Port |