Skip to content

Instantly share code, notes, and snippets.

apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
apt-get install -y docker-engine
@daviesian
daviesian / Raspberry Pi Boot Script
Created November 14, 2020 11:59
Custom systemd service to run ~/boot.sh when Raspberry Pi boots
sudo nano /lib/systemd/system/custom-boot.service
```
[Unit]
Description=Custom Boot Script Service
After=multi-user.target
[Service]
Type=idle
ExecStart=/bin/bash /home/pi/boot.sh
@daviesian
daviesian / wpa_supplicant.conf
Created November 30, 2020 18:37
Raspberry Pi wifi config
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB
network={
ssid="<Name of your wireless LAN>"
psk="<Password for your wireless LAN>"
}
@daviesian
daviesian / README.md
Last active January 30, 2025 19:57
Jupyter with uv
  1. Create a virtual environment called, e.g., my-env:

    $ uv venv my-env
    
  2. Install ipykernel into it:

    $ uv pip install -p my-env ipykernel
    
  3. Register the kernel so it will show up in Jupyter: