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 python3 | |
from amaranth import * | |
from amaranth_boards.ulx3s import ULX3S_12F_Platform as ulx3s_tgt | |
class LEDBlinker(Elaboratable): | |
""" | |
LED Blinker reference code pulled directly from the Amaranth reference implemenetation | |
https://amaranth-lang.org/docs/amaranth/latest/start.html#a-blinking-led |
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
# When notepad++ is available, use it | |
function npp() { | |
export IFS=$'\n' | |
NOTEPADPP_EXE='/c/Program Files/Notepad++/notepad++.exe' | |
if [[ -e "${NOTEPADPP_EXE}" ]]; then | |
echo 'notepad++.exe '$*' &' | |
"${NOTEPADPP_EXE}" $* & | |
return 0 | |
else | |
echo "notepad++ not found." |
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 | |
echo "=====" | |
echo "== Test #1" | |
echo "== Working in bash 4, broken in bash 5" | |
echo "=====" | |
# Test Case 1 | |
startTime=$(date +"%s") | |
recheckSleepTime=0.2 |
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 python3 | |
import click | |
from random import randint | |
from random import random | |
#################################################### | |
##### Example Execution | |
# $ pip3 install click | |
# $ chmod +x ./obfuscate.py |
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
set-option -g mouse on | |
set-window-option -g mode-keys vi | |
bind r source-file ~/.tmux.conf \; display "reloaded ~/.tmux.conf" | |
bind \" split-window -v -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}" | |
#set -g @ttm-window-mode vertical |
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 python3 | |
################################################################################ | |
# Define the prefered plotting defaults. | |
# These generally translate to how I want stuff to show up in IEEE papers. | |
# Note that when I do my debugging, I override figure.figsize in my testing | |
# enviornment. | |
################################################################################ | |
import matplotlib | |
import matplotlib.font_manager as FM |
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
set(groot,'defaultAxesFontName','Proxima Nova Rg'); | |
set(groot,'defaultPolaraxesFontName','Proxima Nova Rg'); | |
set(groot,'defaultLegendFontName','Proxima Nova Rg'); | |
set(groot,'defaultTextFontName','Proxima Nova Rg'); | |
set(groot,'defaultTextarrowshapeFontName','Proxima Nova Rg'); | |
set(groot,'defaultTextboxshapeFontName','Proxima Nova Rg'); | |
set(groot,'defaultLegendBox','off') | |
%set(groot,'defaultLegendLocation','best') |
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/csh | |
# Override default login C shell to use bash, unless we explicitly call | |
# the shell. This allows it to be used if truly desired. | |
if ($SHELL != "/bin/bash") then | |
if ($?prompt) then | |
setenv SHELL /bin/bash | |
exec $SHELL | |
endif | |
exit | |
endif |
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 | |
# waitdone | |
############################################################################### | |
# A simple bash script to sleep until another process is done. This is handy | |
# if you have an executable running in another tab/session/etc and want to | |
# automatically run a dependent command when the first finishes, or if you | |
# want to queue up another command that will make use of the same system | |
# resources being locked by the currently executing process. | |
############################################################################### | |
# VERSION HISTORY |
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
diff -rupN Makefile.ffmpeg Makefile.ffmpeg | |
--- Makefile.ffmpeg 2012-12-12 23:20:04.000000000 -0800 | |
+++ Makefile.ffmpeg 2012-12-12 23:22:48.000000000 -0800 | |
@@ -8,11 +8,11 @@ all: checkout configure compile | |
copy: | |
find ffmpeg -name '*.so*' -exec cp {} . \; | |
- $(HOST)-strip *.so* | |
+ strip *.so* | |
NewerOlder