Skip to content

Instantly share code, notes, and snippets.

View Jaharmi's full-sized avatar
👋
You had me at ‘Hello World’!

Jeremy Reichman Jaharmi

👋
You had me at ‘Hello World’!
  • Landenberg, PA
  • 15:54 (UTC -04:00)
View GitHub Profile
@Jaharmi
Jaharmi / mailrules.json
Created December 8, 2023 03:53 — forked from dmdeller/mailrules.json
Fastmail rules to filter useless delivery emails
[
{
"markFlagged": false,
"fileIn": "Deliveries",
"combinator": "any",
"snoozeUntil": null,
"discard": false,
"created": "2023-07-25T14:15:44Z",
"previousFileInName": null,
"name": "Useless delivery notifications",
@Jaharmi
Jaharmi / gist:e3e507f52bc4a9bff387a4134ca156d3
Created December 24, 2022 13:56
Error: ESPHome install with s00500/ESPUI library
In file included from /data/firebeetle-061cb8/.piolibdeps/firebeetle-061cb8/ESP Async WebServer/src/AsyncWebSocket.h:32,
from /data/firebeetle-061cb8/.piolibdeps/firebeetle-061cb8/ESP Async WebServer/src/AsyncWebSocket.cpp:22:
/data/firebeetle-061cb8/.piolibdeps/firebeetle-061cb8/ESP Async WebServer/src/ESPAsyncWebServer.h:27:10: fatal error: FS.h: No such file or directory
************************************************************
* Looking for FS.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:FS.h"
* Web > https://registry.platformio.org/search?q=header:FS.h
*

Campaign Rules

1. Be Respectful & Pay Attention

Please remember that your Game Master has put in time and effort (probably more than you realize) into the campaign you asked to participate in. Be respectful and pay attention. If you are playing other games, browsing social media, chatting, etc. it's more obvious than you probably think and it detracts from everyone's experience. A player being absent is less distracting than a player who can be heard typing in the background for long periods or consistently has no idea what is going on in the game. We understand that people have responsibilities such as kids, partners, work calls, etc. that may need your attention suddenly and that's not an issue unless it happens frequently and you are in a [STRICT] campaign (see rule 2).

2. Respect the [STRICT] Tag

We have different campaign styles and are pretty relaxed in most of them. However, sometimes we want to take a campaign more seriously, particularly if it's an official adventure module. Loo

@Jaharmi
Jaharmi / complex_salt_orchestrate.sls
Created October 1, 2019 13:20 — forked from whiteinge/complex_salt_orchestrate.sls
An example of a complex, multi-host Salt Orchestrate state that performs status checks as it goes
# /srv/salt/upgrade_the_app.sls
# Example of a complex, multi-host Orchestration state that performs status checks as it goes.
# Note, this is untested and is meant to serve as an example.
# Run via: salt-run state.orch upgrade_the_app pillar='{nodes: [nodeA, nodeB], version: 123}'
{% set nodes = salt.pillar.get('nodes', []) %}
{% set all_grains = salt.saltutil.runner('cache.grains',
tgt=','.join(nodes), tgt_type='list') %}
{# Default version if not given at the CLI. #}
@Jaharmi
Jaharmi / getosversionfromdmg.py
Last active September 26, 2017 03:05 — forked from bruienne/getosversionfromdmg.py
Get OS X version from DMG
#!/usr/bin/python
#
# getosversionfromdmg.py
#
# Copyright (c) 2014 The Regents of the University of Michigan
# Copyright (c) 2017 Jeremy Reichman
#
# Retrieves the OS version and build from the InstallESD.dmg contained in
# a typical "Install [Mac OS X|OS X|macOS] <Name>.app" bundle.
#
@Jaharmi
Jaharmi / gist:50951892c7bff21560bb
Created March 9, 2016 16:34
A Luggage makefile that specifies a Title with spaces.
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=Title\ with\ Spaces
REVERSE_DOMAIN=com.pretendco
PACKAGE_ID=${REVERSE_DOMAIN}.titlewithoutspaces
PACKAGE_NAME=${TITLE}
PAYLOAD=\
...
#!/usr/bin/expect
log_user 0
set password s3kr1tp4ssw0rd
spawn fdesetup changerecovery -personal -key /path/to/keychain_with_both_private_and_public_keys_inside.keychain -outputplist > /path/to/new_recovery_key.plist
expect "keychain: "
send "$password\n"
log_file -a /path/to/new_recovery_key.plist
expect EOF
#!/bin/sh
#
# This shell snippet will pre-set CrashReporter's setting for diagnostics submissions
# to Apple and app developers. This seems to also have the side effect of not showing
# the additional "Diagnostics & Usage" dialog at the end of the Setup Assistant,
# because the settings have already been configured in the
# DiagnosticMessagesHistory.plist file.
#
# Modify the SUBMIT_TO_* variables below to either YES or NO to configure the setting.
# They are currently set to the defaults suggested by Apple when the dialog is shown
@Jaharmi
Jaharmi / extract_coretypes_icons.py
Created August 15, 2014 02:35
Extract icons from the OS X CoreTypes bundle while resizing them to 128×128 pixels and converting the images to PNG format.
#!/usr/bin/python
import os
import subprocess
import glob
image_format = "png"
# Get the paths to all icon files in the CoreTypes bundle
coretypes_path = '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources'