Skip to content

Instantly share code, notes, and snippets.


Jaeho Shin netj

View GitHub Profile
netj /
Last active Jul 1, 2021
a nifty script for ssh'ing into any AWS SSM-enabled EC2 instance with no extra manual setup
#!/usr/bin/env bash
# ~/.ssh/ -- a nifty script for ssh'ing into any AWS SSM-enabled EC2 instance with no extra manual setup
# Author: Jaeho Shin <>
# Created: 2021-02-01
# See also:
# -
# -
# 1. Copy this script to ~/.ssh/
#!/usr/bin/env bash
# a Day One CLI for macOS script generator for importing diary entries from Momento3 text exports
# Prerequisites:
# - install dayone2 CLI
# - brew install coreutils
# Usage: run the script inside a Momento Export (one text file per day format)
mpkocher / DataClasses.ipynb
Created May 25, 2019
Overview of Dataclasses, namedtuple, typing.NamedTuple, attrs and pydantic
View DataClasses.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
netj / Enby Code R.css
Created Mar 11, 2019
a Blink Shell Font
View Enby Code R.css
@font-face {
font-family: "Envy Code R";
font-style: normal;
font-weight: normal;
View exshell
#!/usr/bin/env bash
# exshell -- a handy way to use command-line formulae's output to augment a TAB-separated input
# Synopsis:
# $ cat a.txt
# USA United States of America
# India Republic of India
# South_Korea Republic of Korea (ROK)
# $ exshell <a.txt \
View remocon
#!/usr/bin/env bash
# remocon -- run given command remotely, replicating local git work tree on a remote host, and downloading remote changes if needed
# Author: Jaeho Shin <>
# Created: 2018-03-08
set -euo pipefail
error() { echo >&2 "📡 ‼️ " "$@"; false; }
warning() { echo >&2 "📡 ⚠️ " "$@"; }
simont77 /
Last active Sep 17, 2021 — forked from gomfunkel/
Elgato Eve HomeKit Services & Characteristics

Elgato Eve HomeKit Services & Characteristics

A work in progress collection of proprietary and as of yet undocumented HomeKit characteristics and their UUIDs used by Elgato Eve.

Based on the work by gomfunkel and 0ff. Characteristics and data dump for Door, Motion and Thermo thanks to @NebzHB.

More infos not yet incorporated in the comment section.

This list is not including all Eve accessories available and some services and characteristics still make no sense to me. If you have anything to contribute, please leave a comment. There is no guarantee that the information listed below is correct.

treyhunner /
Last active Jul 23, 2021
Test performance of different dictionary merging functions in Python
multiple_update: 57 ms
copy_and_update: 46 ms
dict_constructor: 56 ms
kwargs_hack: 45 ms
dict_comprehension: 45 ms
concatenate_items: 166 ms
union_items: 163 ms
joshbode /
Last active Sep 21, 2021
YAML Loader with include constructor (Python 3)

MIT License

Copyright (c) 2018 Josh Bode

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:

kamermans /
Last active Jul 3, 2021
AWS EC2 script to mount Instance Store 0 and 1 as Docker temp and volume storage
#!/bin/sh -e
# This script will DESTROY /dev/xvdb and /dev/xvdc and remount them
# for Docker temp and volume storage.
# It is intended for EC2 instances with 2 ephemeral SSD instance stores
# like the c3.xlarge instance type.
service docker stop || true
# Setup Instance Store 0 for Docker Temp
# (set in /etc/default/docker)