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 | |
from tones import tones | |
import math | |
# format: | |
# | |
# freq@-attn, | |
# freq@-attn, | |
# freq@-attn |
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
use strict; | |
use Crypt::OpenSSL::RSA; | |
use Crypt::OpenSSL::Bignum; | |
use JSON; | |
use File::Slurp; | |
use MIME::Base64; | |
my $json_file = "private_key.json"; | |
my $json_content = read_file($json_file); |
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
/* $NetBSD: cal.c,v 1.10 1998/07/28 19:26:09 mycroft Exp $ */ | |
/* | |
* Copyright (c) 1989, 1993, 1994 | |
* The Regents of the University of California. All rights reserved. | |
* | |
* This code is derived from software contributed to Berkeley by | |
* Kim Letkeman. | |
* | |
* Redistribution and use in source and binary forms, with or without |
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
! Xft settings | |
Xft.dpi: 96 | |
Xft.antialias: true | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintfull | |
! Meslo Setup | |
URxvt.allow_bold: true | |
URxvt*font: xft:Meslo LG M:regular:size=11, xft:Symbola:pixelsize=11 |
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
all: boot.img | |
ROM_VERSION = 160311 | |
MBR = /usr/lib/syslinux/bios/mbr.bin | |
tmp/apu_tinycore.tar.bz2: | |
mkdir -p tmp | |
wget -O $@ http://pcengines.ch/file/apu_tinycore.tar.bz2 | |
tmp/apu_tinycore/.unpacked: tmp/apu_tinycore.tar.bz2 |
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 | |
hostname="$(uci get "system.@system[0].hostname")" | |
if [ -n "${1:-}" ]; then | |
if [ "${1}" = "serve" ]; then | |
printf "HTTP/1.1 200 OK\r\n" | |
printf "Server: Socken Katze\r\n" | |
printf "X-Powered-By: Pink Fluffy Unicorns Dancing On Rainbows\r\n" | |
printf "Connection: close\r\n" |
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 | |
from scapy import all as scapy | |
#import subprocess | |
INTERFACE = "eth0" | |
SECRET = b"thecakeisalie" | |
def do_reply(incoming_pkt_ether): | |
# get request |
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
server { | |
listen 443 ssl http2 proxy_protocol; | |
listen [::]:443 ssl http2 proxy_protocol; | |
ssl_certificate /etc/dehydrated/certs/search.kurz.pw/fullchain.pem; | |
ssl_certificate_key /etc/dehydrated/certs/search.kurz.pw/privkey.pem; | |
server_name search.kurz.pw; | |
access_log off; | |
error_log off; |
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
# run "xhost local:root" on host machine | |
FROM debian:latest | |
RUN apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt install -y xorg v4l2ucp libgl1 libraw1394-11 libavc1394-0 libiec61883-0 libgtkextra-dev libnss3 libgconf2-4 vnc4server fluxbox libasound2 vlc | |
RUN apt -y purge libturbojpeg0 | |
ADD http://de.archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_1.3.0-0ubuntu2_amd64.deb /deb/libjpeg-turbo8.deb | |
ADD http://security.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-2ubuntu4.5_amd64.deb /deb/libgcrypt11.deb | |
RUN dpkg -i /deb/*.deb |
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
MCU=attiny13 | |
MCUFREQ=-DF_CPU=1000000L | |
PROGTYPE=stk500v1 | |
SOURCES=main.c | |
TARGET=main | |
.PHONY: build upload | |
build: $(TARGET).hex |