Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am thenaterhood on github.
  • I am thenaterhood (https://keybase.io/thenaterhood) on keybase.
  • I have a public key ASDeWYRBVt64gH846qU9MAZkoAtxrAwYQsjTMf4CdYG35Ao

To claim this, I am signing this object:

@thenaterhood
thenaterhood / Read-only FS on Raspberry Pi.md
Last active May 10, 2024 02:09 — forked from yeokm1/Read-only FS on Arch Linux ARM.md
Set up a raspberry pi with ArchLinux or Raspbian with a Read-only root filesystem

Read-only FS on Raspberry Pi

Most embedded devices use a read-only root filesystem. This can make them more resilient to unexpected shutdowns that could otherwise cause data corruption. Depending on your application, you might consider your Pi to be an embedded system. This can also help with some issues that can come from SD card unreliability.

Full instructions and explanations are obtained from this link but you can run these commands directly. I modified some of the instructions for personal convenience.

Login with default username and password: (ArchLinux Arm: alarm, alarm, Raspbian: pi, raspberry)

Optionally enable root over SSH. The rest of these instructions assume you are in root.

nano /etc/ssh/sshd_config

[Unit]
Description=Teleirc Telegram to IRC bridge bot
After=network.target
[Service]
User=teleirc
WorkingDirectory=/var/lib/teleirc
ExecStart=/usr/bin/node teleirc.js
Restart=always
@thenaterhood
thenaterhood / ubooquity.service
Created March 6, 2015 03:03
Ubooquity systemd unit
[Unit]
Description=Ubooquity
After=network.target
[Service]
User=ubooquity
WorkingDirectory=/var/lib/ubooquity
ExecStart=/usr/bin/java -jar Ubooquity.jar -headless -webadmin
Restart=always
@thenaterhood
thenaterhood / gist:7414298
Created November 11, 2013 14:52
A bash one-liner that displays the percentage of commits for things related to semicolons, typos, spelling, forgotten things, and debug statements in a git repo.
echo " $(echo "scale=6; 100*`git log --pretty=oneline --abbrev-commit | grep 'typo\|semicolon\|spelling\|forgotten\|debug' | wc -l`/`git log --pretty=oneline --abbrev-commit | wc -l`" | bc ) %"
@thenaterhood
thenaterhood / compileJournals.sh
Last active December 17, 2015 03:09
A quick and dirty shell script that compiles the RIT SE250T course's activity journals into a single file with a breakdown of times for each stage as well as total times for the project. See the code comments for more information.
#!/bin/bash
#
# Author:
# Nate Levesque <[email protected]>
# Language:
# Shell
# Description:
# Compiles the SE Activity journals into one file
#
# Usage: