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
export const getValidUrlRegex = (domainName?: string) => { | |
return domainName | |
? RegExp( | |
/^(?:https?:\/\/)?(?:www\.)?(?:(?<subdomain>[a-z0-9-]+)\.)?/.source + | |
RegExp(domainName).source + | |
/\.(?:(?<tld>[a-z]{1,63}))?(?::(?<port>[0-9]{1,5}))??(?:[/#](?<path>[\w/\-._~:/?#[\]@!$&'()*+,;=.]*)?)?$/ | |
.source, | |
) | |
: /^(?:https?:\/\/)?(?:www\.)?(?:(?<subdomain>[a-z0-9-]+)\.)?(?<domain>[a-z0-9-]+)\.(?:(?<tld>[a-z]{1,63}))?(?::(?<port>[0-9]{1,5}))??(?:[/#](?<path>[\w/\-._~:/?#[\]@!$&'()*+,;=.]*)?)?$/; | |
}; |
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
bsky.app##+js(user-bsky-annoyances.js) | |
main.bsky.dev##+js(user-bsky-annoyances.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
// ==UserScript== | |
// @name Launch Terminal and Streamlink | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description button for twitch that launches terminal and streamlink | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
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
// ==UserScript== | |
// @name Bluesky Account Switcher | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-11-20 | |
// @description Automatically expands account switcher on Bluesky settings page | |
// @author https://github.com/aliceisjustplaying | |
// @match https://bsky.app/* | |
// @run-at document-start | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bsky.app | |
// @grant none |
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
// ==UserScript== | |
// @name 💞💣 | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-12-21 | |
// @description like all loaded posts on bsky.app | |
// @author https://PSingletary.me | |
// @license MIT | |
// @downloadURL https://gist.githubusercontent.com/PSingletary/fdb6e121890e044b6310e8b5fc4039e7/raw/0dd909abbe2f71771a53400fff493ab50887914b/like-bomb.js | |
// @updateURL https://gist.githubusercontent.com/PSingletary/fdb6e121890e044b6310e8b5fc4039e7/raw/0dd909abbe2f71771a53400fff493ab50887914b/like-bomb.js | |
// @match https://bsky.app/* |
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/env ruby | |
begin | |
require 'minisky' | |
rescue LoadError | |
puts "Install minisky: '[sudo] gem install minisky'" | |
exit 1 | |
end | |
require 'time' |
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
# Function to check and install Python | |
function Install-Python { | |
if (-not (Get-Command python -ErrorAction SilentlyContinue)) { | |
Write-Output "Python not found. Installing..." | |
$pythonInstaller = "https://www.python.org/ftp/python/3.10.2/python-3.10.2-amd64.exe" | |
$installerPath = "$env:TEMP\python-installer.exe" | |
Invoke-WebRequest -Uri $pythonInstaller -OutFile $installerPath | |
Start-Process -FilePath $installerPath -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -NoNewWindow -Wait | |
Remove-Item $installerPath | |
Write-Output "Python installed." |
Custom Streamlink path : null Preferred quality : High Additional Items : --record "D:\OneDrive\Video\twitch{author}{category}{id}-{time:%Y%m%d%H%M%S}.ts"
NewerOlder