Skip to content

Instantly share code, notes, and snippets.

@droberin
droberin / README.md
Last active April 15, 2025 08:21
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
Created January 4, 2023 16:28
CLI Pomodoro for Linux
# 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/@[email protected]/post_id
// - example.com/@[email protected]
// - 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.
@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"
@RPTST
RPTST / dual_boot.txt
Last active March 31, 2022 22:29
How to dual boot Pop_OS with Windows
PSA: How to dual boot Pop_OS with Windows with a menu to select from, when you install Pop after Windows in the same drive.
An updated and more complete guide is now found here
Disclaimer: You do this at your own risk.
What you want to achieve:
Install Pop!_OS after Windows on the same drive. You want a menu to pop up after POST so that you can select Pop or Windows.
What is happening:
@alperensert
alperensert / captcha.py
Last active August 1, 2024 00:49
How to bypass Google reCaptcha v2 with Python Selenium and Capmonster
from selenium import webdriver
from capmonster_python import RecaptchaV2Task
from time import sleep
class RecaptchaV2Selenium:
def __init__(self, _client_key, executable_path):
self.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0"
self.captcha = RecaptchaV2Task(_client_key)
self.browser = webdriver.Firefox(executable_path=executable_path)