Skip to content

Instantly share code, notes, and snippets.

View dieseltravis's full-sized avatar
🆗
I'm ok

Travis Hardiman dieseltravis

🆗
I'm ok
View GitHub Profile
@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 February 13, 2024 18:57
:*-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
@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
@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 April 7, 2022 00:15 — 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 September 4, 2023 05:09
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)
@Rihcus
Rihcus / ngrok-plex.py
Last active September 6, 2022 15:56 — forked from nagleaidan/ngrok-plex.py
Run plex through ngrok with SSL via duckdns
#!/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"
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',
@dieseltravis
dieseltravis / stars.md
Created January 16, 2020 17:54
Awesome Stars