Skip to content

Instantly share code, notes, and snippets.

View caitlynrw's full-sized avatar

Caitlyn Williams caitlynrw

View GitHub Profile
@caitlynrw
caitlynrw / pic18fmpasm.sty
Created December 9, 2023 03:43
MPASM PIC18F Assembly language definition for the LaTeX listings package.
% PIC18F assembly using MPASM language highlighting for LaTeX 'listings' package
\ProvidesPackage{pic18fmpasm}
\RequirePackage{listings}
\lstdefinelanguage[pic18f]{Assembler}{%
% so listings can detect directives and register names
alsoletter={.,\#},
% strings, characters, and comments
@caitlynrw
caitlynrw / mipsxc.sty
Last active December 9, 2023 00:32 — forked from walkie/mips.sty
XC32 MIPS Assembly language definition for the LaTeX listings package.
% MIPS Assembly language definition for the LaTeX `listings' package
%
% The list of instructions and directives are those understood by the
% MARS MIPS Simulator [http://courses.missouristate.edu/KenVollmar/MARS/]
% Also includes fixes for Microchip's XC32 GCC compiler
%
% Author: Eric Walkingshaw <eric@walkingshaw.net>
%
% This code is in the public domain.
%
@caitlynrw
caitlynrw / interrupts.inc
Last active May 13, 2023 12:57
ENGR2721 Practical 5
interrupt_init:
movlw b'11100000' ; Enable global, enable periferal, enable t0
movwf INTCON
movlw b'00000000' ; Set INT1 to falling edge
movwf INTCON2
movlw b'00001000' ; Enable INT1
movwf INTCON3
movlw b'00000001' ; t1 overflow
movwf PIR1
;; dont need to configure PIR2
@caitlynrw
caitlynrw / Dockerfile
Last active January 13, 2023 08:43
Working Kali Linux Docker container
FROM kalilinux/kali-rolling:latest
RUN echo "*** install packages *** " && apt update && apt upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt install kali-linux-default kali-desktop-xfce xorgxrdp xrdp -y \
&& useradd -d /home/kali -m -s /bin/bash kali && /bin/echo -e "kali\nkali\n" | passwd kali \
&& echo 'kali ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN echo "*** cleanup & patch ***" && \
rm -f /usr/share/xfce4/panel/plugins/power-manager-plugin.desktop && apt clean \
&& wget https://gist.githubusercontent.com/DarkMagicSource/28c34acb64799955a68906875a534e76/raw/1822c954966e5999bbf5d02b31699dd6fb6a6c56/entry -O /entry \
@caitlynrw
caitlynrw / utm.md
Created August 2, 2022 07:46
Instructions for using UTM & Cisco images for ENGR1762

ENGR1762 UTM VM Images

People with an M1/M2 Mac have probably realized you can't use VirtualBox for x86_64 images like Cisco Intends.

How to make & use the images

  1. Download & install UTM for Mac.
    If you use Homebrew you can install it with brew install --cask utm
  2. Download both images as .ova files from Cisco
  3. Extract the .ova files with the commands
@caitlynrw
caitlynrw / Rick.ino
Last active November 13, 2018 16:40
Arduino file to buzz Never Gonna' Give You Up.
// Notes: C 0 to E-flat 8
#define C0 16.35 // C 0
#define Db0 17.32 // D-flat 0
#define D0 18.35 // D 0
#define Eb0 19.45 // E-flat 0
#define E0 20.60 // E 0
#define F0 21.83 // F 0
#define Gb0 23.12 // G-flat 0
#define G0 24.50 // G 0
#define Ab0 25.96 // A-flat 0