Skip to content

Blog

Raspberry PI running a 16×32 RGB LED

Wiring To get started turn off your Pi. $ sudo shutdown Disconnect power from the Raspberry Pi. Compile the Program Clone the repo: ssh pi@raspberrypi # password is: raspberry by default git clone https://github.com/hzeller/rpi-rgb-led-matrix/ Look in that cloned directory: pi@raspberrypi:~ $ ls rpi-rgb-led-matrix/ adapter bindings COPYING examples-api-use fonts img include led-matrix lib Makefile README.md utils … Continue Reading Raspberry PI running a 16×32 RGB LED

Setting up Ruby on Rails with Passenger + Nginx in a CentOS 7 VM running on Google Cloud Platform

Perspective All commands are written (unless explicitly stated) from the perspective of a non-root user with sudo permissions. The intent is to create a user which will run the application we are creating, but that user will not have sudo permissions. Machine Setup I started here: https://cloud.google.com/compute/docs/quickstart-linux The only real difference was that I select … Continue Reading Setting up Ruby on Rails with Passenger + Nginx in a CentOS 7 VM running on Google Cloud Platform

How to test if files differ in BASH and test that those differences are expected

A script to test if files are different, and to further test if the differences in those files are the expected differences: #!/bin/bash echo “text to find” | tee subject.log echo “text to find” | tee same.log echo “text which differs” | tee differs.log if diff subject.log same.log; then echo “They are the same (expected)” … Continue Reading How to test if files differ in BASH and test that those differences are expected

Loading…

Something went wrong. Please refresh the page and/or try again.

%d bloggers like this: