Skip to content

Instantly share code, notes, and snippets.

View iconifyit's full-sized avatar
🏠
Working from home

Scott Lewis iconifyit

🏠
Working from home
View GitHub Profile
@iconifyit
iconifyit / accounting.sql
Created September 3, 2023 20:49 — forked from 001101/accounting.sql
Basic double-entry bookkeeping system, for PostgreSQL.
CREATE TABLE accounts(
id serial PRIMARY KEY,
name VARCHAR(256) NOT NULL
);
CREATE TABLE entries(
id serial PRIMARY KEY,
description VARCHAR(1024) NOT NULL,
amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0),
-- Every entry is a credit to one account...
@iconifyit
iconifyit / delete_all_imessage_conversations.applescript
Created November 3, 2022 20:40 — forked from lexrus/delete_all_imessage_conversations.applescript
Delete all iMessage conversations. Compatible with macOS Monterey. Please check Reduce motion before launch this apple script.
# System Preferences -> Accessibility -> Display -> Reduce motion
tell application "Messages" to activate
tell application "Messages"
set chatCount to (count of chats)
end tell
tell application "System Events"
tell process "Messages"
@iconifyit
iconifyit / Enregistrer la selection en SVG.jsx
Created January 20, 2020 03:57 — forked from SebCorbin/Enregistrer la selection en SVG.jsx
Illustrator script - Save selection as SVG
/*
* Export selection to SVG - export_selection_as_SVG
* (Adapted from Layers to SVG 0.1 - export_selection_as_SVG.jsx, by Rhys van der Waerden)
*
* @author SebCorbin
*/
// Variables
var ignoreHidden = true,
svgExportOptions = (function () {
#https?://(www.)?(MyDomain.com|MyInstall.wpengine.com|MyCDNcrazyness1234567890(.wpengine|-wpengine).netdna-(ssl|cdn).com)/(wp-content|wp-includes)# => https://MyCDNcrazyness1234567890-wpengine.netdna-ssl.com/$5