Skip to content

Instantly share code, notes, and snippets.

Avatar

Tyler Cipriani thcipriani

View GitHub Profile
View journal.sh
#!/usr/bin/env bash
# journal.sh
# ==========
#
# One daily text file to rule them all.
#
# Copyright: 2022 Tyler Cipriani <tyler@tylercipriani.com
# License: GPLv3
set -euo pipefail
@thcipriani
thcipriani / rtl-sdr-relay.service
Created May 21, 2021
RTL SDR settings for my acurite sensors
View rtl-sdr-relay.service
[Unit]
Description=rtl_433 to mqtt
[Service]
ExecStart=/home/pi/rtl_433_mqtt_relay.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
View chute.txt
00001000100000001011000011101000000011100001110110000000101000000111110000010111
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00011111111111111111000001010000000010000000001001000000111000000001110000010011
00000101000000011001000111111111111111110000001101000000100100000001110000001000
00000001000000000001000001001000000001010001111111111111111111111111111111111111
View word-of-the-day.sh
#!/usr/bin/env bash
#
# Word of the Day!
#
# Get m-w.com's top word lookup of however long...
#
# USAGE:
#
# (/^ヮ^)/*:・゚✧ date -Is
# 2021-01-06T16:38:27-07:00
View mirroring-all-of-gerrit.md

Cloning All Gerrit Repos

I'm doing this with the myrepos perl script. I started down the path of reimplementing a good chunk of functionality of myrepos before realizing my mistake and generating a config file instead :)

To generate the config file I used this beauty:

while read repo; do
    printf '[%s]\n%s\n\n' "src/${repo}.git" "checkout = git clone --mirror https://gerrit-replica.wikimedia.org/r/${repo}"

done < <(curl -sL https://gerrit.wikimedia.org/r/projects/?all | \

View bookclub-2020-04-15-bugs-and-priority.org
View 2020-02-25_bookclub.org

What nobody tells you about documentation

https://www.divio.com/blog/documentation/

Documentation makes your project more successful

  • If your project is poorly documented
    • Folks won’t use your software
    • Folks will misuse your software, even if they’re forced to use it (see also rsync)

There is no 1 documentation: there are 4 things

View pytail.py
#!/usr/bin/env python
# Pytail
# ------
# Dumb python program that lets you tail a file while interactively filtering it
import os
import re
import select
import subprocess
import sys
import time
View how-to-do-a-code-review.org

How to do a code review

Notes from Google’s Engineering Practices documentation

Terms

  • CL: Stands for “changelist,” which means one self-contained change that has been submitted to version control or which is undergoing code review. Other organizations often call this a “change” or a “patch.”
  • LGTM: Means “Looks Good to Me.” It is what a code reviewer says
View bookclub-2019-10-15.org