- 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 |
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.
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
NewerOlder