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/sh | |
| if [ $# -eq 0 ] ; then | |
| echo 'Usage: sudo plexuser <username>' | |
| exit 1 | |
| fi | |
| tee /etc/systemd/system/plexmediaserver.service.d/override.conf > /dev/null <<EOT | |
| [Service] | |
| User=$1 | |
| Group=$1 |
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
| def data_anon(data, whitelist_vals=None, whitelist_keys=None): | |
| def iter_data(data, key=None): | |
| if isinstance(data, dict): | |
| for k, v in data.items(): | |
| data[k] = iter_data(v, k) | |
| elif isinstance(data, list): | |
| for i, el in enumerate(data): | |
| data[i] = iter_data(el, key) | |
| elif isinstance(data, str): | |
| if ( |
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 Github comment toggle | |
| // @version 0.1.0 | |
| // @author Ulas Ozguler | |
| // @description Add "toggle inline comment" button to Github PRs comments. | |
| // @match https://github.com/*/pull/* | |
| // @grant GM_addStyle | |
| // @run-at document-start | |
| // ==/UserScript== |
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
| wget http://packages.eu-central-1.amazonaws.com/2018.03/main/c31535f74c6e/x86_64/Packages/ncdu-1.10-1.3.amzn1.x86_64.rpm | |
| sudo yum install ncdu-1.10-1.3.amzn1.x86_64.rpm |
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
| module.exports = (config, Ferdium) => { | |
| document.body.addEventListener("click", function (event) { | |
| const qa = event.target.dataset.qa | |
| const parentQA = event.target.parentElement?.dataset.qa | |
| if (qa === "open-in-window" || parentQA === "open-in-window" || qa === "mini_player_open_in_new_window_button") { | |
| toggleCustomStyles() | |
| } | |
| }) | |
| function toggleCustomStyles() { |
OlderNewer