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
| <script> | |
| // TODO: Replace the percentages and names below with those relevant to your website | |
| var percentagesToReport = new Map(); | |
| percentagesToReport.set(25, 'Section2'); | |
| percentagesToReport.set(50, 'Section3'); | |
| percentagesToReport.set(75, 'Section4'); | |
| percentagesToReport.set(90, 'Section5'); | |
| function reportScroll(scrollLocationName) { | |
| gtag('event', scrollLocationName, { |
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
| # Remove containers whose name matches the automatic naming pattern (adjective_name). Won't affect running containers. | |
| docker rm $(docker ps -a | awk '{print $NF}' |egrep '^[a-z]+_[a-z]+$') | |
| # Delete images that don't have any tags or containers. | |
| docker image prune -f | |
| # Delete unused volumes | |
| docker volume prune -f |
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
| // ==UserScript== | |
| // @name Mastodon Follow Locally Mod | |
| // @namespace http://www.grahamlea.com/ | |
| // @version 0.1 | |
| // @description Allows you to follow Mastodon accounts from other servers more easily | |
| // @author Graham Lea (@evolvable@aus.social) | |
| // @match https://*/* | |
| // @require http://code.jquery.com/jquery-latest.js | |
| // @grant none | |
| // ==/UserScript== |
OlderNewer