Based on https://mudge.name/2019/11/12/using-a-raspberry-pi-for-time-machine/.
sudo apt install samba
lsblk
FORMAT
sudo mkfs -t ext4 /dev/sda
Based on https://mudge.name/2019/11/12/using-a-raspberry-pi-for-time-machine/.
sudo apt install samba
lsblk
FORMAT
sudo mkfs -t ext4 /dev/sda
First, set up Raspbian.
Install prereqs.
sudo apt-get install apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
Install docker.
curl -sSL https://get.docker.com | sh
First, install Raspbian.
Install the Cisco IPsec VPN server (https://github.com/hwdsl2/setup-ipsec-vpn) using the command below.
$ wget https://git.io/vpnsetup -O vpnsetup.sh && sudo sh vpnsetup.sh
Set up new VPN clients. https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/manage-users.md
First, install Raspbian.
This configuration works with HiFiBerry DACs and the Sabre ES9023 chip.
If you are using WiFi, turn off WiFi Power Management.
$ sudo iwconfig wlan0 power off
sentence = 'Sometimes (when I nest them (my parentheticals) too much (like this (and this))) they get confusing.' | |
def closing_paren_index( string, opening_paren_index ) | |
depth = 1 | |
partial = string.slice opening_paren_index + 1..-1 | |
partial.each_char.with_index do |char, index| | |
if char == '(' | |
depth += 1 | |
elsif char == ')' |
infile = ARGV[ 0 ] | |
words = File.readlines( infile ) | |
# O(log n) | |
def rotation_index( array, lowest_so_far = nil, from = 0, to = nil ) | |
lowest_so_far ||= array.first.downcase | |
to ||= array.size - 1 | |
if from > to |
Download the latest Raspberry Pi OS Lite image from https://www.raspberrypi.com/software/operating-systems/ (2022-04-04 at the time of this writing).
Insert your microSD card. Use Raspberry Pi Imager to burn the image to your microSD card. Make to select "Set username and password" in the config before starting. Name the user pi
and select your own password.
Ensure the disk is mounted again, then enable SSH.
$ touch /Volumes/boot/ssh
# app/models/image.rb | |
class Image < ActiveRecord::Base | |
belongs_to :term | |
def serializable_hash(options = nil) | |
hash = super | |
hash.delete_if { |k, v| v.blank? } | |
hash.delete('filename') |