Skip to content

Instantly share code, notes, and snippets.

@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
@klyr
klyr / create-vm-cloud-init.sh
Created March 10, 2017 09:12
Boot a qcow cloud-init image with kvm
img_url="http://cloud-images.ubuntu.com/releases/xenial/release"
img_url="${img_url}/ubuntu-16.04-server-cloudimg-amd64-disk1.img"
wget $img_url -O disk.img.dist
cat > my-user-data <<EOF
#cloud-config
password: changeme
chpasswd: { expire: False }
ssh_pwauth: True