Skip to content

Instantly share code, notes, and snippets.

@JohnnyVicious
JohnnyVicious / gist:b324ff20a38d5e59d99dd586ae3e97f5
Created November 2, 2025 19:22
Install PowerShell on Bazzite (ostree OS)
# Pick the version you want (match the one you tried if you like)
VER=7.5.4
ARCH=x64 # use 'arm64' on Apple/ARM boxes
# Create a versioned install dir under /usr/local
sudo mkdir -p /usr/local/microsoft/powershell/$VER
cd /usr/local/microsoft/powershell/$VER
# Download the universal tarball from the official releases
sudo curl -L -O https://github.com/PowerShell/PowerShell/releases/download/v$VER/powershell-$VER-linux-$ARCH.tar.gz
@droberin
droberin / README.md
Last active November 14, 2025 16:00
Meshtastic tile map downloader for Device-UI (MUI)

Meshtastic Map/tile download script

Basics

  • Download the files in this repo/gist! into a decent folder
  • Access that folder on a terminal (cmd or powershell should work but haven't tested out of Linux distros)
  • Create your account at https://www.thunderforest.com/docs/apikeys/ (free or paid, up to you)
  • Alternatively: can also use https://apidocs.geoapify.com/playground/maps/ (defaults to thunderforest (style atlas))
  • Validate your account on your email using received validation link.
  • Log in
  • Copy API Key from website.
@bradchoate
bradchoate / mltshp-random-bookmarklet.url
Last active May 19, 2023 05:10
MLTSHP Bookmarklet for a random post
javascript:(function(){(async()=%3E{let%20e=%22https://mltshp.com/%22;0!==location%3F.href%3F.indexOf(e)%26%26(alert(%22First,%20navigating%20to%20MLTSHP...%20then,%20run%20this%20again!%22),location.href=e);let%20t=%22latestImageSharekey%22,n=localStorage,r=JSON.parse(n.getItem(t)||%22{}%22),i=Date.now(),l=i-864e5;if(r%3F.t%3Cl%26%26(r={}),r%3F.k||await%20fetch(`${e}incoming`).then(e=%3Ee.text()).then(e=%3E{let%20l=new%20DOMParser;r={k:l.parseFromString(e,%22text/html%22).querySelector(%22.inline-meta%20a%22).getAttribute(%22href%22).split(%22/%22)[2],t:i},n.setItem(t,JSON.stringify(r))}),r%3F.k){let%20a=%220123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ%22,g=e=%3E{let%20t=a.length,n=0;for(let%20r=0;r%3Ce.length;r++){let%20i=e.length-r-1,l=a.indexOf(e[r]);n+=l*Math.pow(t,i)}return%20n},h=g(r.k),o=e=%3E{let%20t=a.length,n=%22%22;for(;0!==e;){let[r,i]=[Math.floor(e/t),e%25t];e=r,n=a[i]+n}return%20n};for(;;){let%20s=Math.floor(Math.random()*h),f=o(s),$=`${e}p/${f}`;await%20fetch($).then(e=%3E{200===e.status%26%26(location
@lafentres
lafentres / all-the-way-downify.sh
Last active September 24, 2024 16:34
:*-all-the-way-down: Slack emoji creator, based off alisdair/intensify.sh
#!/bin/bash
# Credit to https://gist.github.com/alisdair/ffc7c884ee36ac132131f37e3803a1fe for the excellent original
# script that this one is based on. This script modifies the original to create the all-the-way-down effect.
# Generate a `:*-all-the-way-down:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
@bashbunni
bashbunni / .zshrc
Last active February 8, 2026 23:44
CLI Pomodoro for Linux (zsh)
# study stream aliases
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro
declare -A pomo_options
pomo_options["work"]="45"
pomo_options["break"]="10"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1
@hazelweakly
hazelweakly / cry-more.html
Last active January 8, 2023 07:46
Enron Mullet Is A Giant CryBaby
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Redirecting to the Fediverse</title>
<head>
<script>
// let's say this is hosted at example.com. Given a url of one of the forms:
// - example.com/@user@instance.com/post_id
// - example.com/@user@instance.com
// - example.com/@instance.com
// redirect accordingly
@metius
metius / select_kernel_boot_pop_os.md
Last active December 24, 2024 01:57
GUIDE - How to select a specific kernel version at boot in Pop_OS!

GUIDE - How to select a specific kernel version at boot in Pop_OS!

Pop OS uses their own implementation named kernelstub to handle the kernels, they did so to make it faster on load times (at least that's what their blog post says).

Their README page show certain information of how to use it, but there are some other things that are required to do, specially if you want to have a menu on boot, similar to grub.

Update a kernel

In case you just want to use a specific kernel and forget about other ones, you can execute this command to update the current configuration

@Rihcus
Rihcus / ngrok-plex.py
Last active April 7, 2022 00:13 — forked from origamiofficial/ngrok-plex.py
Run Plex Through Ngrok to Bypass CGNAT or Double-NAT Scenario
#!/usr/bin/python3
from plexapi.server import PlexServer
import sys
import json
import requests
import time
import socket
###This script hashes out the duckdns portion.
@maxpromer
maxpromer / AHT20_BMP20_Test.ino
Created January 16, 2022 15:30
AHT20 + BMP280 test code arduino
/* Dev by Artron Shop Co.,Ltd. */
#include <Wire.h>
#include <Adafruit_BMP280.h>
#include <AHT10.h>
Adafruit_BMP280 bmp;
AHT10 myAHT20(AHT10_ADDRESS_0X38, AHT20_SENSOR);
void setup() {
@origamiofficial
origamiofficial / ngrok-plex.py
Last active November 21, 2024 09:09 — forked from Rihcus/ngrok-plex.py
Run Plex Through Ngrok With SSL via DuckDNS to Bypass CGNAT or Double-NAT Scenario
#!/usr/bin/python3
from plexapi.server import PlexServer
import sys
import json
import requests
import time
import socket
# please make sure to install PlexAPI via pip, "pip install PlexAPI"