Skip to content

Instantly share code, notes, and snippets.

View slashinfty's full-sized avatar

Matt Braddock slashinfty

View GitHub Profile

Verify boot mode if UEFI

ls /sys/firmware/efi/efivars

Check for network connectivity

ip link
ping archlinux.org
@slashinfty
slashinfty / Meet_Attendance.md
Last active February 26, 2024 04:32
How to easily take attendance from Google Meets

Google Meet Attendance Made Easier

How are most things made easier? Usually by doing some work ahead of time.

Google Sheets

First thing to do is to have a spreadsheet for attendance. I suggest making a copy of this spreadsheet.

You need to get a list of your students. The easiest way to do this is to go into Canvas gradebook, and select Actions -> Export. It will download a .csv file. In your Google Sheet, select File -> Import, then Upload, and select the file from Canvas. In the resulting dialog, change the first option (Import Location) to Insert New Sheet(s).

In order to get names alphabetized within sections, we have to do a bit of work. Delete the first two rows (they are unnecessary headers) and create a column to the right of student names (names should be in the A column, and the B column should be blank). First, sort by the A column (names), then sort by the F column (sect

@slashinfty
slashinfty / .bash_stimer_alias
Last active July 9, 2023 15:55 — forked from lillesvin/shplit.sh
Command line split timer - set up as an alias to easily run - removed text pipe option due to poor performance with obs
#!/bin/bash
alias stimer='shplit'
function shplit() {
FORMAT="%s.%2N"
STARTTIME=$(date +${FORMAT})
function format_duration {
printf "%.2f" $1
}
// total width (in mm) of the box
boxWidth = 50;
// total length (in mm) of the box
boxLength = 80;
// total height (in mm) of the box
boxHeight = 30;
// total thickness (in mm) of the walls
@slashinfty
slashinfty / InputPianoRoll.lua
Last active April 13, 2023 10:58
Create a "piano roll" of inputs on BizHawk screen to right of GB game
local ScriptInfo = {"Input Piano Roll","by dadinfinitum","v0.2","28th Jul 2019",}
local inputobj = {[0]="Up","Down","Left","Right","Start","Select","B","A"}
local display = {Up="U",Down="D",Left="L",Right="R",Start="S",Select="s",B="B",A="A"}
function text(x,y,text,color)
gui.drawText(x,y,text,color,0x00000000,9,"Arial")
end

A quick way to identify what to input for hotkeys.

  • Create hotkeys.js
  • Input the following:
const readline = require('node:readline');
const readlinePromises = require('node:readline/promises');

const rl = readlinePromises.createInterface({
@slashinfty
slashinfty / voltmeter.ino
Last active April 3, 2022 21:23
Voltmeter
// Grove_4Digital_Display library
#include <TM1637.h>
int VREAD = 0;
int CLK = 8;
int DIO = 7;
float vout = 0.0;
float vin = 0.0;
float R1 = 100000.0;

Objective(s)

  • Create diagrams using a straightedge
  • Use a compass to construct a circle

Required materials: compass, straightedge, patty paper


Warm Up

@slashinfty
slashinfty / counter.ino
Created January 9, 2022 02:28
Simple dual counter
#include <TM1637.h>
// pins
int leftPin = 2;
int rightPin = 5;
int resetPin = 8;
// display
int clk = 11;
int dio = 12;
@slashinfty
slashinfty / README.md
Last active September 5, 2021 20:25
How to interact with Mr. Braddock's Canvas Bot on Twitter

Mr. Braddock's Canvas Bot

The bot (@braddock_canvas) does two things:

  • Tweets out new announcements
  • Replies to users with upcoming assignments

To get upcoming assignments, you must tag the bot and include two things: the course and the type of assignment. Note: options are not case sensitive.

Options for courses include: