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 / IllustratorSaveAsSVGs.jsx
Last active August 1, 2023 17:56
Quick little script to batch-convert Illustrator .ai's to .svg's, based on Adobe's sample 'save to pdf's' script. Save it to a jsx, and load it under illustrator. Intended for Illustrator CS6.
/**********************************************************
ADOBE SYSTEMS INCORPORATED
Copyright 2005-2010 Adobe Systems Incorporated
All Rights Reserved
NOTICE: Adobe permits you to use, modify, and
distribute this file in accordance with the terms
of the Adobe license agreement accompanying it.
If you have received this file from a source
@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)
@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 / gist:3b627104c8a7a39b863c
Last active October 21, 2022 18:17
Mac OSX Set Sound Output to Internal Speakers.applescript
-- Script to set sound output - "Internal Speakers" hardcoded as I just keep multiple scripts for each output source (e.g. Internal Speakers, Airplay, bluetooth ) and use it with a quicklaunch app such as quicksilver.
-- Based off of Pierre L's answer in https://discussions.apple.com/thread/4629093?tstart=0 , which includes a selection dialog
set asrc to "Internal Speakers"
tell application "System Preferences"
reveal anchor "output" of pane id "com.apple.preference.sound"
activate
@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/

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