Archive

Creating a Lambda Layer for running PHP on Lambda 02 Jul 2019 in AWS , Lambda , Lambda-Layers , PHP Lambda Layers A lambda layer is a bundle that can be uploaded and used with multiple lambda functions. This method of putting PHP in to a layer is similar to...
Using MicroPython with a WeMos D1 Mini 18 May 2019 in micropython , esp8266 , wemos WeMos D1 Mini The WeMos is a miniature WeMos I purchase mine from AliExpress The WeMos has: 11 digital input/output pins, all pins have interrupt/pwm/I2C/one-wire supported (except D0) 1 analog...
Check if the Commodore64 Joystick is working using BASIC 12 May 2019 in Commodore64 , joystick , CommodoreBASIC , retrocomputing 10 for b=0 to 17 20 read a 30 poke 163+b,a 40 next 50 sys 163 60 data 120,173,0,220,141,32,208,74,74,74,74,41,1,141,33,208,16,239
Macintosh Classic Keyboard Commands 17 Feb 2019 in MacOS , mac68k , macos7 , retrocomputing On Boot Key CombinationEffect mouse downEject removable media ( Boot ROMs prior to 2.4f1 excluded the CD drive ) optBring up OpenFirmware system picker on New World machinesBoot to OS9...
Terraform provider for Libvirt 22 Jan 2019 in kvm , terraform , libvirt Instal mkisofs for building the cloud-init ISO file(s). apt-get install -y mkisofs Install Terraform cd /usr/src wget https://releases.hashicorp.com/terraform/0.11.3/terraform_0.11.3_linux_amd64.zip unzip -d /usr/bin/ terraform_0.11.3_linux_amd64.zip chmod 0755 /usr/bin/terraform Install Terraform Libvirt Provider https://github.com/dmacvicar/terraform-provider-libvirt...
KVM MAC Address Generator 19 Jan 2019 in kvm This MAC address range is used by KVM. The MAC addresses generated are time based, so every MAC will be unique based on the second it was generated. To generate...
Apple IIe Card for the Macintosh 18 Jan 2019 in Macintosh , Mac68k , AppleIIe , retrocomputing Choosing the Macintosh LC475 24-bit Processing The Apple IIe card requires a Macintosh with a PDS slot and support 24-bit memory addressing.(From System 7.6 onwards, Macintosh system software does not...
Azure blob storage static website 06 Jan 2019 in static-website , azure , jekyll Setup Azure Blob Storage https://azure.microsoft.com/en-us/ ## Login az login az account list SUBSCRIPTION_ID="e048164e-3eb6-413c-bfbc-3d6b8527f5c4" az account set -s $SUBSCRIPTION_ID ## Create a resource group az group create -n www-gestalts-net -l eastus...
Setup SCSI2SD as the disk drive for a 68k Mac 05 Jan 2019 in scsi2sd , bmow-floppy-emu , macos7 , mac68k , retrocomputing Purchase a SCSI2SD v5.1 is recommended for 68k Macintoshes. v6 is recommended for PowerMacintoshes. The CodeSrc website offers a list of official vendors Interial Computing is the vendor in the...
Amazon Lambda HTTP Basic Auth using ClaudiaJS 21 Oct 2018 in lambda , claudiajs var ApiBuilder = require('claudia-api-builder'), api = module.exports = new ApiBuilder(), renderPage = function (body) { 'use strict'; return body; }; const authUser = 'user', authPass = 'pass', authString = 'Basic...
Espruino and the Wii Nunchuck 14 Oct 2018 in espruino , esp8266 , nodemcu , rgb123 , wii Espruino project demonstrates the Wii Nunchuck and the RGB123 LED Matrix Back in 2013 the Espruino project demonstrated building a simple pong system using an RGB123 LED Matrix and a...
Connecting MicroPython to AWS IoT using Mosquitto MQTT Relay 13 Oct 2018 in micropython , esp8266 , nodemcu , aws-iot , mqtt , mosquitto Create an IAM policy for the bridge to connect to the IoT Endpoint aws iot create-policy \ --policy-name bridge \ --policy-document '{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Action": "iot:*","Resource": "*"}]}' { "policyName": "bridge",...
Service Mesh with Consul 04 Oct 2018 in consul , servicemesh , devops , docker Service Mesh A Service Mesh is a modern, cloud friendly, method of coupling services together. A Service Mesh seeks to accomplish the goals of: Service Discovery Service Configuration Service Segmentation...
Deprecated Linux networking commands and their replacements 01 Oct 2018 in Linux , Networking old and bustednew hotness ifconfig ip route ip r iwconfig iw ifconnetstatfigss arp ip n
MicroPython on NodeMCU with Button and LED 20 Sep 2018 in micropython , esp8266 , nodemcu Pins I am using the same NodeMCU board to test the DHT11 sensor as well. The button, DHT11, and LED each have a data pin. The ground is common amongst...
Connecting MicroPython to AWS IoT using MQTT 20 Sep 2018 in micropython , esp8266 , nodemcu , aws-iot , mqtt Custom IoT Endpoint https://console.aws.amazon.com/iot/home?region=us-east-1#/settings a1r7veuwhj9ahn.iot.us-east-1.amazonaws.com Connecting the MicroPython device to the AWS IoT Endpoint using MQTT Connecting the MicroPython device to the AWS IoT Endpoint through an MQTT Mosquitto relay...
PuppetServer 6 - a meta "We work with containers too!" release 18 Sep 2018 in puppet , docker Pupperware Puppet has decided to release their latest server as a Docker image, something they are calling Pupperware. sigh. That’s right, not Pupp-ET-ware. Pupp-ER-ware. The problem with Pupperware is that...
Using ampy for transferring files with MicroPython 11 Sep 2018 in micropython , esp8266 , nodemcu ampy (Adafruit MicroPython tool) Normally the connection to MicroPython is done using the serial connection. Ampy is a simple little tool for transferring files to, or from, MicroPython. Ampy can...
Install MacOS 9.2.2 on a qemu-based PowerPC VM 10 Sep 2018 in MacOS , qemu , macppc , retrocomputing Get a copy of MacOS 9.2.2 MacOS 9.2.2 was the last released version of MacOS Classic The macos-922-uni.iso ISO can be downloaded from MacintoshRepository.org Store the ISO in /var/lib/libvirt/iso/ Install...
Install Libvirt/KVM on Ubuntu 18.04 LTS and setup a bridge (br0) using NetPlan 10 Sep 2018 in ubuntu , ubuntu1804lts , netplan , kvm , linux , virsh , qemu , libvirt Install Libvirt/KVM/Qemu/Virt-Manager apt-get install -y qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager Add your user to the libvirt and libvirt-qemu groups so you can connect to libvirt using virt-manager without being root...
Using MicroPython on a NodeMCU as a MQTT publisher 09 Sep 2018 in micropython , esp8266 , nodemcu Scenario We will be setting up The Mosquitto MQTT Broker running inside a Docker conatiner on a laptop. MicroPython on a NodeMCU to send data to the Mosquitto MQTT Broker...
Using the DHT11 Temperature Sensor with MicroPython on a NodeMCU 30 Aug 2018 in micropython , esp8266 , nodemcu DHT11 Temperature Sensor Connect the VCC pin to a 3.3v power pin Connect the GND pin to a GND pin. Connect the Data pin to pin D4. There is a...
Connecting the MicroPython-powered NodeMCU to WiFi 30 Aug 2018 in micropython , esp8266 , nodemcu Connect the NodeMCU to a Wireless Network import network ## ## STA allows the esp8266 to act as a wireless client. ## AP allows the esp8266 to act as a...
Using MicroPython with a NodeMCU 29 Aug 2018 in micropython , esp8266 , nodemcu Download MicroPython firmware Download the firmware from http://micropython.org/download#esp8266 wget http://micropython.org/resources/firmware/esp8266-20180511-v1.9.4.bin Install esptool for flashing the NodeMCU pip install esptool Flash the MicroPython firmware to the NodeMCU Start the NodeMCU in...
Restoring an Apple IIe Platinum 14 Aug 2018 in AppleII , AppleIIe , retrocomputing The Apple IIe Platinum purchased from Kemner Surplus I recently purchased an Apple IIe off eBay from a Goodwill. I didn't really mean to buy the Apple IIe, I just...
Applesoft BASIC Low Resolution Graphics 12 Aug 2018 in AppleII , AppleIIe , AppleSoftBASIC , retrocomputing 10 GR : HOME 20 COLOR=5 30 HLIN 0,39 AT 0 40 HLIN 0,39 AT 39 50 VLIN 0,39 AT 0 60 VLIN 0,39 AT 39 100 FOR Y=0 TO...
Applesoft BASIC High Resolution Graphics 12 Aug 2018 in AppleII , AppleIIe , AppleSoftBASIC , retrocomputing High Resolution (HiRes) graphics mode colors 0: black 1: green 2: magenta 3: white 4: black 5: red 6: blue 7: white High Resolution (HiRes) graphics mode BASIC commands HGR...
And then I bought an Apple IIe off eBay 12 Aug 2018 in AppleII , AppleIIe , retrocomputing WHAT have I done? Somehow I was just casually browsing through Apple II's on eBay and before I knew it I had purchased an Apple IIe!        ...
Using Traefik with Consul 02 Jul 2018 in traefik , consul , reverse-proxy , docker , devops , ServiceMesh Consul Key/Value Store and Service Catalog Consul has two functions built in to it: a Key/Value store and a Service Catalog The Key/Value store is useful for defining variables to...
Using Traefik with a Docker Backend to proxy to Jenkins 01 Jul 2018 in traefik , jenkins , docker , reverse-proxy , devops This is a simple configuration of Traefik that would only be used in a very niche case where the Traefik service and the Docker service were run on the same...
Using Fabio, the zero-configuration load-balancer 30 Jun 2018 in fabio , docker , consul , reverse-proxy , devops Consul Fabio uses the Consul Service Catalog to dynamically create routes to backend services. Fabio determines the routes based on the tags Start Consul Using docker containers so we can...
A quine written in Go 28 May 2018 in golang quine.go Below we use printf to print the value of me, which is the program, the quotes with 0x60. %s is the uninterpreted bytes of the string. %c is the...
Check if the AppleII Joystick is working using AppleSoft Basic 12 May 2018 in appleii , joystick , AppleSoftBASIC , retrocomputing Apple II Joystick, aka Paddles Although we call them Joysticks, back in the 70’s they were called paddles. Accessing the Analog Joystick direction The paddle data can be accessed from...
Using the DHT11 Temperature Sensor with Espruino on a NodeMCU 28 Apr 2018 in espruino , esp8266 , nodemcu DHT11 Temperature Sensor There is a DHT11 module available for use Require the module using the Web IDE to download and install it. Set which data pin on the NodeMCU...
Using Espruino with a NodeMCU 28 Apr 2018 in espruino , esp8266 , nodemcu Download espruino firmware and install esptool for flashing the NodeMCU wget https://www.espruino.com/files/espruino_1v97.zip mkdir espruino_1v97 cd espruino_1v97 cd espruino_1v97_esp8266 pip install esptool Flash the Epsruino firmware to the NodeMCU Start the...
Connecting the Espruino-powered NodeMCU to WiFi 28 Apr 2018 in espruino , esp8266 , nodemcu Connect to the WiFi network Ensure that the wifi.save() command is run so that the NodeMCU will reconnect to the WiFi after next startup. var ssid = 'xxxxxxxxx'; var password...
Comparison of s3_website and ScottyJS 08 Mar 2018 in aws , devops , static-website Jeff Barr Tweets about ScottyJS Jeff Barr, the AWS Blog Guy, recently tweeted about ScottyJS citing it as a method for uploading static sites to AWS for hosting using S3...
Go as the ultimate PCI Compliant Language 27 Feb 2018 in golang , devops , pci When I first began working with Docker I had one thought in mind: How do I get my PCI auditor to certify this? On the surface it seems like a...
Remove Apple IIGS Battery 24 Feb 2018 in AppleIIgs The first thing you do when you get a new (old) Apple IIgs is remove the battery The Apple IIgs Lithium battery can begin to leak any time after 10...
Apple IIGS RAM Upgrade 19 Feb 2018 in AppleIIgs There are several modern RAM options available. There are two makers of RAM upgrades that I know of: gglabs and ByteBoosters You can usually find the 4MB modules easily, but...
Install DOS3.3 FST on GS/OS 19 Feb 2018 in AppleIIgs , GSOS , DOS33 DOS3.3.FST The DOS3.3 is an optional FST which is not installed by default. The DOS3.3 FST allows GS/OS apps to read Apple II DOS 3.3 disks. Unfortunatey the DOS 3.3...
Apple II DOS and ProDOS Commands 15 Feb 2018 in AppleII , AppleIIgs Commands CommandDescription CATALOGShows a directory listing. (On ProDOS you can also use CAT) LOAD filenameLoads a Applesoft BASIC program. SAVE filenameSaves a Applesoft BASIC program. RUN filenameLoads and runs a...
Slot purposes on Apple II computers 15 Feb 2018 in AppleII , AppleIIgs Apple II computers come with 7 expansion slots built into the motherboard. When the Apple II boots, it scans the slots for bootable devices from the highest-numbered slots downward (7→1)....
Apple IIGS SCART to HDMI adapter 13 Feb 2018 in AppleIIgs The SCART to HDMI adapter is made by CiBest and can be purchased from Amazon The CiBest SCART to HDMI Converter was $36.99 when I purchased it, making it easily...
Apple IIGS Keyboard tricks 13 Feb 2018 in AppleIIgs Keysfunction Ctrl-OA-ResetReboot Ctrl-Shift-OA-ResetReboot and re-load BRAM (ROM 03) Ctrl-OA-OPT-ResetSystem test (OA-OPT to repeat) Option while power-onMenu to Reset standards Ctrl-OPT-ResetReboot and give menu Ctrl-OA-ESCGo to control panel Ctrl-OA-Shift-ESCMore direct to...
Compiling PHP for use on Lambda 01 Feb 2018 in AWS , Lambda , PHP Lambda Docker Containers AWS Lambda is powered by Docker containers. If you provide a script, Lambda will download the script and execute it within a Docker container. If you provide...
Run flannel on Raspberry Pi 02 Jan 2018 in flannel , etcd , raspberrypi , devops , kubernetes The udp backend from Flannel version 0.5.0 will work on Raspberry pi. The udp backend from Flannel version 0.10.0 will NOT work on Raspberry pi. The vxlan backend from Flannel...
Download Kubernetes for use on Raspberry Pi 02 Jan 2018 in kubernetes , golang , raspberrypi The kubernetes repository comes with a shell script for downloading the binaries: get-kube-binaries.sh The arm binaries are built for armv5 and are compatible with the Raspberry Pi. The little snippet...
Disable Power management on the Raspberry Pi 02 Jan 2018 in raspberrypi , raspbian echo "options 8192cu rtw_power_mgnt=0" >> /etc/modprobe.d/8192cu.conf
Install flannel on Raspberry Pi for use with Docker and Kubernetes 02 Jan 2018 in flannel , golang , raspberrypi , kubernetes , devops Download Flannel and zip up FLANNEL_VERSION="v0.10.0" wget -o flannel-${FLANNEL_VERSION}-linux-arm.tar.gz https://github.com/coreos/flannel/releases/download/${FLANNEL_VERSION}/flannel-${FLANNEL_VERSION}-linux-arm.tar.gz mkdir -p opt/flannel tar zxf flannel-${FLANNEL_VERSION}-linux-arm.tar.gz -C opt/flannel rm opt/flannel/README.md zip -9r flannel-${FLANNEL_VERSION}-linux-arm.zip opt sudo su - cd / unzip...
Compile etcd for use on Raspberry Pi 02 Jan 2018 in etcd , golang , raspberrypi , kubernetes , devops The most powerful feature of go, in my opinion, is the ability to cross-compile for other platforms. All Raspberry Pis are compatible with armv6, so we will use those settings....
Installing Docker on Raspbian 01 Jan 2018 in raspbian , raspberrypi , docker Raspbian is merely just a distribution of Debian Stretch, so you can use the Debian Stretch sources. The important information is that the Raspberry Pi is a armhf architecture hardware,...
A quick evaluation of Cloud9 01 Dec 2017 in aws , cloud9 I played around with the Cloud9 Editor. It’s based on the same opensource engine as Sublime and Notepad++. The big gotcha is that it isn’t a fat client, it’s browser-based....
Single command binary compilation for NodeJS 29 Apr 2017 in aws , devops , static-website Install pkg npm install -g pkg Create a package.json with the pkg definition in it { "name": "myApp", "bin": "myApp.js" } Use pkg to create the binary pkg .
Common resistor values for LEDs 24 Jan 2016 in led , resistor , circuits If you are messing around with LED’s and development boards, like the Raspberry Pi or NodeMCU, then a good rule of thumb is to use a 220 ohm resistor. The...
Rancher Server v1 25 Nov 2015 in rancher , rancher1 , docker Rancher provides some very intriguing features: A docker image repository The ability to add target hosts running the Rancher agent. Secrets storage The v1 Rancher server is effectively an all-in-one...
RancherOS 25 Nov 2015 in rancher , rancheros , docker I first heard about Rancher back in November 2015. I figured I would give RancherOS another look and see how it’s doing. RancherOS has an intreguing concept: A base OS...
Typing " displays as @ on Raspbian 19 May 2015 in raspbian , raspberrypi By default the keyboard layout on Raspbian is set to the UK (GB). To allow your USA keyboard to work correctly, change the keyboard layout to US. Change the Locale...
Configure Wireless Networks on Raspbian 19 May 2015 in raspbian , raspberrypi Add wlan0 to /etc/network/interfaces auto wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf List available WiFi Networks iwlist wlan0 scan Add the network details to wpa-supplicant FILE : /etc/wpa_supplicant/wpa_supplicant.conf network={ ssid="mynetwork"...
virsh cheat sheet 08 Feb 2012 in Linux , virsh , QEMU , LibVirt , KVM Show VM information Show a list of all the defined VM's: virsh list --all Show a VM's info: virsh dominfo VM_name Start and stop VM's Start a VM: virsh start...
Backup to Amazon S3 with Duplicity 22 Dec 2011 in aws Duplicity creates tar archives encrypted with GPG. Duplicity uses rsync to create the tar archives. Duplicity’s power comes from it’s ability to create backups stored on Amazon S3 Buckets. Install...
Sea Breeze 12 Jun 2011 in Drinks Ingredients 1 1/2 oz vodka 4 oz cranberry juice 1 oz grapefruit juice Directions Pour vodka over ice into highball glass. Add mixers. May be garnished with a wedge of...
Bucyrus Erie 22B Cable Shovel Controls 02 Apr 2011 in Bucyrus-Erie There are many levers and pedals for operating a Bucyrus Erie 22B cable shovel, and none of those control levers are labeled. This is a diagram of the Bucyrus Erie...
Dokapon Kingdom Character Classes 25 Apr 2010 in VideoGames , Wii This chart details the Wii version of Dokapon Kingdom Character Classes and how to achieve them.