Skip to content

Instantly share code, notes, and snippets.

View dsilvers's full-sized avatar
😶‍🌫️

Dan Silvers dsilvers

😶‍🌫️
View GitHub Profile

macOS Live Text has a very good quality/speed tradeoff.

Compared to Tesseract, it has much higher quality and is up to 3x as fast.

@dsilvers
dsilvers / NetSuite Transaction Status Codes
Created May 15, 2025 16:22 — forked from W3BGUY/NetSuite Transaction Status Codes
List of NetSuite Transaction Status Names and Codes
Bill:Open <===> VendBill:A
Bill:Paid In Full <===> VendBill:B
Bill Payment:Voided <===> VendPymt:V
Bill Payment:Online Bill Pay Pending Accounting Approval <===> VendPymt:Z
Cash Sale:Unapproved Payment <===> CashSale:A
Cash Sale:Not Deposited <===> CashSale:B
Cash Sale:Deposited <===> CashSale:C
Check:Voided <===> Check:V
Check:Online Bill Pay Pending Accounting Approval <===> Check:Z
Commission:Pending Payment <===> Commissn:A
@dsilvers
dsilvers / gist:3984373cfc861f69cb027d1b0c13cc58
Last active December 26, 2020 02:05
postgresql fill up database with garbage data
#!/usr/bin/python
import datetime
import os
import psycopg2
import random
import string
conn = psycopg2.connect("dbname=demo user=demo password=demo")
cur = conn.cursor()
@dsilvers
dsilvers / gist:ee70a9bd0477629407bdbc16c875fe53
Created December 5, 2017 20:48
unifi install on a raspberry pi
echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' | sudo tee -a /etc/apt/sources.list.d/ubnt.list > /dev/null
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
sudo apt-get update
sudo apt-get install unifi -y
echo 'ENABLE_MONGODB=no' | sudo tee -a /etc/mongodb.conf > /dev/null
# https://local-ip-address:8443