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
input { | |
file { | |
# Path to your logs | |
path => "/logs/*" | |
start_position => "beginning" | |
} | |
} | |
filter { | |
grok { |
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
# Server | |
redis_version:2.8.9 | |
redis_git_sha1:00000000 | |
redis_git_dirty:0 | |
redis_build_id:53bb8484a594dab0 | |
redis_mode:standalone | |
os:FreeBSD 9.2-RELEASE-p6 amd64 | |
arch_bits:64 | |
multiplexing_api:kqueue | |
gcc_version:4.2.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
info commandstats | |
$1158 | |
# Commandstats | |
cmdstat_get:calls=344336405,usec=1084573265,usec_per_call=3.15 | |
cmdstat_set:calls=86516,usec=590904,usec_per_call=6.83 | |
cmdstat_setex:calls=28000873,usec=262906699,usec_per_call=9.39 | |
cmdstat_del:calls=4138776,usec=12168359,usec_per_call=2.94 | |
cmdstat_exists:calls=967,usec=2135,usec_per_call=2.21 | |
cmdstat_sadd:calls=5214906740,usec=4204169654,usec_per_call=0.81 | |
cmdstat_srem:calls=4135644,usec=20366147,usec_per_call=4.92 |
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
# Prototype of a functional scripting language. Just fooling around. Nothing to see here. | |
# | |
A long comment. | |
Very long, they say. | |
# | |
# There's only one data type: list | |
# Assign variables with : |
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
This works: | |
http://jobs.apple.com/index.ajs?BID=1&method=mExternal.returnToResults&CurrentPage=143165577 | |
This doesn't: | |
http://jobs.apple.com/index.ajs?BID=1&method=mExternal.returnToResults&CurrentPage=143165578 | |
But why? |
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 getCtr() { | |
var i = 0; return function() { console.log(++i); } | |
} | |
var ctr = getCtr() | |
ctr() // 1 | |
ctr() // 2 |
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 | |
/* | |
HACK: Replace the original dropbox-gallery.php with this file. | |
Script: | |
My PHP DropBox Gallery | |
Author: | |
Jonathan Ochej, <http://2boandco.com> |
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
I got this message when I tried to open a shell on my application: | |
$ dotcloud run www | |
==> Opening a shell on service (www) instance #0 (application trips) | |
Error: An unexpected error has occured: 'ascii' codec can't decode byte 0xc3 in position 67: ordinal not in range(128). | |
The remote server handling the last request was 174.129.124.156:443. | |
The remote timestamp was Thu, 28 Feb 2013 15:06:19 GMT. | |
Please try again; and if the problem persists, contact support@dotcloud.com with this information. | |
Adding the following to /usr/local/lib/python2.7/site-packages/sitecustomize.py fixed the error: |
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
" Mac specific: Text-to-speech on selected text in visual mode | |
" w: Don't replace selection with command output after execution | |
" silent: Don't prompt for enter after execution | |
:vnoremap <leader>v :w<Home>silent <End> !say <CR> |
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/python | |
""" | |
Usage from commandline: | |
python l33t.py "Can i haz cheezburgerz" | |
""" | |
from string import maketrans # Required to call maketrans function. | |
from sys import argv |
OlderNewer