Skip to content

Instantly share code, notes, and snippets.

View teknoman117's full-sized avatar

Nathan Lewis teknoman117

View GitHub Profile
@teknoman117
teknoman117 / 286.ino
Created January 22, 2022 23:16
Pokes the bus of a Harris static core 80C286
/*
* Copyright (c) 2021 Nathaniel R. Lewis <github@nrlewis.dev>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
/*
* Copyright (c) 2021 Nathaniel R. Lewis <github@nrlewis.dev>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
#!/usr/bin/env python3
import os
import argparse
import sys
from migen import *
from litex.build.generic_platform import *
from litex.build.xilinx import XilinxPlatform
From 33aef4de81ec656027b94bed0ba47bee56b750d0 Mon Sep 17 00:00:00 2001
From: "Nathaniel R. Lewis" <linux.robotdude@gmail.com>
Date: Wed, 21 Mar 2018 12:42:09 -0700
Subject: [PATCH] test generic c implementation
---
module/icp/algs/aes/aes_impl.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/module/icp/algs/aes/aes_impl.c b/module/icp/algs/aes/aes_impl.c
@teknoman117
teknoman117 / PKGBUILD
Last active August 8, 2017 05:17
prototype lib32 version of the SDL2 build script
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: J0k3r <moebius282 at gmail dot com>
# Contributor: Teknoman117 <linux dot robotdude at gmail dot com>
pkgname=lib32-sdl2-hg
pkgver=2.0.5.r640.0d399e95168b
pkgrel=1
pkgdesc="A library for portable low-level access to video, audio and input (Version 2, 32 bit, development version)"
arch=('x86_64')
url="http://www.libsdl.org"
DEBUG: Running installation step: auto
DEBUG: dialog.subr: DEBUG_SELF_INITIALIZE=[]
DEBUG: UNAME_S=[FreeBSD] UNAME_P=[amd64] UNAME_R=[11.0-RELEASE-p1]
DEBUG: common.subr: Successfully loaded.
DEBUG: f_include: file=[/usr/share/bsdconfig/dialog.subr]
DEBUG: dialog.subr: loading includes...
DEBUG: f_include: file=[/usr/share/bsdconfig/strings.subr]
DEBUG: strings.subr: Successfully loaded.
DEBUG: f_include: file=[/usr/share/bsdconfig/variable.subr]
DEBUG: variable.subr: loading includes...
@teknoman117
teknoman117 / c_vector_example.c
Last active September 29, 2016 04:44
example of the c object oriented pattern
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <assert.h>
#include <string.h>
struct c_vector
{
size_t element_size;
size_t size;
@teknoman117
teknoman117 / keybase.md
Created June 16, 2016 06:47
keybase.md

Keybase proof

I hereby claim:

  • I am Teknoman117 on github.
  • I am teknoman117 (https://keybase.io/teknoman117) on keybase.
  • I have a public key whose fingerprint is D612 AB78 6B4D A6A8 29D0 6480 9F90 ACB0 6EA5 F17F

To claim this, I am signing this object:

# Symlink the IMU to /dev/kybernetes/imu
#SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A600JSSV", SYMLINK+="kybernetes/imu", MODE="0666"
# Symlink the GPS to /dev/kybernetes/gps
SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="kybernetes/gps", MODE="0666"
# Symlink the motion control Arduino to /dev/kybernetes/motion_controller
SUBSYSTEMS=="usb", KERNEL=="ttyACM[0-3]*", ATTRS{idVendor}=="2341", ATTRS{serial}=="649323439383519090B1", SYMLINK+="kybernetes/motion_controller", MODE="0666"
# Symlink the sensor control Arduino to /dev/kybernetes/sensor_controller
#ifndef __LINKEDLIST__
#define __LINKEDLIST__
#include <iostream>
struct LinkedList
{
struct Link
{
void* data;