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
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk/jre | |
program_to_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
#/bin/bash | |
# Usage: ./batch_resize.sh input_dir output_dir “10 30 50” | |
# ./batch_resize.sh help | |
# Setup our globals | |
PARAM_CHECK_FAIL=0 | |
INPUT_DIR="" | |
OUTPUT_DIR="" | |
SIZES=() |
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
# Swap file created on DATE | |
/var/swapfile none swap sw 0 0 |
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
xvda 202:0 0 300G 0 disk / | |
xvdf 202:80 0 350G 0 disk | |
├─xvdf1 202:81 0 8G 0 part | |
├─xvdf2 202:82 0 512M 0 part | |
└─xvdf3 202:83 0 341.5G 0 part |
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
<MacGyver> selby: ssh user@host "tar -czf - /folder/to/backup" | tar -xzf - /folder/where/it/should/go |
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
{ | |
"Noredun": { | |
"4": { | |
"responseTime": 47.73792, | |
"rps": 505.446884 | |
}, | |
"16": { | |
"responseTime": 38.438951, | |
"rps": 387.339675 | |
}, |
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
insert into image ( | |
id, | |
name, | |
description, | |
album_id, | |
album_position, | |
path, | |
type, | |
size, | |
url, |
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
VERSION=1.4.2 | |
sudo apt-get update | |
sudo apt-get install openjdk-6-jdk | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.deb | |
sudo dpkg -i elasticsearch-$VERSION.deb | |
# be sure you add "action.disable_delete_all_indices" : true to the config!! |
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
/* Since script loading is dynamic, we take | |
a callback function with our loadScript call | |
that executes once the script is done downloading/parsing | |
on the page. | |
*/ | |
var loadScript = function(src, callbackfn) { | |
var newScript = document.createElement("script"); | |
newScript.type = "text/javascript"; | |
newScript.setAttribute("async", "true"); | |
newScript.setAttribute("src", src); |
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
#include <vector> | |
#include <fstream> | |
#include <iostream> | |
#include <ctype.h> | |
#include "fann.h" | |
#include "fann_cpp.h" | |
using namespace std; | |
void error(const char* p, const char* p2 = ""){ |