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
// Ensure the activity has android:exported="true" in the manifest | |
adb shell am start -n my.package.name/my.package.path.to.MyActivity |
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
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then | |
echo "Root required to install" | |
exit | |
fi | |
file=/tmp/zoom_amd64.deb |
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
Source: mozilla/multi-account-containers#854 (comment)
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'))
// 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. |
Show the layout strings:
list-windows
# 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); |
#!/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*"` |
adb shell screencap -p /sdcard/screencap.png | |
# Get the screenshot and redirect command output to nowhere so it's quiet. | |
adb pull /sdcard/screencap.png /tmp/adbcp.png > /dev/null | |
xclip -selection clipboard -t image/png -i /tmp/adbcp.png | |
echo Screenshot copied to clipboard! |