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 | |
import re | |
import argparse | |
import pathlib | |
import binascii | |
from dataclasses import dataclass | |
from scapy.all import * | |
from cryptography.hazmat.primitives.ciphers.aead import AESGCM |
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 "ESP8266WiFi.h" | |
#include "i2s.h" | |
#include "i2s_reg.h" | |
#define RATE 44100 | |
#define SINE_SAMPLES 512 | |
const int c = 261; | |
const int d = 294; | |
const int e = 329; |
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
# Copyright Carve Systems 2015 | |
# | |
# LICENSE: If you use this code, and it helped you learn or accomplish a goal, | |
# please let us know. We would love to hear from you. | |
# Keep our numbers clean and such | |
def toint32(val): | |
return val & 0xffffffff | |
def toint16(val): |
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 | |
# | |
# rotate_desktop.sh | |
# | |
# Rotates modern Linux desktop screen and input devices to match. Handy for | |
# convertible notebooks. Call this script from panel launchers, keyboard | |
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
# | |
# Using transformation matrix bits taken from: | |
# https://wiki.ubuntu.com/X/InputCoordinateTransformation |