Skip to content

Instantly share code, notes, and snippets.

pacmd list-sinks | grep name:
pacmd load-module module-remap-sink sink_name=mono master=<name_of_audio sink_given_by_previous_command> channels=2 channel_map=mono,mono
speaker-test -c 2 -t sine
@klyr
klyr / remove_cookidoo_bookmarks.py
Created April 5, 2020 17:04
Remove all bookmarks
import requests
import bs4
my_recipes = 'https://cookidoo.fr/organize/fr-FR/my-recipes'
book = 'https://cookidoo.fr/organize/fr-FR/api/bookmark'
cookies = 'XXX'
while True:
print("===")
r = requests.get(my_recipes, headers={'Cookie': cookies})
@klyr
klyr / gist:9ac469828c3981514a3a7f7be183719f
Created June 21, 2021 16:39
Firefox configuration for new tab
// IMPORTANT: Start your code on the 2nd line
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;
/* set new tab page */
try {
Cu.import("resource:///modules/AboutNewTab.jsm");
var newTabURL = "/Users/....startpages/index.html";
AboutNewTab.newTabURL = newTabURL;
} catch(e){Cu.reportError(e);} // report errors in the Browser Console