A simple demo of using Nginx as a reverse proxy to add basic authentication.
# -*- coding: utf-8 -*- | |
""" | |
A command-line interface for running Jupyter Notebooks. | |
Usage: run.py [OPTIONS] [NOTEBOOK_PATHS]... | |
Executes Jupyter Notebooks from the command line. | |
Expects one or more file paths input as arguments. |
1- Go to: https://www.facebook.com/{your_id_or_username}/allactivity/?category_key=LIKEDPOSTS&filter_hidden=ALL&filter_privacy=NONE
You can use Filter to choose year or month.
2- Open the console and run the following JavaScript code and wait:
setInterval(() => { for (const Button of document.querySelectorAll('div[aria-label="Action options"]')) { Button.click() document.querySelector('div[role="menuitem"]').click() } }, 1000)
// In main process JS console: | |
const { AddonManager } = ChromeUtils.import("resource://gre/modules/AddonManager.jsm") | |
AddonManager.getInstallForURL(XPI_URL).then(r => r.install()) |
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |
const fetch = require('node-fetch'); | |
async function run() { | |
let username = "YOUR USERNAME HERE"; | |
let password = "YOUR APP PASSWORD"; | |
let authBasic = new Buffer(username + ':' + password).toString('base64'); | |
let session = await (await fetch('https://jmap.fastmail.com/.well-known/jmap', { | |
headers: { | |
"Authorization": "Basic " + authBasic | |
} | |
})).json(); |
import adafruit_ht16k33.segments | |
import board | |
from digitalio import DigitalInOut, Direction | |
import time | |
from busio import I2C, SPI | |
import adafruit_esp32spi.adafruit_esp32spi_socket as socket | |
from adafruit_esp32spi import adafruit_esp32spi | |
import adafruit_requests as requests | |
try: |
#!/usr/bin/env python | |
#coding: utf-8 | |
# | |
# Run this file with superuser rights ('sudo') to install the Signal client | |
raw_input("Welcome to the signal-cli install wizard.\nPress ENTER when you are ready.") | |
import os | |
The USGS provides detailed downloads of fire perimeters, with timestamped files that can be used to show the spread of a major fire over time.
Using the 2017 Thomas fire as an example, we'll process this data into a single SVG file with all the different perimeter measurements.
This index page contains links to a series of shapefiles of the fire boundary, each one with a timestamp:
https://rmgsc.cr.usgs.gov/outgoing/GeoMAC/2017_fire_data/California/Thomas/
This explains how to set up Vim on Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2) in order to share the clipboard between Windows and Ubuntu.
- Windows 10 Home
- Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2)
- Build Vim with the clipboard option enabled
- Set up VcXsrv Windows X Server