Skip to content

Instantly share code, notes, and snippets.

View vincentclee's full-sized avatar
🇺🇸
USA

Vincent Lee vincentclee

🇺🇸
USA
View GitHub Profile
@vincentclee
vincentclee / Install Python 3.7.6 on CentOS 7
Last active February 21, 2020 22:08 — forked from wpupru/Install Python 3.7.0 on CentOS 7
Install Python 3.7.0 on Centos 7
Install Python 3.7.6 on CentOS/RHEL 7
1.Requirements:
yum install gcc openssl-devel bzip2-devel make
2.Download Python 3.7:
cd /usr/src
wget https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tgz
@vincentclee
vincentclee / firefox-esr-re-enable-addons
Created August 9, 2019 14:28
To re-enable all disabled non-system addons you can do the following. https://news.ycombinator.com/item?id=19824410
// For FF < v57 >...?
async function set_addons_as_signed() {
Components.utils.import("resource://gre/modules/addons/XPIProvider.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
let XPIDatabase = this.XPIInternal.XPIDatabase;
let addons = await XPIDatabase.getAddonList(a => true);
for (let addon of addons) {
// The add-on might have vanished, we'll catch that on the next startup