Skip to content

Instantly share code, notes, and snippets.


Lacy Morrow lacymorrow

Block or report user

Report or block lacymorrow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lacymorrow / img_backup_restore.txt
Last active Aug 25, 2018
Clone SD image backup
View img_backup_restore.txt
> via
With gzip, to save a substantial amount of space:
sudo dd if=/dev/rdiskx bs=1m | gzip > /Users/tmorrow/Documents/rpi0-arch.gz
And, to copy the image back onto the SD:
gzip -dc /path/to/backup.gz | sudo dd of=/dev/rdiskx bs=1m
lacymorrow / util.css
Last active Mar 19, 2019
CSS Code Utilities
View util.css
/* Text smoothing */
body {
font-family: Camphor, Open Sans, Segoe UI, sans-serif;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Nice hover effect
button:hover {
silencesys /
Last active Sep 24, 2019 — forked from pocotan001/
List of emoji for git commits.

Git Commit Message

All Git Commit Messages MUST meet with this Text Format:

:emoji: Subject
(Only One NewLine)
Message Body
(Only One NewLine)
Ref <###>

Aligning images

left alignment

This is the code you need to align images to the left:

<img align="left" width="100" height="100" src="">
Rich-Harris /
Last active Dec 15, 2019
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

treshugart /
Last active Apr 19, 2019
Server-side rendering web components in Electron

To render a component:

electron server.js --html "<x-app></x-app>" --scripts ./entry-point

Where --html is the HTML that you want to render and --scripts is the entry point that will be loaded prior to rendering the HTML. The entry point should contain all your component definitions that you need for the HTML to be rendered.

StickyCube / index.html
Created Jun 27, 2016
Electron click through transparency example
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Test App</title>
html, body {
height: 100%;
ctrlaltdylan /
Created Apr 13, 2016
Tutorial for setting up a RasPi 2 to work as a lightweight kiosk.

Installing a minimal Arch Linux kiosk on a RasPi 2

Arch Linux is both lightweight and highly customizable, and is the perfect distro for creating a kiosk using the low-powered RasPi 2. Full details about Arch Linux on the RasPi 2 can be found on the [Official Arch Linux ARM wiki] (

Getting started

View Sony Super HAD HS1177 Camera

Cam settings

Before you do anything, perform a factory reset.


Lens: Manual

White bal: AT1

parmentf /
Last active Dec 13, 2019
Git Commit message Emoji
You can’t perform that action at this time.