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
name = dcbl1 | |
description = Theme fuer db-events.de | |
core = 7.x | |
stylesheets[all][] = style.css |
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
#!/bin/sh | |
now=`date +%s` | |
stattime=`stat -c'%Z' /tmp/sshag.$USER` | |
uptime=`cat /proc/uptime | cut -d. -f1` | |
if [ 0 -lt $[ $now - $stattime - $uptime] ]; then | |
ssh-agent > /tmp/sshag.$USER | |
chmod 600 /tmp/sshag.$USER | |
fi |
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
#!/bin/bash | |
n1=1250 | |
n2=2500 | |
n3=3750 | |
n4=5000 | |
n5=6250 | |
n6=7500 | |
n7=8750 | |
n8=10000 |
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
package main | |
import ( | |
"fmt" | |
"github.com/zeebo/bencode" | |
) | |
type Foo struct { | |
Name string | |
Stuff interface{} |
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
package main | |
import ( | |
"crypto/sha1" | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"strings" | |
"sync" |
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
#!/bin/bash | |
# | |
# Parses DHCP options from openvpn to update resolv.conf | |
# To use set as 'up' and 'down' script in your openvpn *.conf: | |
# up /etc/openvpn/update-resolv-conf | |
# down /etc/openvpn/update-resolv-conf | |
# | |
# Used snippets of resolvconf script by Thomas Hood <[email protected]> | |
# and Chris Hanson | |
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL. |
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
package commands | |
// ... | |
func (cmd *Command) Call(r Request, w io.Writer) error { | |
// ... | |
res := NewResponse(r, w) // pass the writer | |
cmd.Run(...) |
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
type ResponseEmitter interface { | |
// closes http conn or channel | |
io.Closer | |
// Set/Return the response Error | |
SetError(err error, code ErrorType) | |
// Gets Stdout and Stderr, for writing to console without using SetOutput | |
Stdout() io.Writer | |
Stderr() io.Writer |
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
maude tool: 'maude' | |
checking version: 2.7. OK. | |
checking installation: OK. | |
theory SHS begin | |
// Function signature and definition of the equational theory E | |
builtins: diffie-hellman | |
functions: ed2cv/1, fst/1, h/1, mac/2, macv/3, pair/2, pk/1, sdec/2, |
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
maude tool: 'maude' | |
checking version: 2.7. OK. | |
checking installation: OK. | |
theory SHS begin | |
// Function signature and definition of the equational theory E | |
builtins: diffie-hellman | |
functions: ed2cv/1, fst/1, h/1, mac/2, macv/3, pair/2, pk/1, sdec/2, |