Skip to content

Instantly share code, notes, and snippets.

View SciLor's full-sized avatar
🏠
Working from home

0xbadbee SciLor

🏠
Working from home
  • Munich, Germany
View GitHub Profile
@CFSworks
CFSworks / gist:db19c10f674ea82a1c1ff7314780790a
Created February 1, 2021 23:40
Nintendo LP2P decryption tool
#!/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
@alkhimey
alkhimey / sketch.ino
Created August 22, 2019 19:07
Code for playing music on ESP8266 using the PCM5102 chip
#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;
# 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):
@mildmojo
mildmojo / rotate_desktop.sh
Created June 18, 2014 06:47
Script to rotate the screen and touch devices on modern Linux desktops. Great for convertible laptops.
#!/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