Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
🛠️
tinkering

Andy Piper andypiper

🛠️
tinkering
View GitHub Profile
@jsit
jsit / Mastodon Explained in 100 Words.md
Last active January 26, 2023 17:15
Mastodon Explained in 100, 200, and 500 Words

Mastodon Explained in 100 Words

  1. Mastodon is a microblogging social media platform like Twitter; you can write posts ("toots") and interact with other people's posts on a timeline.
  2. To sign up, you first need to choose a server (an "instance"), like choosing an email provider.
  3. Start posting!
  4. It's probably adequate to start with the official app made by the Mastodon group.
  5. There are three timelines; "Home" shows posts from people you follow; "Local" shows posts from people who are on your instance; "Federated" shows posts from all people known to your instance.
  6. You may notice some differences and limitations in the experience as compared to Twitter.
import time
from galactic import GalacticUnicorn
from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN as DISPLAY
import network
import rp2
from machine import Pin
import socket
import struct
import utime
@lupyuen
lupyuen / ox64-notes-tl.md
Last active November 4, 2023 19:13
Ox64 BL808 Notes by TL Lim

Ox64 Notes by TL Lim

UPDATE 2 Nov 2023: Check out the article...

The First Batch of Ox64 (Oct 2022) won't appear as a USB Serial Port when connected to our computer because...

"The bin file that currently loaded in Ox64 still initialize and not response to UART or USB, however, it will setup the BL808 internal PMU and this is how product team aware that Ox64 board is working. This is the bl808_demo_event.bin file attached here.

@austin-barrington
austin-barrington / main.py
Created October 20, 2022 12:23
Raspberry Pi - Pico W - Enviro+ Board
import time
import network
import urequests as requests
from picographics import PicoGraphics, DISPLAY_ENVIRO_PLUS
from pimoroni import RGBLED
from breakout_bme68x import BreakoutBME68X, STATUS_HEATER_STABLE
from breakout_ltr559 import BreakoutLTR559
from pimoroni_i2c import PimoroniI2C
@eyeseast
eyeseast / python.md
Last active May 25, 2025 08:27
How to set up Python in 2022

I have an updated version of this on my blog here: https://chrisamico.com/blog/2023-01-14/python-setup/.

Python

This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.

Tools and helpful links:

  • Python docs: https://docs.python.org/3/
  • Python Standard Library:  - Start here when you're trying to solve a specific problem
@Dhravya
Dhravya / bot.py
Last active October 18, 2023 14:57
A simple twitter bot using Twitter API v2
import pytwitter
from os import environ as env
from dotenv import load_dotenv
load_dotenv() # Loads the .env file we created earlier
api = pytwitter.Api(
consumer_key=env["CONSUMER_KEY"],
consumer_secret=env["CONSUMER_SECRET"],
access_token=env["OAUTH_TOKEN"],
@pudquick
pudquick / brew.md
Last active May 5, 2025 21:30
Lightly "sandboxed" homebrew on macOS

brew is a bad neighbor

This isn't a guide about locking down homebrew so that it can't touch the rest of your system security-wise.

This guide doesn't fix the inherent security issues of a package management system that will literally yell at you if you try to do something about "huh, maybe it's not great my executables are writeable by my account without requiring authorization first".

But it absolutely is a guide about shoving it into its own little corner so that you can take it or leave it as you see fit, instead of just letting the project do what it likes like completely taking over permissions and ownership of a directory that might be in use by other software on your Mac and stomping all over their contents.

By following this guide you will:

  • Never have to run sudo to forcefully change permissions of some directory to be owned by your account
@pudquick
pudquick / steamdeck.md
Last active August 10, 2024 20:27
Steam Deck notes

Steam Deck Notes


Running scripts in Gaming mode easily

This became its own writeup: https://gist.github.com/pudquick/981a3e495ffb5badc38e34d754873eb5

Artwork on non-Steam games

There's several different kinds of art that can be configured for an entry. The only real place to configure them all is from Desktop mode, not Game mode.

@aallan
aallan / ap_webserver.py
Created July 7, 2022 13:43
Running a web server on an wireless Access Point for Raspberry Pi Pico W in MicroPython
import socket
import network
import machine
ssid = 'MicroPython-AP'
password = '123456789'
led = machine.Pin("LED",machine.Pin.OUT)
ap = network.WLAN(network.AP_IF)
@aallan
aallan / async_webserver.py
Created July 4, 2022 15:38
An asynchronous webserver written in MicroPython to turn an LED on/off on a Raspberry Pi Pico W
import network
import socket
import time
from machine import Pin
import uasyncio as asyncio
led = Pin(15, Pin.OUT)
onboard = Pin("LED", Pin.OUT, value=0)