hdiutil create -o /tmp/HighSierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
hdiutil detach /Volumes/OS\ X\ Base\ System
hdiutil convert /tmp/HighSierra.cdr.dmg -format UDTO -o /tmp/HighSierra.iso
mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
Install required Rollup stuffs
npm install --save-dev rollup rollup-plugin-babel rollup-plugin-commonjs \
rollup-plugin-copy rollup-plugin-node-resolve rollup-plugin-replace \
rollup-plugin-uglify
Install required Babel stuffs
#!/usr/bin/env bash | |
set -e | |
repos=$(find . -name .git -a -type d -exec dirname {} \;) | |
eachRepo() { | |
local f | |
f=$* | |
for repo in ${repos}; do |
Wiring up a Google Form to GitHub is not that difficult with a little bit of Apps Script automation. All you need is a Google account, a GitHub account, and a web browser...
Personal access tokens provide an easy way to interact with the GitHub API without having to mess with OAuth. If you don't already have a personal access token with repo or public_repo access, visit your GitHub settings page and generate a new token.
Be sure to copy your token some place safe and keep it secure. Once generated, you will not be able to view or copy the token again.
- Create a Google Form.
https://www.mixcloud.com/developers/widget/#footerwidget
The autostart.js script will cause the main feed to start playing. This is dependent on the browser settings.
Chrome - click on media preferences in location bar (next to site address) and select allow audio and video.
Firefox seems somewhat less willing to autoplay.
Unpack this to a directory. It'll need to be running from a webserver. Simple way to do this is
Download the image (or imager for your preferred system).
Add ssh
file in root of boot partition to enable headless SSH access.
See https://www.raspberrypi.org/documentation/configuration/boot_folder.md
for more details.
See also https://www.raspberrypi.org/documentation/configuration/wireless/headless.md for setting up wireless on headless system.
# Install required software | |
sudo yum --assumeyes update | |
sudo yum --assumeyes install git docker | |
sudo systemctl enable docker | |
sudo systemctl start docker | |
sudo usermod -a -G docker $USER | |
docker ps | |
# Install gitlab runner | |
export arch=amd64 |
#!/bin/bash | |
[[ -z ${HOST} || -z ${ADMIN_PASSWORD} || -z ${REALM} ]] && echo Make sure HOST, ADMIN_PASSWORD and REALM are set > /dev/stderr && exit 1 | |
ACCESS_TOKEN=$(curl \ | |
--silent \ | |
--data "client_id=admin-cli" \ | |
--data "username=admin" \ | |
--data "password=${ADMIN_PASSWORD}" \ | |
--data "grant_type=password" \ | |
"${HOST}/auth/realms/master/protocol/openid-connect/token" | jq --raw-output .access_token) |
/** | |
* Split a string on whitespace, keeping within a maximum line length | |
*/ | |
export function splitOnWhitespace(source, maxLength=90) { | |
// If shorter than the maxLength, just return the source in an array | |
if (source.length <= maxLength) { | |
return [source]; | |
} | |
// Find all space characters |