Skip to content

Instantly share code, notes, and snippets.

@holmes
holmes / BusinessModel.kt
Created April 15, 2021 17:39
BusinessModel Sample Interface
package com.squareup.appointments.serum.business
import android.os.Parcelable
import com.squareup.address.Address
import com.squareup.protos.common.Money
import kotlinx.parcelize.Parcelize
import org.threeten.bp.Duration
interface BusinessModel : Parcelable {
val id: String
@holmes
holmes / FreeNAS11 Media Stack.md
Created May 8, 2019 12:49 — forked from BernCarney/FreeNAS11 Media Stack.md
FreeNAS 11 - Jails setup for Plex, NGINX, PlexPy, Sonarr, Radarr, Jackett, Ombi, and Nzbget

FreeNAS 11 setup for Plex, PlexPy, Sonarr, Radarr, Jackett, NZBGet, Organizr, NGinx, and Ombi

I am currently working on updating this guide after updating my media server. I have added notes on things I no longer use but may update those sections in the future for users who still use them. As of now, I have everything working with the exception of Ombi and the plugins I no longer use.

@holmes
holmes / gist:d5946c263ad48935dd86e662db125108
Last active July 10, 2017 23:40
Change committer & author on my machine
# Check if the committer and author email addresses are different
git cat-file -p HEAD
# If they are, change the global setting for committer/author
export GIT_COMMITTER_EMAIL="holmes.j@gmail.com"
export GIT_AUTHOR_EMAIL="holmes.j@gmail.com"
git commit --amend -s
git push holmes -f
08:04:33.909 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 19 00 49 84 03 13 04 11 01 5E 86 72 5A 85 59 73 26 27 70 2C 2B 5B 7A EF 5B 93
08:04:33.910 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
08:04:33.910 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 19 00 49 84 03 13 04 11 01 5E 86 72 5A 85 59 73 26 27 70 2C 2B 5B 7A EF 5B 93
08:04:33.911 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 19 00 49 84 03 13 04 11 01 5E 86 72 5A 85 59 73 26 27 70 2C 2B 5B 7A EF 5B 93
08:04:33.911 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=ApplicationUpdate[0x49], type=Request[0x00], priority=High, dest=255, callback=0, payload=84 03 13 04 11 01 5E 86 72 5A 85 59 73 26 27 70 2C 2B 5B 7A EF 5B
08:04:33.911 [DEBUG] [essage.ApplicationUpdateMessageClass] - NODE 3: Application update request. Node information received.
08:04:33.911 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 3: Starting init
08:07:16.133 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 19 00 49 84 04 13 04 11 01 5E 86 72 5A 85 59 73 26 27 70 2C 2B 5B 7A EF 5B 94
08:07:16.133 [DEBUG] [ve.internal.protocol.ZWaveController] - Receive queue TAKE: Length=0
08:07:16.134 [DEBUG] [wave.internal.protocol.SerialMessage] - Assembled message buffer = 01 19 00 49 84 04 13 04 11 01 5E 86 72 5A 85 59 73 26 27 70 2C 2B 5B 7A EF 5B 94
08:07:16.134 [INFO ] [marthome.event.ItemStateChangedEvent] - zwave_serial_zstick_d2ae07db_serial_sof changed from 3428 to 3429
08:07:16.134 [DEBUG] [ve.internal.protocol.ZWaveController] - Process Message = 01 19 00 49 84 04 13 04 11 01 5E 86 72 5A 85 59 73 26 27 70 2C 2B 5B 7A EF 5B 94
08:07:16.134 [DEBUG] [ve.internal.protocol.ZWaveController] - Message: class=ApplicationUpdate[0x49], type=Request[0x00], priority=High, dest=255, callback=0, payload=84 04 13 04 11 01 5E 86 72 5A 85 59 73 26 27 70 2C 2B 5B 7A EF 5B
08:07:16.134 [DEBUG] [essage.ApplicationUpdateMessageClass] - NODE 4: Applicatio
@holmes
holmes / hack.sh
Created June 1, 2017 20:12 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@holmes
holmes / hack.sh
Created June 1, 2017 20:12 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@holmes
holmes / gist:5768944
Last active December 18, 2015 10:29
Send an email
public void fireEmailIntent() {
Uri uri = Uri.parse("mailto:holmes@squareup.com");
Intent intent = new Intent(Intent.ACTION_SENDTO, uri);
intent.putExtra(Intent.EXTRA_CC, new String[]{"pay@squareup.com"});
intent.putExtra(Intent.EXTRA_TEXT, "\n--\nSent from Android 101, c/o Franklin");
intent.putExtra(Intent.EXTRA_SUBJECT, "$25");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
}