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
# QUELLE: http://wiki.hetzner.de/index.php/Sensors.conf | |
# | |
# /etc/sensors3.conf von Debian / lm-sensors 3.0.2 | |
# ================================================ | |
# | |
# sample configuration for the Fintek f71882fg for MSI X58 Pro (7522-040R, | |
# like seen in Hetzner's EQ6 servers). To load the driver module, append a | |
# single line (without the #) to /etc/modules: | |
# f71882fg |
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
# bad | |
# | |
def calculate(string_or_array) | |
if !string_or_array.is_a?(Array) | |
string_or_array = [ string_to_array ] | |
end | |
… | |
end | |
# good |
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 | |
# run a local http proxy | |
require 'rubygems' | |
require 'webrick' | |
require 'webrick/httpproxy' | |
p = WEBrick::HTTPProxyServer.new :Port => ARGV.first | |
trap("INT") { p.shutdown } | |
p.start | |
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
# FIRST: Environment variables | |
knife_env = ENV['KNIFE_ENV'] | |
knife_org = ENV['KNIFE_ORG'] | |
knife_config_dir = ENV['KNIFE_CONFIG_DIR'] | |
knife_config_file = ENV['KNIFE_CONFIG_FILE'] | |
if knife_env.blank? | |
`git branch 2> /dev/null` =~ /^\*\s(.*)$/ | |
git_branch = $1 |
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
alias servmeup="ruby -r 'webrick' -e 'server = WEBrick::HTTPServer.new(:Port => 1234); server.mount(\"/\", WEBrick::HTTPServlet::FileHandler, \"./\");trap(\"INT\") { server.stop };server.start'" | |
… | |
$servmeup | |
[2011-02-26 15:05:43] INFO WEBrick 1.3.1 | |
[2011-02-26 15:05:43] INFO ruby 1.8.7 (2010-08-16) [i686-darwin10.6.0] | |
[2011-02-26 15:05:43] INFO WEBrick::HTTPServer#start: pid=46054 port=1234 |
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
alter table records add ordername VARCHAR(255); alter table records add auth bool; create index orderindex on records(ordername); | |
create table domainmetadata ( id INTEGER PRIMARY KEY, domain_id INT NOT NULL, kind VARCHAR(15) COLLATE NOCASE, content TEXT ); | |
create index domainmetaidindex on domainmetadata(domain_id); | |
create table cryptokeys ( id INTEGER PRIMARY KEY, domain_id INT DEFAULT NULL, flags INT NOT NULL, active BOOL, content TEXT ); | |
create index domainidindex on cryptokeys(domain_id); |
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
$ dig +nocomments +nostats +nocmd +noquestion -t dnskey . > trusted-key.key | |
$ dig +topdown +sigchase +multiline -ta moriz.org | |
ns name: 198.41.0.4 | |
ns name: 192.228.79.201 | |
ns name: 192.33.4.12 | |
ns name: 128.8.10.90 | |
ns name: 192.203.230.10 | |
ns name: 192.5.5.241 | |
ns name: 192.112.36.4 | |
ns name: 128.63.2.53 |
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
# Gemfile | |
… | |
gem 'uuidtools' | |
… |
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
rmoriz:/tmp/rb-fsevent(master)$bundle exec rspec spec/ | |
No examples were matched by {:focus=>true}, running all | |
creating Makefile | |
CFLAGS='-isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -mdynamic-no-pic -std=gnu99 -Os -pipe -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wsign-compare -Wnewline-eof -Wconversion -Wshorten-64-to-32 -Wglobal-constructors -pedantic' /usr/bin/gcc -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -mdynamic-no-pic -std=gnu99 -dead_strip -framework CoreServices -o '/private/tmp/rb-fsevent/bin/fsevent_watch' fsevent/fsevent_watch.c | |
fsevent_watch compiled | |
.2011-05-03 19:09 fsevent_watch[28915] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21) | |
F2011-05-03 19:09 fsevent_watch[28941] (CarbonCore.framework) FSEventStreamStar |
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
0 | |
OrgName: RIPE Network Coordination Centre | |
OrgID: RIPE | |
Address: P.O. Box 10096 | |
City: Amsterdam | |
StateProv: | |
PostalCode: 1001EB | |
Country: NL |