Skip to content

Instantly share code, notes, and snippets.

View roman-neuhauser's full-sized avatar

Roman Neuhauser roman-neuhauser

View GitHub Profile
@roman-neuhauser
roman-neuhauser / Cakefile
Created April 19, 2013 00:55
roman-neuhauser/studio_napi/GNUmakefile redone as Cakefile. apparently not worth the effort.
{glob} = require 'multi-glob'
require './make'
split = (s) -> s.split /\s+/
ENV = process.env
MOCHA = split (ENV.MOCHA or '''
mocha -C --compilers t.coffee:coffee-script
--globals DELETE,GET,POST,PUT
@roman-neuhauser
roman-neuhauser / logdemux.js
Last active August 29, 2015 13:56
logdemux in javascript :)
// vim: sw=2 sts=2 ts=2 fdm=marker cms=\ //\ %s
function expand_sink(prefix, today) // {{{
{
return function (expando)
{
var sexpando = expando.str();
if (sexpando == "%D") return to_iso_extended_string(today);
if (sexpando == "%P") return prefix;
return "LOGDEMUX-BUG";
@roman-neuhauser
roman-neuhauser / .travis.yml
Created February 11, 2014 16:28
tentative travis-ci config for logdemux
language:
- cpp
compiler:
- gcc
- clang
before_install:
- git submodule update --init
- sudo apt-get update -qq
crypto = require 'crypto'
fs = require 'fs'
path = require 'path'
digest = crypto.createHash 'sha1'
str = 'hello world!'
digest.update str
hex = digest.digest 'hex'
segs = (hex) ->
import socket
ip = '127.0.0.1'
base = 8000
end = base + 10
[s, t, u] = [socket.socket() for i in '123']
def bind(sock, port):
sock.bind((ip, port))
DRAFT STANDARD
Request For Comments: -1 Tsarev, Yury
Category: Misc Neuhauser, Roman
Hangover Negotiation Protocol
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
@roman-neuhauser
roman-neuhauser / a.cpp
Last active August 29, 2015 14:02 — forked from jan-matejka/a.cpp
inline
Text Volume::labelTextFmt( bool doing, has_label ) const {
if (doing && !has_label) return _("Clearing label on %1$s")
if (doing && has_label) return _("Setting label on %1$s to %2$s")
if (!has_label) return _("Clear label on %1$s")
else return _("Set label on %1$s to %2$s")
}
Text Volume::labelText( bool doing ) const {
return sformat(labelTextFmt(doing, !label.empty()), dev.c_str(), label.c_str());
ELF Header:
Magic: 7f 45 4c 46 02 01 01 09 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - FreeBSD
ABI Version: 0
Type: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
/usr/obj/usr/src/tmp/usr/src/usr.bin/xinstall/install.debug: file format elf64-x86-64-freebsd
/usr/obj/usr/src/tmp/usr/src/usr.bin/xinstall/install.debug
architecture: i386:x86-64, flags 0x00000012:
EXEC_P, HAS_SYMS
start address 0x00000000004001e0
Sections:
Idx Name Size VMA LMA File off Algn
0 .note.tag 00000030 0000000000400190 0000000000400190 00000040 2**2
ld: error: ../../lib/libxbps.so: undefined reference to ASN1_STRING_get0_data
ld: error: ../../lib/libxbps.so: undefined reference to ASN1_STRING_length
ld: error: ../../lib/libxbps.so: undefined reference to ASN1_STRING_to_UTF8
ld: error: ../../lib/libxbps.so: undefined reference to CRYPTO_free
ld: error: ../../lib/libxbps.so: undefined reference to ERR_print_errors_fp
ld: error: ../../lib/libxbps.so: undefined reference to GENERAL_NAMES_free
ld: error: ../../lib/libxbps.so: undefined reference to X509_LOOKUP_file
ld: error: ../../lib/libxbps.so: undefined reference to X509_NAME_ENTRY_get_data
ld: error: ../../lib/libxbps.so: undefined reference to X509_NAME_get_entry
ld: error: ../../lib/libxbps.so: undefined reference to X509_NAME_get_index_by_NID