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/python | |
""" | |
Multicast group scanner. | |
Author: Lasse Karstensen <lasse.karstensen@gmail.com>, November 2014 | |
""" | |
import gevent | |
from gevent import monkey | |
monkey.patch_all() |
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 python | |
""" | |
Logging part of a multicast group scanner. | |
Needs to be run with capabilities allowing it to read | |
raw data from the network interface. (usually root) | |
Author: Lasse Karstensen <lasse.karstensen@gmail.com>, April 2013. | |
""" | |
import sys |
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
# | |
# Varnish VCL file for Ghost blogging platform. | |
# http://ghost.org/ | |
# | |
# Written for Ghost v0.3.0. | |
# | |
# This is a low-hanging-fruit type of VCL. TTL of objects are overridden to 2 | |
# minutes, and everything below /ghost/ is pass()-ed so the user sessions | |
# work. | |
# |
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
foo |
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
#!/bin/bash | |
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux; | |
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It | |
# only accepts ESC backslash for ST. | |
function print_osc() { | |
if [[ $TERM == screen* ]] ; then | |
printf "\033Ptmux;\033\033]" | |
else | |
printf "\033]" |
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
From ebc04e28ee9aeff26e913c9c3982a4662bfe908e Mon Sep 17 00:00:00 2001 | |
From: Lasse Karstensen <lasse.karstensen@gmail.com> | |
Date: Tue, 11 Dec 2018 16:17:43 +0100 | |
Subject: [PATCH] WIP | |
--- | |
src/configuration.c | 9 ++++++++- | |
src/configuration.h | 1 + | |
src/hitch.c | 22 +++++++++++++++++++--- | |
3 files changed, 28 insertions(+), 4 deletions(-) |
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
/* | |
Peet Bros. (PRO) anemometer interface. | |
Read the wind speed and direction interrupts from two input pins, do some math, | |
and output this over Serial as NMEA0183. | |
The anemometer itself is designed so that the two inputs does not signal | |
at the same time. We can use simple non-interruptable interrupts and still | |
be pretty sure not to lose any events. |
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 python3 | |
""" | |
Split Airmar .ax files consisting of multiple SREC blocks into separate files, | |
so srec_cat/objcopy can read them. | |
Author: Lasse Karstensen <lasse.karstensen@gmail.com>, July 2017. | |
""" | |
from sys import argv | |
from os.path import basename |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: hitch | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: The Scalable TLS Unwrapping Daemon | |
# Description: The Scalable TLS Unwrapping Daemon |
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
varnish> vcl.inline test <<'__EOF__' | |
106 | |
Message from VCC-compiler: | |
Syntax error at | |
('<vcl.inline>' Line 1 Pos 3) | |
<<'__EOF__' | |
--#-------- | |
Running VCC-compiler failed, exited with 2 | |
VCL compilation failed |
NewerOlder