Skip to content

Instantly share code, notes, and snippets.

@nucular
nucular / logo-black.svg
Created Sep 17, 2019
EarthStrike/Antifa/PhilosophyTube mashup
View logo-black.svg
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
Bird's Eye Chili Spice Mix
View birdseye.md
  • 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
View es570.md

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 Sep 13, 2018
The ultimate oven roasted potatoes
View roastatoes.md

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 Sep 25, 2021
The best damn chili con carne
View chili.md

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 Sep 24, 2017
-Osuperfast
View _
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 Dec 16, 2016
Batch file to fix your Wacom driver after it broke again
View fixwacom.bat
@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 Oct 5, 2016
Implementation of the Lempel–Ziv–Storer–Szymanski algorithm in Python
View lzss.py
"""
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 Jun 25, 2016
Inmake, rewritten in C
View inmake.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