Skip to content

Instantly share code, notes, and snippets.

View nucular's full-sized avatar

nucular nucular

View GitHub Profile
@nucular
nucular / logo-black.svg
Created September 17, 2019 13:35
EarthStrike/Antifa/PhilosophyTube mashup
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nucular
nucular / birdseye.md
Created May 18, 2019 17:26
Bird's Eye Chili Spice Mix
  • 4 tsp. Bird's Eye chillies, toasted in a dry pan
  • 4 tsp. Dried oregano
  • 4 tsp. onion powder
  • 4 tsp. garlic powder
  • 4 tsp. sweet paprika
  • 2 tsp. cumin
  • 2 tsp. salt
alert(1)

es570

Effort to reverse-engineer an unknown EgisTech/LighTuning fingerprint sensor

Message format

Request

E G I S CMD A B
@nucular
nucular / roastatoes.md
Last active September 13, 2018 19:59
The ultimate oven roasted potatoes

Rosemary Roast Potatoes with Onions and Ham

Ingredients

  • 2 kg potatoes
  • 3 medium-sized onions
  • 2 cloves of garlic
  • 200g diced ham
  • 1 cup of olive/vegetable oil (I like equal parts)
  • 1 tbsp oregano
  • 1 tbsp estragon
@nucular
nucular / chili.md
Last active September 25, 2021 13:31
The best damn chili con carne

Chili con carne

Serves a whole lotta people.

Ingredients

Note: We're talking heaped spoons here, none of that weak shit

  • Meats
    • 2 kg ground meat half/half maybe beef idk
  • 1L of beef stock
@nucular
nucular / _
Last active September 24, 2017 01:32
-Osuperfast
export CFLAGS=""\
"-march=native -Ofast"\
"-fmerge-all-constants"\
"-fmodulo-sched -fmodulo-sched-allow-regmoves"\
"-fgcse-sm -fgcse-las -fgcse-after-reload"\
"-funsafe-loop-optimizations"\
"-fdevirtualize-speculatively -fdevirtualize-at-ltrans"\
"-fipa-pta"\
"-ftree-loop-if-convert-stores -ftree-loop-distribution -ftree-loop-im"\
"-ftree-parallelize-loops=$(nproc)"\
@nucular
nucular / fixwacom.bat
Created December 16, 2016 22:46
Batch file to fix your Wacom driver after it broke again
@echo off
:checkPrivileges
echo Checking for privileges
net file 1>nul 2>nul
if '%errorlevel%' == '0' (
goto gotPrivileges
) else (
echo Requesting privileges (script will execute in new window)
powershell "saps -filepath %0 -verb runas" >nul 2>&1
@nucular
nucular / lzss.py
Created October 5, 2016 16:43
Implementation of the Lempel–Ziv–Storer–Szymanski algorithm in Python
"""
Implementation of the Lempel–Ziv–Storer–Szymanski algorithm, ported from the
C implementation by Haruhiko Okumura
https://oku.edu.mie-u.ac.jp/~okumura/compression/lzss.c
Public Domain
"""
class LZSSBase(object):
def __init__(self, infile, outfile, EI=11, EJ=4, P=1, N=0, F=0, rless=0, init_chr=b' '):
self.infile = infile
@nucular
nucular / inmake.c
Last active June 25, 2016 18:16
Inmake, rewritten in C
// gcc inmake.c -o inmake
// ^ 100% self-hosted
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#define COMMAND_SIZE 255