Skip to content

Instantly share code, notes, and snippets.

@yifangd
yifangd / USAGE.md
Created February 16, 2024 09:23 — forked from mterwill/USAGE.md
Beancount importers, scripts, etc.

Note: everything here is pretty specific to my usage/accounts and not written for public use... You'll probably have to tweak a bunch of stuff.

$ bean-extract config.py ~/Downloads # the csvs should be in here
@yifangd
yifangd / Dockerfile
Created October 25, 2022 23:17 — forked from swilson/Dockerfile
Home Assistant with X10 (heyu) integration
FROM homeassistant/home-assistant:stable
# Install dev tools
RUN apk add --update alpine-sdk
# Grab heyu
RUN wget -O heyu.zip https://codeload.github.com/HeyuX10Automation/heyu/zip/v2.10.1
RUN unzip heyu.zip
# Build it (the 'darwin' configuration seems to work on Alpine)
@yifangd
yifangd / sync-passwords.sh
Created March 15, 2021 16:38 — forked from ZviBaratz/sync-passwords.sh
Simple passwords file synchronizer using Rclone
#!/bin/bash
# Important note:
# If you don't synchronize but then edit the other file,
# the newer modification time on the second file edited
# will cause data to be overridden.
# The solution would be to merge manually
# (Database --> Merge from database).
@yifangd
yifangd / passwordsync
Created March 15, 2021 16:36 — forked from rocketraman/passwordsync
Keepassxc password sync using rclone
#!/usr/bin/env bash
#
# Copyright 2020 Raman Gupta
# LICENSE: https://opensource.org/licenses/MIT
# https://gist.github.com/rocketraman/820d94f2f9c8731a6f2d56cbc2ddb60f
#
# Syncs a local keepassxc database with a remote source via rclone.
# The basic process is:
# 1) rclone copy to temporary local location
# 2) use keepassxc cli to merge the remote database into the local one
@yifangd
yifangd / kick-it.sh
Created May 1, 2019 21:25 — forked from FreeWillaert/kick-it.sh
AWS Lambda LifetimeTest - kick it
aws lambda update-function-configuration \
--function-name "LifetimeTest" \
--description $(date -u +"%Y-%m-%dT%H:%M:%SZ")
@yifangd
yifangd / 000-Cheat-Sheets.md
Created January 24, 2018 20:04 — forked from JoshuaEstes/000-Cheat-Sheets.md
Developer Cheat Sheets for bash, git, gpg, irssi, mutt, tmux, and vim. See my dotfiles repository for extra info.
@yifangd
yifangd / cf-audit-cloudtrail.template
Created June 15, 2017 05:15 — forked from ryo0301/cf-audit-cloudtrail.template
CloudFormation - CloudTrail template
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Parameters" : {
"BucketName" : {
"Description" : "Name of the S3 bucket.",
"Type" : "String"
},
"TopicName" : {
"Description" : "Name of the SNS topic.",
"Type" : "String",
@yifangd
yifangd / route53-asg-rrdns.sh
Created October 2, 2015 03:34 — forked from ambakshi/route53-asg-rrdns.sh
Add all instances in an autoscaling group to an equivalently named dns entry.
#!/bin/bash
#
# Get all IPs from an autoscale group and update set the local ip as
# equal weight A entries (round robin dns). Takes autoscale group as
# parameter.
#
# Amit Bakshi
# 10/21/2014
#