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
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
! 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
/* $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
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
#!/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
[...] | |
default-sample-format = s32le | |
default-sample-rate = 48000 | |
default-sample-channels = 6 | |
enable-remixing = yes | |
enable-lfe-remixing = yes | |
flat-volumes = no |
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
Handle dirHandle; | |
FS_path dirPath=FS_makePath(PATH_CHAR, "/"); | |
FSUSER_OpenDirectory(NULL, &dirHandle, sdmcArchive, dirPath); | |
u32 entriesRead=0; | |
do { | |
u16 entryBuffer[512]; | |
char data[256]; | |
FSDIR_Read(dirHandle, &entriesRead, 1, (FS_dirent*)entryBuffer); | |
if(!entriesRead){ | |
print("END"); |
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 socket | |
import sys | |
import time | |
TCP_IP = '192.168.100.241' | |
TCP_PORT = 9000 | |
MESSAGE = open(sys.argv[1], "rb").read(); |
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/python2 | |
import re | |
import datetime | |
import urllib | |
import urllib2 | |
import cookielib | |
import os | |
import json | |
import curses |