echo "# Title" >> README.md
git init
git add README.md
git commit -m "Initial commit"
git branch -M main
git remote add origin git@github.com:<user/orga>/<repo>.git
git push -u origin main
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
www.youtube.com##ytd-reel-shelf-renderer | |
www.youtube.com##ytd-video-renderer:has([overlay-style="SHORTS"]) |
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
import os | |
import re | |
root_dir = "src" | |
JSX_REGEX = r"<\w+" | |
for dirpath, dirnames, filenames in os.walk(root_dir): | |
for filename in filenames: | |
if filename.endswith(".js"): |
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
<.*>[^<>{}]+<\/.*> |
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
$wshell = New-Object -ComObject wscript.shell; | |
Sleep 3 | |
$wshell.SendKeys('YOUR MESSAGE HERE') |
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
############################# | |
# pip3 install pyautogui # | |
# python3 password-typer.py # | |
############################# | |
import sys | |
import time | |
import pyautogui | |
if(len(sys.argv) != 2): | |
print("Run: python3 " + sys.argv[0] + " <your password>") |
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
# TODO |
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
/** | |
* This checks for newer releases on GitHub. If any newer versions can be found, it returns a promise resolving as the latest version tag. Otherwise the promise resolves as null. | |
* @param {String} releaseTag The release tag of the code you implement this into. | |
* @param {String} repo The repository containing the code. | |
* @returns A Promise, resolving as the version tag if the provided release tag doesn't match the one provided on GitHub. | |
*/ | |
const checkIfOutdated = (releaseTag, repo) => new Promise(async (resolve, reject) => { | |
const releases = await fetch(`https://api.github.com/repos/${repo}/releases`).then(res => res.json()); | |
if(!Array.isArray(releases)) return reject(); | |
const latestRelease = releases[0]; |
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
timeSincePost(date) { | |
let diff = Math.floor((new Date() - date) / 1000); | |
if (diff <= 1) return "just now"; | |
if (diff < 20) return diff + " seconds ago"; | |
if (diff < 60) return "less than a minute ago"; | |
if (diff <= 3540) return Math.round(diff / 60) + " min ago"; | |
if (diff <= 5400) return "1 hour ago"; | |
if (diff <= 86400) return Math.round(diff / 3600) + " hours ago"; | |
if (diff <= 129600) return "1 day ago"; | |
if (diff < 604800) return Math.round(diff / 86400) + " days ago"; |