This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Troy Denton 2022 | |
# arg 1 is VCD file | |
# arg 2 is output vcd file | |
# arg 3 is percent of file you wish to keep | |
# Usage: ./truncate_vcd.sh lab2.vcd /tmp/lab2_out.vcd 5 | |
# this will write 5% of the vcd to /tmp/lab2_out.vcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use ESL::Dispatch; | |
# take in number range as individual args | |
# e.g. | |
# perl test_range.pl 2042223000-3999 will test a range of 1000 numbers | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# helper script that i use to peruse git changes from upstream | |
# note - git diff pager should always page even if its less than a screenful | |
# e.g. git config --global core.pager 'less c-+F' | |
GIT_OUTPUT=$(git pull) | |
COMMITRANGE=$(sed -ne 's/^Updating //p' <<<$GIT_OUTPUT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*M/////////////////////////////////////////////////////////////////////////////////////// | |
// | |
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. | |
// | |
// By downloading, copying, installing or using the software you agree to this license. | |
// If you do not agree to this license, do not download, install, | |
// copy or use the software. | |
// | |
// | |
// License Agreement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import subprocess | |
import signal | |
import logging | |
from range_sensor import RangeSensor | |
from graceful_kill import GracefulKiller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#define disk1 0x50 //Address of 24LC256 eeprom chip | |
void setup(void) | |
{ | |
Serial.begin(9600); | |
Wire.begin(); | |
unsigned int address = 0x3571; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#define disk1 0x50 //Address of 24LC256 eeprom chip | |
void setup(void) | |
{ | |
Serial.begin(9600); | |
Wire.begin(); | |
unsigned int address = 0x3571; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
from enum import Enum | |
f = open(sys.argv[1]) | |
lines = f.readlines() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
f = open(sys.argv[1]) | |
lines = f.readlines() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo /usr/sbin/service bluetooth stop |