Skip to content

Instantly share code, notes, and snippets.

View nmelnick's full-sized avatar

Nick Melnick nmelnick

View GitHub Profile
@nmelnick
nmelnick / kubectl_update.sh
Created February 17, 2022 20:56
Simple kubectl declarative version updater
#!/bin/bash
# Updates kubectl in the ~/bin directory. Provide a base version number, like
# "1.20", and this will find the latest patch release, download it, verify the
# hash, and overwrite the kubectl in ~/bin.
# Usage: update_kubectl <base version number>
update_kubectl() {
if [[ $# -eq 0 ]]; then
echo 'Missing base version, such as "1.20".'
else
@nmelnick
nmelnick / B128_USB.ino
Created November 27, 2020 20:56
Commodore B128 / CBM-II / 610 Keyboard Map for Teensy++ 2.0
/**
* B128 Keyboard Interpreter for Teensy++ 2.0
*
* 2020, Nick Melnick - http://www.nmelnick.com
*
* Based on code from:
* - Toshiba T1000 Keyboard interpreter, 2017, Chad Boughton
* https://www.instructables.com/Make-Any-Vintage-Keyboard-Work-With-a-Modern-PC/
* - Teensyduino Core Library, 2013, PJRC.COM, LLC.
* http://www.pjrc.com/teensy/
@nmelnick
nmelnick / elementary-bing-wallpaper.pl
Last active March 14, 2018 02:55
This is a quick and dirty script to change the elementary os wallpaper to the Bing image of the day
#!/usr/bin/env perl
# Sets the current elementary os wallpaper to the Bing image of the day. This
# is similar to Bing wallpaper daemons for Windows, GNOME, and the like. Instead
# of running as a daemon, just add to your crontab. For instance, to run every
# 3 hours, execute `crontab -e` from the command line, and insert:
# 0 */3 * * * /path/to/elementary-bing-wallpaper.pl
#
# This may require the installation of libjson-xs-perl.
# sudo apt install libjson-xs-perl
#