This file contains hidden or 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
<Query> | |
<RecordsSet>true</RecordsSet> | |
<Dimensions>true</Dimensions> | |
<BusinessRulesResult>true</BusinessRulesResult> | |
<AppliedFilters>true</AppliedFilters> | |
<Searches> | |
<Search> | |
<search-key>primary</search-key> | |
<search-term>A4527</search-term> | |
</Search> |
This file contains hidden or 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
# cron schedule regex: | |
# | |
# Needed a way to break this monster into nibblets. | |
# It all gets combined in the end for the most horrific regex i've ever seen! | |
# | |
# minute: | |
# list: (([0-5]?[0-9]),)+([0-5]?[0-9]) | |
# mod: (0|\*)\/[0-5]?[0-9] | |
# expl: [0-5]?[0-9] | |
# final: ((0|\*)\/[0-5]?[0-9]|[0-5]?[0-9]|(([0-5]?[0-9]),)+([0-5]?[0-9])|\*) |
This file contains hidden or 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 | |
require 'rubygems' | |
require 'mongo' | |
db = Mongo::Connection.new.db('monet') | |
coll = db.collection('web_requests') | |
File.open('/Users/tylerflint/Desktop/monet-import.sql', 'a+') do |f| |
This file contains hidden or 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 | |
### BEGIN INIT INFO | |
# Provides: iptables | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: iptables | |
# Description: loads iptables default policy |
This file contains hidden or 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 escript | |
main([]) -> | |
odbc:start(), | |
Result = odbc:connect("DRIVER={MonetDB};Server=localhost;Port=50000;UID=monetdb;PWD=monetdb;DATABASE=pagoda-stats", []), | |
io:format("Result: ~p~n", [Result]). |
This file contains hidden or 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
CREATE TABLE "web_requests" | |
("app_id" varchar(50) | |
,"component_id" varchar(50) | |
,"cookie" varchar(50) | |
,"duration" integer | |
,"path" varchar(2000) | |
,"created_at" timestamp | |
); |
This file contains hidden or 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
@request, @raw_response = @http.post(@uri.path, @query.target!, 'Content-type' => 'application/xml') | |
This file contains hidden or 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> | |
<meta charset="utf-8" /> | |
<meta name="keywords" content="idb" /> | |
<meta name="description" content="idb" /> | |
<link rel="stylesheet" href="http://idb.pagodabox.com/css/style.css" /> | |
</head><body> | |
<header> | |
<a href="http://idb.pagodabox.com/" class="logo">IDB</h1> |
This file contains hidden or 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
# Colors ---------------------------------------------------------- | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
alias ls='ls -G' | |
# Setup some colors to use later in interactive shell or scripts | |
export COLOR_NC='\033[0m' # No Color | |
export COLOR_WHITE='\033[1;37m' |
This file contains hidden or 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
CREATE TABLE lyon_farts ( | |
type varchar(25), | |
duration int, | |
severity int, | |
); | |
INSERT INTO lyon_farts VALUES ('sbd', 2, 5); | |
INSERT INTO lyon_farts VALUES ('pop', 1, 2); | |
INSERT INTO lyon_farts VALUES ('shard', 3, 10); |