Skip to content

Instantly share code, notes, and snippets.

@jacobpledger
jacobpledger / setup-headless-pi.py
Created August 8, 2020 03:07
Run this after flashing the OS image to a Raspberry Pi SD card to have it connect to your WiFi automatically, allowing headless configuration.
#!/usr/bin/env python3
import argparse
import os
import platform
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
@nilayp
nilayp / git-backup-to-Backblaze-B2.sh
Last active June 3, 2024 02:06 — forked from philippb/git-backup-to-AWS-S3.sh
Complete git repository backup script to Backblaze B2
#!/bin/bash
# Script to backup git repo to Backblaze B2
# Set bucket, dir, password and account to use for the backup. I keep mine in local env vars
# These are set by localrc which lives on an encrypted home directory and is executed by my bashrc
# Ensure you have authorized the B2 command line tool with the correct account AND added your SSH
# public key to your github account, if you need to backup private repositories.
# To restore this repo in the future, download it from B2, extract it and then use this command:
# cd old-repository.git
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active April 18, 2025 16:07
tmux Cheat Sheet