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
## Debian Repository - | |
--> /etc/apt/sources.list | |
====> | |
deb http://ftp.us.debian.org/debian squeeze main contrib non-free | |
deb-src http://ftp.us.debian.org/debian squeeze main contrib non-free | |
deb http://security.debian.org/ squeeze/updates main | |
deb-src http://security.debian.org/ squeeze/updates main | |
deb http://ftp.us.debian.org/debian squeeze-updates main contrib non-free |
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 python | |
from __future__ import with_statement | |
import contextlib | |
import os | |
import sys | |
print "Filesystem\tMounted on\tUse%\tIUse%" | |
with contextlib.closing(open('/etc/mtab')) as fp: | |
for m in fp: |
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
diff --git a/lib/logstash/logging.rb b/lib/logstash/logging.rb | |
index bafb342..b0692e2 100644 | |
--- a/lib/logstash/logging.rb | |
+++ b/lib/logstash/logging.rb | |
@@ -3,6 +3,8 @@ require "cabin" | |
require "logger" | |
class LogStash::Logger < Cabin::Channel | |
+ attr_accessor :target | |
+ |
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
####################################################### | |
# by Scott Chamberlain <[email protected]> | |
# for blog post titled "Awesome use case: check my species names and | |
# gimme some distribution data" | |
####################################################### | |
# Load packages | |
install.packages(c("RCurl","stringr","XML","plyr","RJSONIO")) | |
require(RCurl);require(stringr);require(XML);require(plyr);require(RJSONIO) | |
# Clone taxize and rgbif repositories from GitHub |
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
# How to use | |
* Download the log4j.properties file | |
* Add it to your logstash jar file: jar -uf logstash-1.0.10.jar log4j.properties | |
NewerOlder