Skip to content

Instantly share code, notes, and snippets.

View rmbrntt's full-sized avatar
πŸ‚

Ryan Barnett rmbrntt

πŸ‚
View GitHub Profile
# Quick js utils and functions I don't want to rediscover every 3 months
// create an object with keys from the range length of another object
// in: {a: null, b: null}
// out: {1: false, 2: false}
// why? Used an indexed dict to track the state of a grid of items by their index
Array.from({length: Object.keys({a: null, b: null}).length}, (v, k) => k+1)
.reduce((o, key) => ({ ...o, [key]: false}), {})

Ryan's Arch Linux installation guide

note: this guide was modified from https://github.com/michaelmcandrew/arch-install

Arch Linux does not have an automated installation process. Instead, it offers a live CD that boots to a prompt with a minimal set of packages and scripts that can be used to install a system and an accompanying installation guide, available at https://wiki.archlinux.org/index.php/installation_guide.

The guide is comprehensive but takes a long time to grok in its entirety. Hence I have written this guide, that documents the specific steps I take to install Arch Linux on my ThinkPad x220, Dell xps13 and Zotec Nano AD10. It is also a learning exercise in Arch Linux and some 'low level' Linux topics.

This guide was originally written in July 2017 and last updated in November 2017. If you're reading this guide much later, then things are likely to have moved on and you may want to consult the Arch Wiki for more up to date techniques and components, etc.

It's worth remembering that, althoug

WIP

--ignore-installed

- id: homekit_setup
alias: "Start HomeKit"
trigger:
- platform: event
event_type: zwave.network_ready
action:
- service: homekit.start
panel_iframe:
configurator:
title: Configurator
icon: mdi:wrench
url: http://hassio.local:3218
zwave:
usb_path: /dev/ttyUSB0
zha:

Keybase proof

I hereby claim:

  • I am rmbrntt on github.
  • I am rmbrntt (https://keybase.io/rmbrntt) on keybase.
  • I have a public key ASC7FjxWI0bNeR_tGr1Zy6onPdpRG5ZcBJrQxxkYUMUX2Qo

To claim this, I am signing this object:

.gitignore
git add git commit git diff git stash .gitignore
Git sees every file in your working copy as one of three things:
tracked - a file which has been previously staged or committed;
untracked - a file which has not been staged or committed; or
ignored - a file which Git has been explicitly told to ignore.
Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:
dependency caches, such as the contents of /node_modules or /packages
@rmbrntt
rmbrntt / gist:fcd2455433202caed6b9f74eeb7dbb0e
Created March 24, 2018 14:01 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@rmbrntt
rmbrntt / celery.sh
Created March 23, 2018 14:06 — forked from amatellanes/celery.sh
Celery handy commands
/* Useful celery config.
app = Celery('tasks',
broker='redis://localhost:6379',
backend='redis://localhost:6379')
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_QUEUES=(
Queue('default', routing_key='tasks.#'),