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
/** | |
* Created by jasonbyrne on 8/30/14. | |
*/ | |
window.JCB = window.JCB || {}; | |
JCB.Timing = (function(){ | |
// Self | |
var me = {}; | |
// Private Properties |
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
/** | |
* Created by jasonbyrne on 9/2/14. | |
*/ | |
var xYourHeart = (function(){ | |
// Self-reference | |
var xYourHeart = { | |
STATUS: { | |
PENDING: 0, | |
FAILURE: -1, |
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 HTTP_STATUS = { | |
'OK': 200, | |
'CREATED': 201, | |
'ACCEPTED': 202, | |
'NON_AUTHORITATIVE': 203, | |
'NO_CONTENT': 204, | |
'RESET': 205, | |
'PARTIAL_CONTENT': 206, | |
'MULTI_STATUS': 207, | |
'ALREADY_REPORTED': 208, |
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
/** | |
* Imperavi Redactor Plugin for Embedding Tweets | |
* for version >= 9.1 | |
* | |
* https://gist.github.com/jasonbyrne/6e96a907c781e90e0dbf | |
* | |
* @author Jason Byrne <[email protected]> | |
* @version 0.5.1 | |
* | |
* @forked https://gist.github.com/chekalskiy/7438084 |
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
/** | |
* Summernote PasteClean | |
* | |
* This is a plugin for Summernote (www.summernote.org) WYSIWYG editor. | |
* It will clean up the content your editors may paste in for unknown sources | |
* into your CMS. It strips Word special characters, style attributes, script | |
* tags, and other annoyances so that the content can be clean HTML with | |
* no unknown hitchhiking scripts or styles. | |
* | |
* @author Jason Byrne, FloSports <[email protected]> |
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
/** | |
* Summernote Fixed Toolbar | |
* | |
* This is a plugin for Summernote (www.summernote.org) WYSIWYG editor. | |
* It will keep the toolbar fixed to the top of the screen as you scroll. | |
* | |
* @author Jason Byrne, FloSports <[email protected]> | |
* | |
*/ |
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 q = (function() { | |
var me = this, | |
_callbacks = [], | |
_index = -1, | |
_nonePending = true; | |
me.then = function(callback) { | |
// Add this to the queue | |
_callbacks.push(callback); |
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
namespace JCB { | |
export enum SortStyle { | |
String, | |
Numeric, | |
CaseSensitiveString | |
} | |
export enum SortOrder { | |
ASC, |
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 | |
input_file=/var/log/openvpn/status.log | |
echo "" | |
echo "Reading $input_file" | |
echo "" | |
while read line; do | |
if [[ "$line" = *,* ]]; then | |
IFS=',' read -ra fields <<< "$line" #Convert string to array |
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 [[ ! $1 ]]; then | |
echo "No file provided" | |
exit | |
fi | |
if [ ! -f "$1" ]; then | |
echo "File does not exist" | |
echo "$1" | |
echo "" |
OlderNewer