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 | |
# Nagios Plugin Bash Script - exercise_1.sh | |
# This script checks a json endpoint url | |
# | |
# --url is the only required parameter. | |
# | |
# Examples: | |
# Will return error code: | |
# ./check_queue_status_json.sh --url http://mockbin.org/bin/9b11175a-da3e-4bb1-8d3f-510f97cf6dc5/ | |
# Will return WARNING |
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 [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
exit 1 | |
fi | |
# SETUP OPTIONS | |
export SRCDIR="$1" | |
export DESTDIR="$2" | |
export THREADS="4" |
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 | |
# CentOS box for Vagrantfile: | |
# http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box | |
# | |
# NOT AS ROOT | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install libyaml-devel |
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
[email protected] | |
# +------------------------- Minute of the Hour ( 0 - 59, * to run every minute ) | |
# | +---------------------- Hour of the Day ( 0 - 23, * to run every hour ) | |
# | | +------------------- Day of the Month ( 1 - 31, * to run every day ) | |
# | | | +---------------- Month ( 1 - 12, * to run every month ) | |
# | | | | +------------- Day of Week ( 0 - 7, Sunday is both 0 and 7, * to run every day ) | |
# | | | | | +---------- User to run command as ( Defaults to the user that set up this crontab, Beware permissions! ) | |
# | | | | | | +---- Command to Execute ( | |
# | | | | | | | |
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
(function( $ ) { | |
$.fn.tooltip = function() { | |
/* CONFIG */ | |
xOffset = 10; | |
yOffset = 20; | |
// these 2 variable determine popup's distance from the cursor | |
// you might want to adjust to get the right result | |
/* END CONFIG */ | |
$(this).hover( function(e){ | |
this.t = this.title; |
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
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Generic CodeIgniter Database Model - One table version | |
* | |
* Set your Database table and table fields at the top, | |
* and screw creating models for interfacing with one table. | |
* | |
* Disclaimer: I'll answer questions or whatever, but I'm creating | |
* this to speed my own development up. I hope it helps, but it's not supported. |