Skip to content

Instantly share code, notes, and snippets.

View ErebusBat's full-sized avatar

Andrew Burns ErebusBat

View GitHub Profile
#!/usr/bin/env ruby
def method2
1/0
end
def method1(bare)
begin
method2
rescue Exception => e
@ErebusBat
ErebusBat / README.md
Last active November 12, 2015 14:56
Shell script to remove remote branches that have been merged upstream

Git Remove Merged Branches

Use this shell function to remove local git branches that have been merged in your origin repo (say from a GH PR).

Example

$ git_rm_merged_branches
The following branches have been merged and can be removed:
  circleci-tests
  curated-comments
@ErebusBat
ErebusBat / zwcfg.xml
Created January 16, 2018 13:24
Hass.io OZW Node Configuration for Leviton Decora DZ6HD Dimmer
<Node id="23" name="Front Room" location="" basic="4" generic="17" specific="1" roletype="5" devicetype="1536" nodetype="0" type="Multilevel Power Switch" listening="true" frequentListening="false" beaming="true" routing="true" max_baud_rate="40000" version="4" query_stage="Complete">
<Manufacturer id="1d" name="Leviton">
<Product type="3201" id="0001" name="DZ6HD: type=3201, id=0001" />
</Manufacturer>
<CommandClasses>
<CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1" request_flags="4" innif="true" mapping="38">
<Instance index="1" />
</CommandClass>
<CommandClass id="38" name="COMMAND_CLASS_SWITCH_MULTILEVEL" version="4" innif="true">
@ErebusBat
ErebusBat / comic_code.css
Last active May 5, 2022 23:51
Blink.sh - Comic Code Ligatures
@font-face {
font-family: "Comic Code";
font-style: normal;
font-weight: normal;
src: local('Comic Code');
}
@ErebusBat
ErebusBat / wezterm.lua
Last active March 20, 2024 19:21
WezTerm - Monaspace /w Ligatures and Comments
return {
font = wezterm.font({
-- family='Monaspace Neon',
family='Monaspace Argon',
-- family='Monaspace Xenon',
-- family='Monaspace Radon',
-- family='Monaspace Krypton',
weight='Regular',
harfbuzz_features={ 'calt', 'liga', 'dlig', 'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08' },
}),
@ErebusBat
ErebusBat / monaspace_argon.css
Last active November 10, 2023 17:40
Blink.sh - Monaspace
@font-face {
font-family: "Monaspace Argon";
font-style: normal;
font-weight: normal;
src: local('Monaspace Argon Regular');
}
@ErebusBat
ErebusBat / Chat
Created June 25, 2025 23:57
Deepseek ADD
Andrew Burns: start
---
Raycast AI: Okay, let's play! Here is your first yes-or-no question for 20 questions:
1/20: Is it an object?
---
Andrew Burns: Yes