Skip to content

Instantly share code, notes, and snippets.

@nathansizemore
nathansizemore / usb-bulk-driver.c
Created March 8, 2023 03:22
USB Bulk Gadget Driver
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - 2016 Samsung Electronics
* Krzysztof Opasiak <[email protected]>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
@nathansizemore
nathansizemore / fn-example.rs
Created November 16, 2022 04:42
libtabellarius function example
// Copyright 2022 Nathan Sizemore <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
extern crate libtabellarius;
#[macro_use]
extern crate log;
extern crate uuid;

Bad Ass Gumbo

Shit You Need

  • Flour
  • High temp oil (avocado/grape seed)
  • Yellow onion
  • Red bell pepper
  • Celery
  • Garlic
@nathansizemore
nathansizemore / certs-gen.sh
Last active September 24, 2022 21:26
OpenSSL - RSA - Client and Server Chains Generation
#!/bin/sh
set -xe
openssl req -nodes \
-x509 \
-days 3650 \
-newkey rsa:4096 \
-keyout ca.key \
-out ca.cert \
@nathansizemore
nathansizemore / main.rs
Created July 28, 2019 16:26
Rust - Win32 Window Example
// Copyright 2019 Nathan Sizemore <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.
extern crate winapi;
use std::ffi::OsStr;
use std::iter::once;
@nathansizemore
nathansizemore / thunderdome-mk.md
Last active May 3, 2019 01:21
Thunderdome - Mortal Kombat

Thunderdome - Mortal Kombat 11

Presented by [New Challenger][nch-discord]


General

Thunderdome is a weekly FT-10 (First To 10) competition hosted by [New Challenger][nch-discord]. The winner of the set is crowned and receives

@nathansizemore
nathansizemore / html5-template.html
Last active October 11, 2019 13:10
html5 template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="author" content="[email protected]">
@nathansizemore
nathansizemore / injustice.2.db.js
Last active December 26, 2017 15:45
Injustice 2 frame data
var frameData = [
{
"name":"Aquaman",
"strength":1700,
"ability":1600,
"defense":1500,
"hp":1050,
"basicAttacks":[
{
"name":"Flounder Fist",
@nathansizemore
nathansizemore / socket.rs
Created November 16, 2016 21:00
Rust wrapper for a raw Linux socket
// Copyright 2016 Nathan Sizemore <[email protected]>
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
// with this file, you can obtain one at http://mozilla.org/MPL/2.0/.
use std::io::{self, Error, ErrorKind, Read, Write};
use std::os::unix::io::{AsRawFd, RawFd};
@nathansizemore
nathansizemore / gcc-install.sh
Last active June 13, 2024 12:17
Customizable GNU Toolchain install script
#! /bin/bash
BINUTILS_VERSION=binutils-2.28
GCC_VERSION=gcc-7.1.0
LIBC_VERSION=glibc-2.24
MPFR_VERSION=mpfr-3.1.5
GMP_VERSION=gmp-6.1.2
MPC_VERSION=mpc-1.0.3
ISL_VERSION=isl-0.16.1
CLOOG_VERSION=cloog-0.18.1