This file contains hidden or 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:(async () => { | |
| const MAX_UNFOLLOWS = 25; | |
| const MIN_DELAY_MS = 4000; | |
| const MAX_DELAY_MS = 8000; | |
| const DROPDOWN_WAIT_MS = 1000; | |
| const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); | |
| const getRandomDelay = () => Math.floor(Math.random() * (MAX_DELAY_MS - MIN_DELAY_MS + 1)) + MIN_DELAY_MS; | |
| const simulateFullClick = (el) => { |
This file contains hidden or 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
| // ========================================== | |
| // 🚀 URL EXTRACTION & ADVANCED SURGICAL FILTERING | |
| // ========================================== | |
| // An enhanced regex that captures clean URLs and terminates properly before hitting HTML attributes | |
| const urlRegex = /(https?:\/\/[^\s"'>\)\(\[\]\?,;]+)/g; | |
| const rawLinks = htmlBody.match(urlRegex) || textBody.match(urlRegex) || []; | |
| // Immediate drop-in check to clear out duplicates | |
| const uniqueLinks = [...new Set(rawLinks)]; |
This file contains hidden or 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 bash | |
| # --- Configuration --- | |
| INSTALL_DIR="/gotosocial" | |
| BACKUP_DIR="$INSTALL_DIR/backups" | |
| GTS_DB_PATH="/var/lib/gotosocial/gts.db" | |
| # Ensure script is run as root | |
| if [[ "$EUID" -ne 0 ]]; then | |
| echo -e "\e[31m[ERROR]\e[0m Please run this script as root or using sudo." |
This file contains hidden or 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
| <!-- via https://www.zachleat.com/web/snow-fall --> | |
| <script defer type="module" src="https://unpkg.com/@zachleat/snow-fall@1.0.1/snow-fall.js"></script> | |
| <script type="module" defer> | |
| const snow = document.createElement('snow-fall'); | |
| document.body.prepend(snow) | |
| </script> |
This file contains hidden or 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
| """ | |
| Install the Google AI Python SDK | |
| $ pip install google-generativeai | |
| See the getting started guide for more information: | |
| https://ai.google.dev/gemini-api/docs/get-started/python | |
| """ | |
| import os |
This file contains hidden or 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
| defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding | |
| defaults -currentHost delete -globalDomain NSStatusItemSpacing | |
| defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 5 | |
| defaults -currentHost write -globalDomain NSStatusItemSpacing -int 5 |
This file contains hidden or 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
| SHELL=/bin/bash | |
| 05 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl accounts prune | |
| 15 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl statuses remove --days 1 | |
| 25 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove --days 1 | |
| 35 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove --remove-headers --include-follows --days 0 | |
| 45 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl preview_cards remove --days 1 | |
| 55 */3 * * * RAILS_ENV=production /home/mastodon/.rbenv/shims/ruby /home/mastodon/live/bin/tootctl media remove-orphans |
NewerOlder