This file contains hidden or 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
cp wpa_supplicant.conf /Volumes/boot/ | |
touch ssh | |
cp ssh /Volumes/boot | |
ssh [email protected] | |
# raspberry | |
passwd | |
# new p/w | |
exit | |
ssh [email protected] | |
sudo raspi-config |
This file contains hidden or 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
{ | |
"@id": "https://gist.github.com/robmckinnon/f6a2dcc02e98a66c74a50d7bc44e9c72/raw/store", | |
"@type": "Store", | |
"name": "Links Bike Shop", | |
"description": "The most \"linked\" bike store on earth!", | |
"product": [ | |
{ | |
"@id": "https://gist.githubusercontent.com/robmckinnon/f6f85a7708f24c3736de3ae4a93bd6ce/raw/links-swift-chain", | |
"@type": "Product", | |
"name": "Links Swift Chain", |
This file contains hidden or 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
{ | |
"@id": "https://gist.githubusercontent.com/robmckinnon/f6f85a7708f24c3736de3ae4a93bd6ce/raw/links-swift-chain", | |
"@type": "Product", | |
"name": "Links Swift Chain", | |
"description": "A fine chain with many links.", | |
"category": ["cat:parts", "cat:chains"], | |
"price": "10.00", | |
"stock": 10, | |
"@context": { | |
"Product": "http://ns.example.com/store#Product", |
This file contains hidden or 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
{ | |
"@id": "http://store.example.com/", | |
"@type": "Store", | |
"name": "Links Bike Shop", | |
"description": "The most \"linked\" bike store on earth!", | |
"product": [ | |
{ | |
"@id": "p:links-swift-chain", | |
"@type": "Product", | |
"name": "Links Swift Chain", |
This file contains hidden or 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
defmodule NodeProcess.Application do | |
# See https://hexdocs.pm/elixir/Application.html | |
# for more information on OTP Applications | |
@moduledoc false | |
use Application | |
def start(_type, _args) do | |
# List all child processes to be supervised | |
children = [ |
This file contains hidden or 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
#!/bin/sh | |
"$@" & | |
pid=$! | |
while read line ; do | |
echo line | |
done | |
kill -KILL $pid |
This file contains hidden or 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
defmodule NodeProcess.Server do | |
@moduledoc """ | |
A GenServer implementation that starts a Node.js server process using Elixir ports. | |
""" | |
# Elixir automatically defines callbacks not overriden | |
use GenServer | |
@doc """ | |
Called when application started via application.ex. |
This file contains hidden or 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
# Ambient Experiment | |
# Coded by Darin Wilson | |
# | |
# The piece consists of three long loops, each of which | |
# plays one of two randomly selected pitches. Each note | |
# has different attack, release and sleep values, so that | |
# they move in and out of phase with each other. This can | |
# play for quite awhile without repeating itself :) |
This file contains hidden or 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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "Account and Transaction API Specification", | |
"description": "Swagger for Account and Transaction API Specification", | |
"termsOfService": "https://www.openbanking.org.uk/terms", | |
"contact": { | |
"name": "Service Desk", | |
"email": "[email protected]" | |
}, |
This file contains hidden or 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
require 'openregister-ruby' | |
c = OpenRegister.register('country', :beta)._all_records + | |
OpenRegister.register('territory', :alpha)._all_records | |
c.select{|x| x.end_date.blank?}.map(&:name).sort |