Sweet stuff this is Some of it is too sweet perhaps
I had some of it and I am left shell shocked, really!
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 | |
top -n1 |
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
Questions | |
• remove spaces | |
• second highest | |
• binary search | |
• reverse byteorder | |
• search for pattern in a binary tree | |
• sum in a sorted list | |
• binary tree serialize, deserialize | |
• atoi, atof |
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
-----> Heroku receiving push | |
-----> Fetching custom buildpack... done | |
-----> JRuby app detected | |
-----> Downloading and unpacking JRuby | |
-----> Installing JRuby-OpenSSL, Bundler and Rake | |
Successfully installed bouncy-castle-java-1.5.0146.1 | |
Successfully installed jruby-openssl-0.7.6.1 | |
Successfully installed bundler-1.1.3 | |
Successfully installed rake-0.9.2.2 | |
4 gems installed |
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
# Barf like a dog |
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 <time.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <sys/mman.h> | |
#include <sys/types.h> | |
#include <stdlib.h> | |
#include <sys/stat.h> /* For mode constants */ | |
#include <fcntl.h> /* For O_* constants */ |
An html/js implementation to the LCD Display problem on UVA.
Should be self explanatory but the number field takes digits and the hyphen(-) character. And then there's the scale.
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
<!doctype html> | |
<html> | |
<head> | |
<style> | |
#psy { | |
height: 30px; | |
width: 20px; | |
border-bottom: 5px double black; | |
background: url(logo_dancing_psy-vflsJl9hC.gif) no-repeat -73px 1px; | |
position: absolute; |
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 | |
set -e | |
#set -x | |
SEND="nc -v -v -q2 w3-api3 2003" | |
#SEND=cat | |
SED="sed s/[%/]//gI" | |
SADF="sadf -s $1 /var/log/sysstat/$2 --" | |
$SADF -d | grep 'dev254-[278]' | $SED | awk '{print "sys.hostmetrics." $1 ".deviceio." $4 "." $5 ".per_min", $6, $3}' | $SEND |
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/perl -w | |
use Sys::Hostname; | |
use Date::Parse; | |
# extract date string and time | |
# convert date string to epoch | |
# format string for carbon | |
# publish | |
m/\[(.*)\]:.*: (.*)s ;.*/; |
OlderNewer