This file contains 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() { |
This file contains 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 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 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
cd /System/Library/CoreServices/Spotlight.app/Contents/MacOS | |
sudo cp Spotlight Spotlight.bak | |
sudo perl -pi -e 's|(\x00\x00\x00\x00\x00\x00\x47\x40\x00\x00\x00\x00\x00\x00)\x42\x40(\x00\x00\x80\x3f\x00\x00\x70\x42)|$1\x00\x00$2|sg' Spotlight | |
cmp -l Spotlight Spotlight.bak | |
sudo codesign -f -s - Spotlight | |
sudo killall Spotlight |
This file contains 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 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 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
Windows Registry Editor Version 5.00 | |
; Remove Desktop From This PC | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}] | |
; Remove Videos From This PC | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}] |
This file contains 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 Covid19 TR enhancer | |
// @namespace https://gist.github.com/ulasozguler/95d4a081da95e941c2fa3dc672ae624b | |
// @version 0.7 | |
// @description New information for official Covid-19 info website for Turkey. | |
// @author You | |
// @match https://covid19.saglik.gov.tr/ | |
// @match https://covid19.saglik.gov.tr/TR-66935/genel-koronavirus-tablosu.html?chart=1 | |
// @grant GM_addStyle | |
// @require https://cdn.jsdelivr.net/npm/chart.js@2.8.0 |
This file contains 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
{ | |
"nodes": [ | |
{ | |
"id": "Academy Map (T4)" | |
}, | |
{ | |
"id": "Academy Map (T7)" | |
}, | |
{ | |
"id": "Academy Map (T11)" |
This file contains 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
import json | |
import requests | |
headers = { | |
'pragma': 'no-cache', | |
'origin': 'https://developers.facebook.com', | |
'accept-language': 'en-GB,en;q=0.8,en-US;q=0.6,tr;q=0.4', | |
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36', | |
'content-type': 'application/x-www-form-urlencoded', |
NewerOlder