Skip to content

Instantly share code, notes, and snippets.

@CharlesNepote
CharlesNepote / checkbot.py
Last active October 11, 2021 14:01
Checkbot
import sys # to allow inputs from command line
import simplejson as json # to read json data; simplejson is easier to read nested data
import urllib.request # to make http request
# What's the issue?
# 1. A lot of data quality issues are not solved or owned.
# 2. The current lists are not efficient because they are mostly unknown by the community and we have to look at it to see what have to be done.
# The goal of this tool is to push quality errors to some volonteers.
@CharlesNepote
CharlesNepote / feus.user.js
Last active May 17, 2021 07:16
FEUS - Folksonomy Engine user script
// ==UserScript==
// @name Folksonomy Engine user script
// @description Add Folksonomy Engine UI to Open Food Facts web pages.
// @namespace openfoodfacts.org
// @version 2021-05-10T13:18
// @include https://*.openfoodfacts.org/*
// @include https://*.openproductsfacts.org/*
// @include https://*.openbeautyfacts.org/*
// @include https://*.openpetfoodfacts.org/*
// @include https://*.pro.openfoodfacts.org/*
# MongoDB installation on Debian 10 or Debian 11
apt update
apt upgrade -y
apt install gnupg
# Install libcurl3 from Debian 9 Stretch because Debian 10 only provide libcurl4
echo "deb http://deb.debian.org/debian/ stretch main" | sudo tee /etc/apt/sources.list.d/debian-stretch.list
apt update
apt install libcurl3
@CharlesNepote
CharlesNepote / OpenFoodFactsPower-dev.user.js
Last active March 26, 2021 09:46
Open Food Facts power user script.dev
// ==UserScript==
// @name Open Food Facts power user script-dev
// @description Helps power users in their day to day work. Key "?" shows help. This extension is a kind of sandbox to experiment features that could be added to Open Food Facts website.
// @namespace openfoodfacts.org
// @version 2020-02-20T14:38
// @include https://*.openfoodfacts.org/*
// @include https://*.openproductsfacts.org/*
// @include https://*.openbeautyfacts.org/*
// @include https://*.openpetfoodfacts.org/*
// @include https://*.pro.openfoodfacts.org/*
// ==UserScript==
// @name Open Food Facts power user script
// @description Helps power users in their day to day work. Key "?" shows help. This extension is a kind of sandbox to experiment features that could be added to Open Food Facts website.
// @namespace openfoodfacts.org
// @version 2020-06-26T14:08
// @include https://*.openfoodfacts.org/*
// @include https://*.openproductsfacts.org/*
// @include https://*.openbeautyfacts.org/*
// @include https://*.openpetfoodfacts.org/*
// @include https://*.pro.openfoodfacts.org/*
// ==UserScript==
// @name OFF mass updater user script
// @namespace openfoodfacts.org
// @version 0.1
// @description Mass Editor
// @match https://*.openfoodfacts.org/*
// @exclude https://*.wiki.openfoodfacts.org/*
// @icon http://world.openfoodfacts.org/favicon.ico
// @require http://code.jquery.com/jquery-latest.min.js
// @require http://code.jquery.com/ui/1.12.1/jquery-ui.min.js
// ==UserScript==
// @name Geneweb person importer for rodovid
// @description Helps rodovid users to import ancestor data from genealogies published on Geneanet.
// @namespace http://tampermonkey.net/
// @version 2019-09-30T10:17
// @description try to take over the world!
// @author [email protected]
// @match https://fr.rodovid.org/edit/Personne:New
// @match *.GED.txt
// @require http://code.jquery.com/jquery-latest.min.js
// ==UserScript==
// @name Open Food Facts power user2
// @description Helps power users in their day to day work. Key "?" shows help. This extension is a kind of sandbox to experiment features that could be added to Open Food Facts website.
// @namespace openfoodfacts.org
// @version 2019-09-11T21:45
// @include https://*.openfoodfacts.org/*
// @include https://*.openproductsfacts.org/*
// @include https://*.openbeautyfacts.org/*
// @include https://*.openpetfoodfacts.org/*
// @exclude https://*.wiki.openfoodfacts.org/*
@CharlesNepote
CharlesNepote / submit-pr.sh
Created September 4, 2019 17:56 — forked from jeremy8883/submit-pr.sh
Submit PR
#!/usr/bin/env bash
# This script runs all of the boilerplate commands that I repeatedly need to run
# when submitting a pull request for typical javascript projects.
# To summarize what this script does:
# - Opens github page to submit a PR in the web browser
# - Runs linting, tries to fix any errors, then automatically pushes the fixes
# up. You may need to make some fixes manually.
# - Runs jest tests. Of course, the CI server would also run these, but I prefer
# to run them locally as well. That way I can get told my tests are failing
// ==UserScript==
// @name Open Food Facts power user
// @description Helps power users in their day to day work. Key "?" shows help. This extension is a kind of sandbox to experiment features that could be added to Open Food Facts website.
// @namespace openfoodfacts.org
// @version 2019-09-09T21:45
// @include https://*.openfoodfacts.org/*
// @include https://*.openproductsfacts.org/*
// @include https://*.openbeautyfacts.org/*
// @include https://*.openpetfoodfacts.org/*
// @exclude https://*.wiki.openfoodfacts.org/*