Skip to content

Instantly share code, notes, and snippets.

@seltzered
seltzered / sample.iif
Created December 21, 2023 23:16
rough sample iif file to test with https://github.com/erikmack/qb-escape
!HDR PROD VER REL IIFVER DATE TIME
HDR QuickBooks 2023 for Macintosh Version 22.0.2.570 Release R3.1 1 12/21/2023 1234567890
!ACCNT NAME REFNUM TIMESTAMP ACCNTTYPE OBAMOUNT DESC ACCNUM SCD EXTRA
ACCNT BigBank Checking 5 0 BANK "1,230.40" 10000 0
ACCNT Clearing Account 1 0 BANK 1.23 10500 0
ACCNT Accounts Receivable 40 0 AR "1,234.56" Unpaid or unapplied customer 11000 0
ACCNT Undeposited Funds 43 0 OCASSET 0.00 "Funds received, but not yet d" 12000 0 UNDEPOSIT
ACCNT Inventory Asset 41 0 OCASSET "9,999.88" Costs of inventory purchased 12100 0 INVENTORYASSET
!CUST NAME REFNUM TIMESTAMP BADDR1 BADDR2 BADDR3 BADDR4 BADDR5 SADDR1 SADDR2 SADDR3 SADDR4 SADDR5 PHONE1 PHONE2 FAXNUM EMAIL CONT1 CONT2 CTYPE TERMS TAXABLE SALESTAXCODE LIMIT RESALENUM REP TAXITEM NOTEPAD SALUTATION COMPANYNAME FIRSTNAME MIDINIT LASTNAME CUSTFLD1 CUSTFLD2 CUSTFLD3 CUS
@seltzered
seltzered / downloadRoamFirebase.py
Last active January 12, 2023 07:07 — forked from nicolevanderhoeven/downloadfirebase.py
Download Roam images (firebase) and google doc images (googleusercontent) locally for use with Logseq/Obsidian vault - Fork that has page-based image names, and assumes no-extension images are PNGS rather than not downloading at all
# Opens files in directory, outputs firebase URLs to a file, downloads them, and replaces the links with a link to the new files.
# To use, replace PATH in the variable vaultDir with your vault's root directory.
# This automatically puts filenames in ../assets (Logseq style) - change the newFilePath variable if you want to change this
import re
import glob
import os
import requests
import calendar
import time
@seltzered
seltzered / add_zerotier.sh
Last active May 15, 2022 01:25 — forked from openoms/add_zerotier.sh
Add zerotier to TrueNAS
#! /usr/bin/env sh
pkg install wget -y
echo "# Check the latest version at: https://www.freshports.org/net/zerotier/"
echo "# Which version to install?"
echo "# Example:"
echo "1.6.5"
read VERSION
@seltzered
seltzered / gulpfile.js
Last active October 11, 2021 23:11
Gulpfile example for front-end packages (both build & client-side) with just yarn (i.e. depends on npm, but no Bower needed!)
// This is a sample gulpfile based off of the
// ghost 'edition' theme (https://github.com/TryGhost/Edition)
// but designed to only use
// yarn for management of both
// build-time npm packages and
// client-side npm packages.
//
// Most of the interesting stuff is in the refreshNodeDependencies function.
//
// More info: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
@seltzered
seltzered / kbct.yaml
Last active January 29, 2023 04:07
Custom Linux KBCT Keymap for Nuphy Nutype F1 Keyboard
# Custom Linux Keymap for Nuphy Nutype F1 Keyboard
# - Swap capslock for escape
# - Swap escape combo for grave accent & tilde
# - Enable capslock via shift modifiers
# (helpful in rare scenarios where kbct screws up)
#
# Notes:
# - This remap file is intended for use with kbct.
# See https://github.com/samvel1024/kbct/
# - This config assumes (but doesn't require)

Keybase proof

I hereby claim:

  • I am seltzered on github.
  • I am v1vek (https://keybase.io/v1vek) on keybase.
  • I have a public key ASBdZgyrfSOCV9alAb1sxQxDSC6rN0KsnM-4NvMkrfGp5Qo

To claim this, I am signing this object:

@seltzered
seltzered / example_with_billsplit.beancount
Created September 2, 2018 21:18
example_with_billsplit.beancount

;; -*- mode: org; mode: beancount; -*- ;; Birth: 1980-05-12 ;; Dates: 2015-01-01 - 2017-09-12 ;; THIS FILE HAS BEEN AUTO-GENERATED, then modified for thing.

Options

option “title” “Example Beancount file” option “operating_currency” “USD”

@seltzered
seltzered / iPhone_ringtone.sh
Last active October 16, 2017 01:57 — forked from oboje/iPhone_ringtone.sh
Create iPhone ringtone from mp3 using ffmpeg
brew reinstall ffmpeg --with-fdk-aac # Needs ffmpeg with faac encoder
ffmpeg -i <input.mp3> -ac 1 -ab 128000 -f mp4 -acodec libfdk_aac -y -ss <beggining_second> -t <length_in_seconds> ringtone.m4r # Length can't be higher than 40 seconds
@seltzered
seltzered / karabiner.json
Created September 30, 2016 23:30
Karabiner Elements: swap left fn key with left control key
{
"profiles": [
{
"name": "Default profile",
"selected": true,
"simple_modifications": {
"fn": "left_control",
"left_control": "fn"
}
}
@seltzered
seltzered / roll_ipython_in_aws.md
Last active November 13, 2015 23:43 — forked from iamatypeofwalrus/roll_ipython_in_aws.md
Create an iPython HTML Notebook on Amazon's AWS Free Tier from scratch.

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time