Archive

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 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...
And then I bought an Apple IIe off eBay 12 Aug 2018 in appleii, appleiie 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 01 Jul 2018 in traefik, consul Consul Key/Value Store and Service Catalog Service Catalog The Consul Service Catalog is used as a service discovery tool. The Service Catalog works byt defining a service by name, port,...
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, appleiigs, joystick, applesoftbasic 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 now 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 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...
Compile etcd for use on Raspberry Pi 02 Jan 2018 in etcd, golang, raspberrypi 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 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....
Contribution to the OpenNebula LXD add-on 23 Aug 2017 in opennebula, lxd https://github.com/OpenNebula/addon-lxdone/pull/19/files
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 .
Contribution to cassandra-web 15 Oct 2016 in cassandra, ruby https://github.com/avalanche123/cassandra-web/pull/2/files
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"...
Contribution to phpLDAPadmin 07 Oct 2014 in php https://github.com/leenooks/phpLDAPadmin/pull/13/files
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...
Self heal a server using Monit 16 Jan 2012 in linux, monit Monit will be used to automtically restart a service if it stops This is the kind of service that makes you a miracle worker and makes Windows Systems Administrators jealous....
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...
Installing PeppermintOS in a KVM/LibVirt VM 23 Jul 2011 in kvm, libvirt, linux, qemu PeppermintOS PeppermintOS is inspired by Mint and forked from Lubuntu Peppermint uses the Linux Mint configuration tools and utilities. The desktop experience focuses on web integration. Peppermint is a fork...
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...
No Mouse Pointer on CentOS 5 12 Jun 2011 in centos, centos5, x11, linux There is a bug with numerous NVidia graphics chips that causes the mouse pointer to be invisible in GNOME and GDM when the Hardware Cursor (HWCursor) is enabled. Edit /etc/X11/xorg.conf...
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...
Add TrueType fonts to Ubuntu 15 Sep 2010 in linux, ubuntu If you download TrueType fonts from a site like DaFont you can easily use them with Ubuntu. Here is how to add those TrueType fonts on Ubuntu: Create a hidden...
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.
Easy Web Content Caching with PHP 26 Sep 2009 in php, webcache, linux If you want to pull in content from a Drupal site, like the latest blog entry, to a static page, it’s pretty easy to do with file_get_contents. However, the cost...
Mount a uzip compressed filesystem 21 Aug 2009 in freebsd Many of the FreeBSD appliances use uzip compressed filesystems: pfSense, ocean-miru, FreeNAS, etc. It may be easiest to think of a uzip file as a compressed image of a previously...
Mount UFS filesystem with Linux System Rescue CD 20 Aug 2009 in freebsd, systemrescuecd, ufs, linux Be sure to specify the read-only (-r) flag. ufstype of 44bsd works with 4.2BSD mount -r -t ufs -o ufstype=44bsd /dev/sda5 /mnt/t1
A simple script to block the IP's of brute-force password attacks 17 Aug 2009 in linux, shell, security, bash Scenerio Sometimes servers must expose things like SSH to all originating IP’s. An exposed server will usually be brute-force attacked by malicious people looking for a valid username from which...
Measure Network Bandwidth with iperf 04 Aug 2009 in networking, iperf, commandline, bandwidth Running iperf Start iperf in SERVER mode: iperf -s Start iperf in CLIENT mode: iperf -c server-ip -i2 Start iperf in CLIENT in synchronous mode iperf -c server.ip -d EXAMPLE...
MySQL Error- a packet is bigger than max_allowed_packet bytes 29 Jul 2009 in mysql When bulk importing SQL data via the command line using mysql, the import fails because the data is too large. From the mysql command prompt: set global net_buffer_length=1000000; set global...
Quickly resize digital camera photos from the command line with ImageMagick 28 Jun 2009 in imagemagick Place the photos you want to resize in a folder, for me that was christmas2008. In the folder that contains your images, use find to run the same command on...
access proc and dev filesystems within chroot 06 Dec 2006 in linux When working with a chroot environment, mounted to /mnt/chroot, the real dev and proc filesystems must be mounted via bind to be used in the chroot environment. mount -t proc...
Re-install GRUB 0.9 to the MBR (maste boot record) 13 Oct 2006 in grub, systemrescuecd, linux Boot from a rescue CD. I recommend the System Rescue CD. Mount your filesystem. My system usually has two partitions, one for root and one for boot. mount /dev/sda2 /mnt...
Encrypt a SMB network share using Samba and an stunnel SSL connection 11 Oct 2006 in linux, ssl, samba Suppose you have a network share containing accounting, payroll, or other finance information. The information is highly sensitive, and should be treated carefully. Suppose that the data on the share...