Skip to content

Instantly share code, notes, and snippets.

View AtHeartEngineer's full-sized avatar
🏠
Working from home

AtHeartEngineer AtHeartEngineer

🏠
Working from home
View GitHub Profile
/**
* HVAC Auto Off
*
* Author: dianoga7@3dgo.net
* Date: 2013-07-21
*/
preferences {
section("Control") {
input("thermostat", "capability.thermostat", title: "Thermostat")
}
/**
* Nest Direct
*
* Author: dianoga7@3dgo.net
* Date: 2013-07-18
* Code: https://gist.github.com/Dianoga/6055918
*
* INSTALLATION
* =========================================
* 1) Create a new device type (https://graph.api.smartthings.com/ide/devices)
@AtHeartEngineer
AtHeartEngineer / py2md.py
Last active August 29, 2015 14:19
Python to Markdown
#!/usr/bin/env python
# coding=utf-8
# <a class="btn btn-default pull-right" href="https://gist.github.com/TylerShaw/48ead56c19ce905ac513"><i class="fa fa-git"></i> Download the gist here!</a>
# Py2Md started as a little project to do the magical "self documenting code". After thinking about it, I realized self documenting code is great, but it's really not the point.
# Commenting code properly, if only better, is the point.
# This script evolved from me wanting to code better. I often look at other peoples code, or even old code I've written, and it takes me a few minutes to even figure out what each section is doing.
# This will hopefully solve that, not only by forcing me to comment code better, but to publish my code with decent comments.
# This script reads in a python file (either itself, or anything it's
# imported into) and converts the python file into a markdown file. It
@AtHeartEngineer
AtHeartEngineer / print_table.py
Created July 7, 2018 01:20 — forked from jhcepas/print_table.py
nice table printing in python
def print_table(items, header=None, wrap=True, max_col_width=20, wrap_style="wrap", row_line=False, fix_col_width=False):
''' Prints a matrix of data as a human readable table. Matrix
should be a list of lists containing any type of values that can
be converted into text strings.
Two different column adjustment methods are supported through
the *wrap_style* argument:
wrap: it will wrap values to fit max_col_width (by extending cell height)
cut: it will strip values to max_col_width
@AtHeartEngineer
AtHeartEngineer / pprint_color.py
Created July 7, 2018 01:28 — forked from EdwardBetts/pprint_color.py
Python pprint with color syntax highlighting for the console
from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import Terminal256Formatter
from pprint import pformat
def pprint_color(obj):
print highlight(pformat(obj), PythonLexer(), Terminal256Formatter())
#!/usr/bin/env bash
# RUN AS SUDO
systemctl stop geth &&
sudo -u geth geth --datadir /my/data/dir snapshot prune-state &&
systemctl start geth
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 24
Hash: 830c05ac c5c2bdad 8193f718 91cd1798
5a58c671 f3a2f1fc fd32e9e0 74b0a2c7
ca6e344d 2cc972e3 a1a6d59b fd1976ea
5b1014c7 74c34e23 585f73c7 753080ed
@AtHeartEngineer
AtHeartEngineer / nerd_fonts.sh
Last active February 17, 2023 06:27
Install all nerd fonts from home brew
brew install font-3270-nerd-font;
brew install font-cousine-nerd-font;
brew install font-heavy-data-nerd-font;
brew install font-meslo-lg-nerd-font;
brew install font-sauce-code-pro-nerd-font;
brew install font-agave-nerd-font;
brew install font-daddy-time-mono-nerd-font;
brew install font-hurmit-nerd-font;
brew install font-monofur-nerd-font;
brew install font-shure-tech-mono-nerd-font;
@AtHeartEngineer
AtHeartEngineer / maci-v1-dr_attestation.log
Created June 2, 2023 15:41
Attestation for MACI V1 DR MPC Phase 2 Trusted Setup ceremony
Hey, I'm AtHeartEngineer-1675654 and I have contributed to the MACI V1 DR MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (processmessages_6-8-2-3_test)
Contributor # 8
Contribution Hash: 71d68ce7 00e80d78 fd767d87 75cc991d
0f63bcd2 a9f9aa5f 24cc8ebe 42e95eb8
9c065912 81df53f7 0c6ee921 c24a8ecd
6e819581 a36b9396 3b5b144a 1b97ef4d
@AtHeartEngineer
AtHeartEngineer / rln-phase2-trusted-setup-ceremony_attestation.log
Created July 24, 2023 15:28
Attestation for RLN Phase2 Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm AtHeartEngineer-1675654 and I have contributed to the RLN Phase2 Trusted Setup Ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (rln-withdraw)
Contributor # 6
Contribution Hash: 87325223 0994453f d8c84520 ac2d87a0
8cb32476 144552c2 c268f759 ee5d29ee
50b71cfa 1b47250b 98f6f5bc c4e30acb
71bc3bf2 210a7c69 9fae1c18 b1809505