Skip to content

Instantly share code, notes, and snippets.

View dermidgen's full-sized avatar
:shipit:
Moving units

Danny Graham dermidgen

:shipit:
Moving units
View GitHub Profile
@dermidgen
dermidgen / srsly.zsh-theme
Created June 3, 2014 16:11
Srsly ZSH Theme
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%m %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}$ '
RPROMPT='%{$reset_color%} %{$fg_bold[green]%}%p %{$fg[grey]%}%~%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}) %{$fg[green]%}✓%{$reset_color%}"
@dermidgen
dermidgen / vmsterm
Created July 2, 2014 00:17
VMS Terminal
#!/bin/sh
# vmsterm
# from an original script by Bob Ess
# key translations by Erik Ahlefeldt
#
# Script file using Xterm and telnet to connect to a VMS host
# and give a decent vt220 emulation.
#
# Usage statement
Usage(){
var MapSymbol = function() {
var canvas = document.createElement("canvas");
var context = canvas.getContext("2d");
canvas.width = width;
canvas.height = height;
context.clearRect(0,0,width,height);
context.save();
context.beginPath();

Keybase proof

I hereby claim:

  • I am dermidgen on github.
  • I am dermidgen (https://keybase.io/dermidgen) on keybase.
  • I have a public key whose fingerprint is 43D8 5C25 5698 A80F 8A3D 516B E006 2AEF 3888 D7AD

To claim this, I am signing this object:

@dermidgen
dermidgen / sama5d4-xplained-ultra.sh
Last active December 7, 2016 06:23
Quick flash latest linux4sam-poky-sama5d4_xplained via sam-ba 2.16
#!/bin/bash
##
# Helper functions
##
pkg_check ()
{
echo "Checking for $1:"
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $1|grep "install ok installed")
@dermidgen
dermidgen / desktop-setup.sh
Created February 1, 2017 00:44
Desktop setup
#!/bin/sh
UPTRACK_KEY=
## First Update
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo apt-get install -y -f \
zsh \
git gitk \
@dermidgen
dermidgen / VIAM-PoC-Notes.md
Last active April 11, 2025 16:08
Raw notes on the VIAM PoC assignment

VIAM Project Notes

Session 1 (the accidental dive in): Monday April 7th, Start 1725 | End 1755

It’s late in the afternoon, family just left & I wanted to be ready for tomorrow. I reviewed the assignment again & figured I’d pop open app.viam.com in preparation for starting the assignment in the morning. Since I’d already played with a rover, I was somewhat familiar with the UI of app.viam.com & generally aware that I could add devices/machines. I figured before I dive in, why not tool around for a hot second. I figured I’d spend a few minutes reacquainting myself with the app to get my juices flowing. 30 minutes later I’d accidentally had too much fun. I added my MacBook, setup my camera, added a model & vision service, trained the model on some samples of “me” and was about to start mucking around with the SDK when I caught myself & realized what I was doing & how far I’d gone. Kinda just outta 2nd nature I took some notes as I was going. I figured since I’d accidentally kinda “started” - I’d track