Show the layout strings:
list-windows
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
#!/bin/bash | |
# https://gist.github.com/petitJAM/7f3cb7de846cbe1878d1f8b2945e03e2 | |
DIFF=`git diff --name-only HEAD@{1} HEAD` | |
YARN=`expr "$DIFF" : ".*package\.json.*"` | |
MIGRATE=`expr "$DIFF" : ".*db/migrate.*"` | |
BUNDLE=`expr "$DIFF" : ".*Gemfile*"` |
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
# https://github.com/uBlockOrigin/uAssets/pull/3517 | |
twitch-videoad.js application/javascript | |
(function() { | |
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; } | |
var realFetch = window.fetch; | |
window.fetch = function(input, init) { | |
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) { | |
var url = new URL(arguments[0]); | |
url.searchParams.forEach(function(value, key) { | |
url.searchParams.delete(key); |
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
// Filter videos by title containing this text. | |
var text = "Repentance" | |
document.querySelectorAll('ytd-grid-video-renderer').forEach((video) => { | |
if (video.querySelector('a#video-title').text.includes(text)) { | |
video.remove() | |
} | |
}); | |
// A loading indicator gets stuck after deleting a bunch of stuff, so this deletes them all. |
Source: mozilla/multi-account-containers#854 (comment)
- Install this extension it requires no permissions.
- Open bookmark manager Library -> Bookmarks > All Bookmarks
- Create a bookmarklet by clicking Organize -> New Bookmark,
- Name: Containerize a Bookmark
- Location:
javascript:(function(c,u){c&&(c=c.trim())&&(u=prompt('URL?',location))&&(u=u.trim())&&prompt('Contained URL to copy and bookmark:','ext+container:name='+encodeURIComponent(c)+'&url='+encodeURIComponent(u))})(prompt('Container name?','Personal'))
Place the following in .git/hooks/prepare-commit-msg
and mark it as executable (chmod +x .git/hooks/prepare-commit-msg
).
#!/bin/bash
is_amend=$(ps -ocommand= -p $PPID | grep -e '--amend')
if [ -n "$is_amend" ]; then
exit 0
fi
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
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then | |
echo "Root required to install" | |
exit | |
fi | |
file=/tmp/zoom_amd64.deb |
winddcutil
This implements a slightly different API, so the commands are similar to what's below, but not quite the same.
Run everything with sudo
.
List displays:
ddcutil detect
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
// Ensure the activity has android:exported="true" in the manifest | |
adb shell am start -n my.package.name/my.package.path.to.MyActivity |
OlderNewer