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
mount /dev/dm-5 /mnt | |
mount /dev/nvme0n1p5 /mnt/boot | |
mount /dev/nvme0n1p1 /mnt/boot/efi | |
mount --bind /dev /mnt/dev | |
mount --bind /proc /mnt/proc | |
mount --bind /sys /mnt/sys | |
mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars | |
chroot /mnt | |
# in chroot: | |
# grep efibootmgr /var/log/anaconda/program.log |
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
// In main process JS console: | |
const { AddonManager } = ChromeUtils.import("resource://gre/modules/AddonManager.jsm") | |
AddonManager.getInstallForURL(XPI_URL).then(r => r.install()) |
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
'use strict'; | |
let userAgentString = navigator.userAgent; | |
// Detect Chrome | |
let chromeAgent = userAgentString.indexOf("Chrome") > -1; | |
let safariAgent = userAgentString.indexOf("Safari") > -1 && !chromeAgent ? true : false; | |
Element.prototype.isInvisible = function() { | |
if (this.style.display == 'none') return true; | |
if (getComputedStyle(this).display === 'none') return true; | |
if (this.parentNode.isInvisible) return this.parentNode.isInvisible(); |
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
*.png |
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
from selenium import webdriver | |
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary | |
import pyax | |
import time | |
import psutil | |
URL = "https://en.wikipedia.org/wiki/World_War_I" | |
# URL = "https://html.spec.whatwg.org/" | |
FIREFOX_BINARY = "/Applications/Firefox Nightly.app/Contents/MacOS/firefox-bin" |
OlderNewer