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
#include <Keyboard.h> | |
#define NKEYS 3 | |
unsigned long mintime = 20; // ms (debounce time) | |
int keypin[NKEYS] = {2,3,4}; | |
char letter[NKEYS] = {'j', 'e', 's'}; | |
int isdown[NKEYS]; | |
unsigned long lastchange[NKEYS]; |
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
diff --git a/Vagrantfile b/Vagrantfile | |
index 317fd6d..54ecde1 100644 | |
--- a/Vagrantfile | |
+++ b/Vagrantfile | |
@@ -45,12 +45,11 @@ Vagrant.configure("2") do |config| | |
-p 5601:5601 \ | |
--network audit" | |
- d.run "docker.elastic.co/beats/filebeat:7.7.0", | |
+ d.run "docker.elastic.co/beats/filebeat:7.7.0 -e -strict.perms=false", |
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/perl | |
# jes's crappy blog generator | |
use strict; | |
use warnings; | |
use DateTime; | |
use DateTime::Format::Strptime; | |
use File::Copy; | |
use JSON qw(decode_json); |
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
// 19x10 VGA serial display | |
// James Stanley <james@incoherency.co.uk> | |
// Note that this needs a modified version of VGAX.h that only uses 1bpp instead of 2bpp else there isn't enough RAM | |
#include <VGAX.h> | |
//font generated from BITFONZI - by Sandro Maffiodo | |
#define FNT_NANOFONT_HEIGHT 6 | |
#define FNT_NANOFONT_SYMBOLS_COUNT 95 | |
//data size=570 bytes |
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/perl | |
# jes's crappy blog generator | |
use strict; | |
use warnings; | |
use DateTime; | |
use DateTime::Format::Strptime; | |
use File::Copy; | |
use JSON qw(decode_json); |
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
00000000 05 00 00 00 00 00 00 69 0a 00 00 00 00 00 69 db |.......i......i.| | |
00000010 0f 00 00 00 00 69 db b6 05 00 00 00 69 db b6 6d |.....i......i..m| | |
00000020 0a 00 00 69 db b6 6d db 0f 00 69 db b6 6d db b6 |...i..m...i..m..| | |
00000030 05 69 db b6 6d db b6 6d 63 db b6 6d db b6 6d db |.i..m..mc..m..m.| | |
00000040 de b6 6d db b6 6d db 69 ba 6d db b6 6d db 69 9a |..m..m.i.m..m.i.| | |
00000050 63 db b6 6d db 69 9a a6 de b6 6d db 69 9a a6 69 |c..m.i....m.i..i| | |
00000060 ba 6d db 69 9a a6 69 9a 63 db 69 9a a6 69 9a a6 |.m.i..i.c.i..i..| | |
00000070 de 69 9a a6 69 9a a6 69 65 9a a6 69 9a a6 69 9a |.i..i..ie..i..i.| | |
00000080 93 a6 69 9a a6 69 9a fb a9 69 9a a6 69 9a fb b9 |..i..i...i..i...| | |
00000090 65 9a a6 69 9a fb b9 9f 93 a6 69 9a fb b9 9f fb |e..i......i.....| |
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
TEXT main.genDataChunk(SB) /home/jes/rdspam/main.go | |
main.go:64 0x4b2c00 4883ec08 SUBQ $0x8, SP | |
main.go:64 0x4b2c04 48892c24 MOVQ BP, 0(SP) | |
main.go:64 0x4b2c08 488d2c24 LEAQ 0(SP), BP | |
main.go:64 0x4b2c0c 488b442410 MOVQ 0x10(SP), AX | |
main.go:64 0x4b2c11 488b4c2420 MOVQ 0x20(SP), CX | |
main.go:64 0x4b2c16 488b542418 MOVQ 0x18(SP), DX | |
main.go:64 0x4b2c1b 31db XORL BX, BX | |
main.go:65 0x4b2c1d eb0e JMP 0x4b2c2d | |
binary.go:90 0x4b2c1f 48893c08 MOVQ DI, 0(AX)(CX*1) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <inttypes.h> | |
// lfsr64 from https://github.com/russm/lfsr64/blob/master/lfsr64.c | |
uint64_t byte_feedback[256] = { | |
0x0000000000000000, 0xc70000000000000b, 0x8e0000000000000d, 0x4900000000000006, |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <time.h> | |
int main() { | |
srand(time(NULL)); | |
short *buf = malloc(1048576); | |
for (int i = 0; i < 1000; i++) { |
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'; | |
class Markov { | |
constructor() { | |
this.minLength = 6; | |
this.maxLength = 30; | |
this.dict = {}; | |
} | |
addSentence(text) { |