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 { | |
type => "syslog" | |
path => [ # "/ext/var/log/*.log", | |
"/ext/var/log/messages", | |
"/ext/var/log/syslog" | |
] | |
start_position => "beginning" | |
} | |
} |
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/env python | |
import logging | |
import logging.handlers | |
import os | |
import socket | |
import sys | |
class UnpickledSocketHandler(logging.handlers.SocketHandler): | |
""" |
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 <stdio.h> | |
int main(void) | |
{ | |
int c; | |
while(1) { | |
c = getchar(); | |
if(c == EOF) { | |
break; | |
} |
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
website,example GeoJSON,notes | |
http://quakesearch.geonet.org.nz/,"http://quakesearch.geonet.org.nz/services/1.0.0/geojson?bbox=163.60840,-49.18170,182.98828,-32.28713&startdate=2014-07-18&enddate=2014-07-25",Only 2-D coordinates | |
http://earthquake.usgs.gov/,"http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson",3-D coordinates | |
http://open.manchester.gov.uk/homepage/3/open_data_catalogue,"http://www.manchester.gov.uk/site/custom_scripts/getdirectorygeo.php?directory=42&category=",is the coordinates field compliant? | |
http://opendata.montpelliernumerique.fr/Les-donnees?format=geojson,"http://opendata.montpelliernumerique.fr/datastore/VilleMTP_MTP_Fontaines.geojson","encoding? (appears to be utf-8, but not declared in header)" | |
https://github.com/search?q=point+extension%3A.geojson+size%3A%3E1000&type=Code,https://github.com/jimmyhillis/letour-2014/blob/8bfaa62407d14293353d86a74ece738b5ca30df9/json/maps/stage-02.geojson,github have their own renderer! |
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
Description: fix incomplete CVE-2014-6271 update | |
Author: Chet Ramey <chet.ramey@case.edu> | |
Origin: upstream, http://www.openwall.com/lists/oss-security/2014/09/25/10 | |
Index: bash-4.2/bash/parse.y | |
=================================================================== | |
--- bash-4.2.orig/bash/parse.y 2014-09-25 02:09:45.791186206 -0400 | |
+++ bash-4.2/bash/parse.y 2014-09-25 02:09:45.791186206 -0400 | |
@@ -2848,6 +2848,8 @@ | |
FREE (word_desc_to_read); |
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
Jan 6 08:32:00 bay anacron[10676]: Job `cron.daily' terminated | |
Jan 6 08:32:00 bay anacron[10676]: Normal exit (1 job run) | |
Jan 6 08:32:25 bay kernel: [ 9858.677082] current rate 48000 is different from the runtime rate 44100 | |
Jan 6 08:32:25 bay kernel: [ 9858.677547] current rate 48000 is different from the runtime rate 44100 | |
Jan 6 08:32:56 bay kernel: [ 9888.788891] current rate 48000 is different from the runtime rate 44100 | |
Jan 6 08:32:56 bay kernel: [ 9888.789373] current rate 48000 is different from the runtime rate 44100 | |
Jan 6 08:34:53 bay kernel: [10006.211990] current rate 48000 is different from the runtime rate 44100 | |
Jan 6 08:34:53 bay kernel: [10006.212406] current rate 48000 is different from the runtime rate 44100 | |
Jan 6 08:35:31 bay kernel: [10044.026686] current rate 48000 is different from the runtime rate 44100 | |
Jan 6 08:35:31 bay kernel: [10044.027181] current rate 48000 is different from the runtime rate 44100 |
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
import string | |
def base_(x, acc): | |
if x == 0: | |
return acc | |
string.uppercase | |
q, r = divmod(x, 26) | |
l = string.uppercase[r] | |
return base_(q, l + acc) |
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
drj$ cat fixture.js | |
nock=require('nock') | |
nock('www.google.com') | |
.get('/') | |
.reply(200, "<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n<TITLE>BOB</TITLE></HEAD><BODY>\n<H1>Hello from nock</H1>\r\n</BODY></HTML>\r\n", { location: 'http://www.google.co.uk/', | |
'content-type': 'text/html; charset=UTF-8', | |
date: 'Thu, 24 May 2012 15:08:01 GMT' | |
}); | |
drj$ cat get.js | |
http.get({host:'www.google.com',port:80,path:'/',method:'GET'},function(res){res.on('data', function(chunk){console.log('chunk '+chunk)})}) |
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/sh | |
# execute with: | |
# curl https://raw.github.com/gist/3766130/ccc-gistemp-ushcn-minmax | sh | |
set -e | |
REVISION=1019 | |
D=r${REVISION}-ccc-gistemp | |
svn co -r $REVISION https://ccc-gistemp.googlecode.com/svn/trunk $D | |
cd $D | |
mkdir -p input |
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
<html> | |
<p>Hello <i>world</i></p> | |
</html> |
OlderNewer