This is a simple shell script that rebrands Google Play Music Desktop Player to "YouTube Music".
The following changes are made:
- The application is renamed.
- The application name is changed.
- The application icon is changed.
Usage:
#![allow(unused)] | |
macro_rules! tern { | |
(true ? $yes:tt : $no:tt) => { | |
$yes | |
}; | |
(false ? $yes:tt : $no:tt) => { | |
$no |
#!/usr/bin/env bash | |
export CLANG_FORCE_COLOR_DIAGNOSTICS=0 | |
SYMBOLS=() | |
OBJECTS=() | |
# Check for OSX. | |
if [[ "$(uname -s)" != "Darwin" ]]; then | |
printf "\x1B[31m%s\x1B[0m\n" "Mach-O demangle shim isn't needed on non-Darwin platforms." | |
exit 0 | |
fi |
This is a simple shell script that rebrands Google Play Music Desktop Player to "YouTube Music".
The following changes are made:
Usage:
// ==UserScript== | |
// @name Fuck Off Autoplay | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Videos with audio shouldn't be allowed to play without a user gesture. | |
// @author eth-p | |
// @match http://*/* | |
// @match https://*/* | |
// @grant none | |
// @downloadURL https://gitcdn.xyz/cdn/eth-p/dc1745cd0b377e17c72d02c92d01ea3a/raw/fuck-off-autoplay.user.js |
Resources:
pinentry
.
// ==UserScript== | |
// @name Instagram Direct as PWA | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2.1 | |
// @description Create a Chrome "as window" shortcut to use Instagram DMs as a PWA. | |
// @author eth-p | |
// @match https://www.instagram.com/direct/* | |
// @match https://www.instagram.com/?utm_source=pwa_homescreen | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=instagram.com | |
// @grant none |
code-server
code-server
using nginx
(via unix socket) for SSL termination and virtual hosts.code-server
when updated with pacman
code-server
as specified user (using systemd
)nginx
can read/write to unix socket. (using systemd
)A list of scripts for my Steam Deck that I want to always run as root.
This README describes the files necessary to set up always-sudo scripts. Any other file in this gist is one of the scripts.
Makes /bin/sudo /root/ALWAYS_SUDO_SCRIPTS/run
work for the deck
user, without a password prompt.
This allows that specific "executable" file (bash script) to be run as root without a password prompt.
/** | |
* Test V8 optimization against eval and new Function | |
* Run with: node --allow-natives-syntax evalFuncOpt.js | |
* More verbose with: node --trace_opt --trace_deopt --allow-natives-syntax evalFuncOpt.js | |
* | |
* More info at: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers | |
*/ | |
var b = 0; | |
function getStatus(fn) { |