Skip to content

Instantly share code, notes, and snippets.

View ryanlong1004's full-sized avatar
💭
Around here somewhere...

Ryan Long ryanlong1004

💭
Around here somewhere...
View GitHub Profile
@ryanlong1004
ryanlong1004 / aws_cli_wasabi.md
Last active May 22, 2025 19:27
Use AWS CLI with WASABI

WASABI AWS CLI SETUP


Step-by-Step Instructions to Use Wasabi with AWS CLI

🔹 1. Create Wasabi Access Keys

  • Go to your Wasabi console and create a new access key.
  • Save the following securely:

To run this VLC command as a service on Raspbian (Raspberry Pi OS) at startup, the best approach is to use a systemd service.


✅ Steps to Create a systemd Service for CVLC on Startup:

1. Create a systemd service file

Open a terminal and run:

sudo nano /etc/systemd/system/cvlc-video.service
@ryanlong1004
ryanlong1004 / raspberrypi_hostapd_network_setup.md
Created March 9, 2025 23:38 — forked from Cdaprod/raspberrypi_hostapd_network_setup.md
To make your Raspberry Pi Zero 2 W broadcast a `hostapd` network upon powering on, you'll need to install and configure `hostapd` and `dnsmasq`, and set up a static IP for the wireless interface. Here's a detailed guide on how to achieve this:

To make your Raspberry Pi Zero 2 W broadcast a hostapd network upon powering on, you'll need to install and configure hostapd and dnsmasq, and set up a static IP for the wireless interface. Here's a detailed guide on how to achieve this:

Task Creation Chain

  1. Install Necessary Packages: Install hostapd and dnsmasq.
  2. Configure Static IP for WLAN: Set a static IP for the wireless interface.
  3. Configure Hostapd: Set up the access point details.
  4. Configure Dnsmasq: Set up the DHCP server.
  5. Enable Services on Boot: Ensure hostapd and dnsmasq start on boot.
@ryanlong1004
ryanlong1004 / README.md
Last active May 22, 2025 19:43
Raspberry Pi as a Wi-Fi hotspot

💫 About Me:

Hey there 👋 I'm Ryan!

🚀 Building things one keystroke at a time
🧠 Fueling curiosity with code and too much coffee
🎨 Turning ideas into commits and bugs into features

🛠️ I dabble in:
- Writing clean(ish) code.
- Breaking and fixing things with 💪
- Chasing the perfect git commit message

💬 Ask me about:
- Why tabs are better than spaces (or vice versa)
- That one weird bug that took 3 hours to fix but 1 line to solve
- Cool open source tools and side projects

⚡ Fun fact: I once debugged a problem by walking away and eating a sandwich. It worked.

Thanks for stopping by—now go ship something awesome! 🚢✨

🌐 Socials:

LinkedIn email

💻 Tech Stack:

![Go](https://img.shields.io/badge/go-%2300ADD8.svg?style=for

@ryanlong1004
ryanlong1004 / Dockerfile
Created March 6, 2025 22:49
video_loop
# Docker Image for Video Playback on Raspberry Pi
This guide explains how to build a Docker image that runs a video in a loop on a Raspberry Pi.
## 1. Create a Dockerfile
Create a new directory for your Docker project and navigate to it.
```bash
@ryanlong1004
ryanlong1004 / loop.md
Created March 6, 2025 17:59
Pi Zero Video Loop on Boot

Install libraries

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install omxplayer (this can take about 10 minutes..)
sudo apt-get install screen

Create Bash Script

— Create a file called videoloop in the /etc/init.ddirectory:

@ryanlong1004
ryanlong1004 / crypt.py
Created February 25, 2025 21:23
Python string encryption/decryption
from cryptography.fernet import Fernet
class Crypt:
def __init__(self, key: str):
self.key = key.encode()
self.cipher = Fernet(self.key)
def encrypt(self, plaintext: str) -> str:
encrypted_text = self.cipher.encrypt(plaintext.encode())
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
@ryanlong1004
ryanlong1004 / view.py
Created June 21, 2022 19:34
CLI View
"""
view.py
CLI View layer
author: Ryan Long <[email protected]>
"""
import argparse
import pathlib
@ryanlong1004
ryanlong1004 / timing.py
Created March 29, 2022 18:54
Easy python timing
import logging
import timeit
import time
def main():
start_time = timeit.default_timer()
# timed work here
time.sleep(1)