Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
#!/bin/sh | |
gw="$(route -n show | awk '$1 == "default" { print $2 }')" | |
awk -v gw="$gw" ' | |
$1 == "PrivateKey" { key = $3 } | |
$1 == "Address" { | |
addr = $3 | |
sub(/,.*/, "", addr) | |
} | |
$1 == "DNS" { dns = $3 } | |
$1 == "PublicKey" { peer = $3 } |
// ==UserScript== | |
// @name noVNC Paste for Proxmox | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2a | |
// @description Pastes text into a noVNC window (for use with Proxmox specifically) | |
// @author Chester Enright | |
// @match https://* | |
// @include /^.*novnc.*/ | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// @grant none |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.Ocean Beach pickup ultimate in SF uses the below described setup for nighttime beach frisbee games.
Regulation fields are 150' x 90', ours is probably slightly smaller.
We get 90+ min (probably 2h+) of playtime out of this setup (batteries can be upgraded if you want more time).
# Prepare an SD card with Alpine Linux for a Raspberry Pi | |
# See: https://wiki.alpinelinux.org/wiki/Raspberry_Pi | |
# Editable configuration | |
DISTRO = alpine | |
# ARCH = armhf | |
ARCH = aarch64 | |
MAJOR_VERSION = 3.9 | |
MINOR_VERSION = 2 |
I had a bit of trouble trying to configure permissions to upload files from my Google Compute Engine instance to my Google Cloud Storage bucket. The process isn't as intuitive as you think. There are a few permissions issues that need to be configured before this can happen. Here are the steps I took to get things working.
Let's say you want to upload yourfile.txt
to a GCS bucket from your virtual machine.
You can use the gsutil
command line tool that comes installed on all GCE instances.
If you've never used the gcloud
or gsutil
command line tools on this machine before, you will need to initialize them with a service account.
var content = document.getElementsById('scrollDiv'); | |
content.addEventListener('touchstart', function (event) { | |
this.allowUp = (this.scrollTop > 0); | |
this.allowDown = (this.scrollTop < this.scrollHeight - this.clientHeight); | |
this.slideBeginY = event.pageY; | |
}); | |
content.addEventListener('touchmove', function (event) { | |
var up = (event.pageY > this.slideBeginY); | |
var down = (event.pageY < this.slideBeginY); |