Assuming macOS and an SD card presented as /dev/rdisk3:
For ARMv7 (Pi 2):
diskutil unmountDisk disk3
xzcat ubuntu-18.04.2-preinstalled-server-armhf+raspi2.img.xz | sudo dd of=/dev/rdisk3 bs=32m
# Copyright (c) 2018 James Sharkey (https://github.com/jsharkey13/facebook_message_parser) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all |
# Python logger in AWS Lambda has a preset format. To change the format of the logging statement, | |
# remove the logging handler & add a new handler with the required format | |
import logging | |
import sys | |
def setup_logging(): | |
logger = logging.getLogger() | |
for h in logger.handlers: | |
logger.removeHandler(h) |
This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.
The Atom documentation is excellent. It's highly worth reading the flight manual.
log4j.rootLogger=INFO, syslog | |
log4j.appender.syslog=org.apache.log4j.net.SyslogAppender | |
log4j.appender.syslog.Facility=LOCAL7 | |
log4j.appender.syslog.FacilityPrinting=false | |
log4j.appender.syslog.Header=true | |
log4j.appender.syslog.SyslogHost=<PAPERTRAIL_HOST>.papertrailapp.com:<PAPERTRAIL_PORT> | |
log4j.appender.syslog.layout=org.apache.log4j.PatternLayout | |
log4j.appender.syslog.layout.ConversionPattern==%p: (%F:%L) %x %m %n |
(ns oxygen.client | |
"A minimal Clojure client for Airtable.com's HTTP API. | |
Supports retrieval of whole tables as well as individual records. | |
Dependencies: [org.clojure/data.json \"0.2.6\"] [clj-http \"2.0.0\"]" | |
(:require [clojure.data.json :as json] | |
[clojure.string :as string] | |
[clojure.set :as set] | |
[clj-http.client :as client])) | |
(def api-base "https://api.airtable.com/v0") |
My notes from implementing Job Vranish's excellent guide.
Follow along with the guide above, getting rustc from rustup or similar:
rustc 1.0.0-nightly (dcaeb6aa2 2015-01-18 11:28:53 +0000)
binary: rustc
commit-hash: dcaeb6aa23ecba2dc2af870668a9239136d20fa3
commit-date: 2015-01-18 11:28:53 +0000
# coding=utf-8 | |
''' Guess at ISO-3166-2 admin 1 codes for Natural Earth data. | |
Uses subdivision names from Ola Holmström’s iso-3166-2: | |
https://github.com/olahol/iso-3166-2.js/blob/master/data.csv | |
ne_10m_admin_1_states_provinces.csv is a direct CSV | |
export of Natural Earth admin-1 data as of Nov 8, 2012: | |
https://github.com/nvkelso/natural-earth-vector/tree/c97860331/10m_cultural |
user signs up with email and password:
user decides to link a Facebook account:
when the user clicks on the "Link Facebook" link in profile, login with javascript SDK