There are several dry boxes out there for filament, but at the time of this writing the best deals I’m seeing are $60 a box… which seems too expensive. I … Continue Reading Simple Dry Boxes for 3D Printing Filament
Creation How to program a game in JavaScript!
Prusa i3 MK3S ColorFabb PLA All defaults, except custom gcode was added to run a Nikon D5300 using the Prusa guide on “How to create beautiful 3D print timelapse videos”: … Continue Reading Sheep Yarn Vase (or Bowl)
I wanted to setup a Minecraft server on my old Mac Mini and I needed to format a USB drive to install Ubuntu. Previous USB drives would not be recognized … Continue Reading How to format a USB for Mac from Windows 10
To test a slow download rate for your application, you can use: wget –limit-rate 64k https://test/somePath
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 … Continue Reading Raspberry PI running a 16×32 RGB LED
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 … Continue Reading Setting up Ruby on Rails with Passenger + Nginx in a CentOS 7 VM running on Google Cloud Platform
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 … Continue Reading How to test if files differ in BASH and test that those differences are expected
To run a bunch of jobs concurrently in CSH run: #!/bin/csh set i = 1 while ( $i <= 30 ) set name = “run_name_${i}” do_something $name & @ i++ … Continue Reading Run a bunch of jobs at the same time locally
To Max out memory use: #!/usr/bin/python # To eat 40GB of RAM and hold it for 5 seconds type: #./memconsume.py 5 40 import time import sys seconds = int(sys.argv[1]) gb … Continue Reading Saturate (max out) Memory Utilization
To max out a 4 CPU machine run: #!/bin/bash function clean_up { kill $pids exit } trap clean_up SIGHUP SIGINT SIGTERM pids=”” for i in {1..4}; do while : ; … Continue Reading Saturate (max out) CPU Utilization
It’s pretty simple: cd ~/my_dir && tar –exclude=my_dir.tar.gz -czf my_dir.tar.gz ./* The -c argument says to compress, z tells tar to create a gz type, f is to specify the … Continue Reading Creating a Directory Archive (.tar.gz/tar ball) in that Same Directory
Enable Client Hyper-V: Press Windows Key Type (i.e. search) for “windows features” Select “Turn Windows features on or off” Press enter Enable the following: Go install Windows XP Mode for … Continue Reading Opening a VMCX File to Run a Windows XP Mode VM from Windows 10
If you aren’t aware, there are a lot of useful internal BASH variables, some of which can be found here: https://www.tldp.org/LDP/abs/html/internalvariables.html One of particular use is PIPESTATUS. This can be … Continue Reading Internal Bash Variable – PIPESTATUS
You may have to install this tool called dstat, but then run: dstat -tcndylp –top-cpu This will list a snapshot of system behavior every second which can tell you if … Continue Reading How can I monitor what is going on with my Linux system?
For testing or even applications which need to run a bunch of things at the same time, kicking off multiple threads at the same time is really nice. For instance, … Continue Reading How can I easily create several threads in C++?