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 programming.set9.morses; | |
import java.nio.charset.Charset; | |
public class MorseCoder | |
{ | |
private static boolean DEBUG = false; | |
/** | |
* Simple static test of the morse encode/decode functions |
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 -e | |
### BEGIN INIT INFO | |
# Provides: fastd | |
# Required-Start: $network $remote_fs $syslog | |
# Required-Stop: $network $remote_fs $syslog | |
# Should-Start: network-manager | |
# Should-Stop: network-manager | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
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 | |
modprobe vfio-pci | |
for dev in "$@"; do | |
echo Handling device "$dev" | |
devpath="/sys/bus/pci/devices/$dev" | |
if ! [ -d $devpath ]; then | |
echo "$devpath doesn't exist" | |
exit 1 | |
fi | |
if [ -L $devpath/driver/module ]; then |
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
sudo qemu-system-x86_64 \ | |
-machine q35 `# Chipset` \ | |
-cpu host,kvm=off `# Emulate host CPU features but mask kvm flag` \ | |
-smp sockets=1,cores=4,threads=2 `# Set cpu layout` \ | |
-enable-kvm `# Enable kvm for performance > 0` \ | |
-rtc base=localtime `# Ensure that windows gets the correct timezone` \ | |
-drive if=pflash,format=raw,readonly,file=firmware/OVMF_CODE-with-csm.fd `# UEFI rom image` \ | |
-drive if=pflash,format=raw,file=firmware/OVMF_VARS-with-csm-win7.fd `# EFI vars` \ | |
-m 16384 `# RAM` \ | |
-drive file=win7.img,format=raw,index=0,media=disk `# Main disk image` \ |
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/env python3 | |
# Assignment 3.3 | |
# Group 7 | |
# Tobias Schramm & Malte Hansen | |
import sys | |
# Just a simple container to avoid messing around with too many arrays | |
class Lecture(): |
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 | |
import sys | |
buffsize = 4 | |
refstring = [0, 1, 2, 3, 1, 0, 4, 5, 1, 0, 1, 2, 6, 5, 2, 1, 0, 1, 2, 5] | |
if len(sys.argv) >= 3: | |
buffsize = int(sys.argv[1]) | |
refstring = sys.argv[2].split() |
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
echo 18 > /sys/class/gpio/export | |
echo 19 > /sys/class/gpio/export | |
echo out > /sys/class/gpio/gpio18/direction | |
echo out > /sys/class/gpio/gpio19/direction | |
echo 1 > /sys/class/gpio/gpio18/value | |
echo 1 > /sys/class/gpio/gpio19/value |
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
# Enable mrf24j40 IEEE 802.15.4 transceiver | |
dtoverlay=mrf24j40-overlay |
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
Zugang zu städtischen Dächern für den Freifunk | |
Die Verwaltung wurde gebeten, dem Wirtschaftsausschuss zu berichten, | |
unter welchen Be- | |
dingungen dem Freifunk in Kiel Zugang zu den Dächern stadteigener oder | |
von der Landes- | |
haupstadt Kiel genutzter Gebäude zur fachgerechten Installation von | |
WLAN-Repeatern, - | |
Routern und/oder Antennen zur Nutzung im Rahmen des Freifunknetzes Kiel |
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/env python3 | |
import socket | |
import RPi.GPIO as gpio | |
import time | |
GPIO = 7 | |
LISTEN_ADDRESS = '127.0.0.1' | |
LISTEN_PORT = 3214 | |
OPEN_TIME = 5 |