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
t=1325197738070 [st= 9248] SPDY_SESSION_SYN_STREAM | |
--> flags = 1 | |
--> accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 | |
accept-encoding: gzip,deflate,sdch | |
accept-language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 | |
authorization: Basic [value was stripped] | |
cookie: [value was stripped] | |
host: titan:5555 | |
if-range: "6dea402ae3e2306de2412e21b9d97855" |
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
# encoding: utf-8 | |
require 'sinatra' | |
require './kvv' | |
get "/" do | |
@stop = params[:stop] || "Haendelstraße" | |
@rides = Kvv.fetch_current(@stop) | |
erb :view | |
end |
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
# author: Oleg Sidorov <4pcbr> [email protected] | |
# this code is licenced under the MIT/X11 licence. | |
require 'rubygems' | |
require 'bundler' | |
Bundler.require | |
context = ZMQ::Context.new | |
socket = context.socket(ZMQ::ROUTER) | |
socket.bind('tcp://*:5559') |
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
express = require("express") | |
io = require("socket.io") | |
var app = express.createServer() | |
, io = io.listen(app); | |
app.listen(2005); | |
io.sockets.on('connection', function (socket) { | |
socket.emit('news', { hello: 'world' }); | |
socket.on('my other event', function (data) { |
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
require 'dnsruby' | |
res = Dnsruby::Recursor.new Dnsruby::Resolver.new(nameserver: '8.8.8.8') | |
dlv_key = Dnsruby::RR.create("dlv.isc.org. IN DNSKEY 257 3 5 BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2 brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+ 1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5 ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URk Y62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboM QKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VSt TDN0YUuWrBNh") | |
Dnsruby::Dnssec.add_dlv_key(dlv_key) | |
ret = res.query("sokrates.it.cx", "A") | |
puts "sokrates.it.cx security level: #{ret.security_level}" |
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
(1) jonas@titan:~$ sudo dmidecode | |
# dmidecode 2.11 | |
SMBIOS 2.5 present. | |
27 structures occupying 1318 bytes. | |
Table at 0xCEE98000. | |
Handle 0x0000, DMI type 4, 35 bytes | |
Processor Information | |
Socket Designation: CPU 1 | |
Type: Central Processor |
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
//LZW Compression/Decompression for Strings | |
if(!define) define = function(f){f(require, exports, module)} | |
define(function(require, exports, module){ | |
module.exports = { | |
compress: function (uncompressed) { | |
"use strict"; | |
// Build the dictionary. | |
var i, | |
dictionary = {}, |
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
source "http://rubygems.org" |
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 ruby | |
require 'foreman/cli' | |
require File.expand_path(File.dirname(__FILE__)) + '/foreman_export_systemd.rb' | |
Foreman::CLI.start |
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
package main; | |
import( | |
"code.google.com/p/go.crypto/ssh" | |
"io/ioutil" | |
"fmt" | |
"io" | |
"os/exec" | |
"os" | |
) |