A curated list of my GitHub stars! Generated by starred
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
<!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 |
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) |
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.myplex import MyPlexAccount | |
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
from __future__ import print_function | |
import pickle | |
import os.path | |
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request | |
# If modifying these scopes, delete the file token.pickle. | |
SCOPES = ['https://www.googleapis.com/auth/drive', | |
'https://www.googleapis.com/auth/drive.file', |
NewerOlder