Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version
This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.
Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version
This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.
We are poking around and looking for the following "cannot allocate memory" error message:
Failed to open TCP connection to elasticloadbalancing.us-west-2.amazonaws.com:443 (Cannot allocate memory - connect(2) for \"elasticloadbalancing.us-west-2.amazonaws.com\" port 443)
Target testing Ruby 3.2's TCPSocket.open call here: https://github.com/ruby/net-http/blob/v0.3.2/lib/net/http.rb#L1271-L1273. (Ruby TCPSocket implementation: https://github.com/ruby/ruby/blob/master/ext/socket/tcpsocket.c)
commonName,scientificName,native,phenology,url | |
A Moth,Abagrotis apposita,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474133 | |
A Moth,Abagrotis brunneipennis,Native,Year-round,https://idfg.idaho.gov/species/taxa/25522 | |
A Moth,Abagrotis discoidalis,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474134 | |
A Moth,Abagrotis dodi,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474135 | |
A Moth,Abagrotis duanca,Native,Year-round,https://idfg.idaho.gov/species/taxa/26322 | |
A Moth,Abagrotis erratica,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474136 | |
A Moth,Abagrotis forbesi,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474137 | |
A Moth,Abagrotis glenni,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474138 | |
A Moth,Abagrotis hermina,Native,Year-round,https://idfg.idaho.gov/species/taxa/1474139 |
FROM node:16.18 | |
RUN git clone --single-branch https://github.com/skidding/jobs-done.git /jobsdone | |
WORKDIR /jobsdone | |
COPY data.js data.js | |
RUN yarn install \ | |
&& yarn build \ | |
&& yarn global add http-server |
#!/usr/bin/env node | |
/** | |
* @file Generate a deterministic name from a commit's short hash. | |
* Inspired by Docker 0.7.x which generates names from notable scientists and hackers. | |
*/ | |
const adjectives = [ | |
'admiring', | |
'adoring', |
Environment variables can be loaded from a properties file in bash
testenv.properties
foo=alpha
bar=beta
This will work because input redirection happens in the current shell.
#!/usr/bin/env bash | |
# Configure by exporting TODOPROJECT_FILE, the file path to write to. | |
# Recommended: alias tp="path/to/todoproject.sh" | |
todoproject_file="${TODOPROJECT_FILE:-$HOME/todoproject.tsv}" | |
function initFile { | |
if [[ -f "${todoproject_file}" ]]; then return 0; fi | |
mkdir -p "$(dirname "${todoproject_file}")" | |
printf "Timestamp of Thought\tProject\n" > "${todoproject_file}" |
import io.github.bonigarcia.wdm.WebDriverManager; | |
import java.io.IOException; | |
import java.util.Map; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.chrome.ChromeOptions; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import org.openqa.selenium.firefox.FirefoxOptions; | |
/* |
import { spawnSync } from 'child_process' | |
import { readFileSync } from 'fs' | |
import { temporaryWriteSync } from 'tempy' | |
// Get the default editor | |
const editor = process.env['VISUAL'] || process.env['EDITOR'] || 'vi' | |
console.log(`Opening in EDITOR: ${editor}. Save and quit the editor process to continue.`) | |
// If within another interactive program, uncomment this to prevent wacky visuals |
let newelement = document.createElement('h1') | |
newelement.textContent = 'MODIFIED' | |
document.getElementsByTagName('h1')[0].append(newelement) |