Skip to content

Instantly share code, notes, and snippets.

View cubeghost's full-sized avatar
🚨
#NoTechForGenocide

alex baldwin cubeghost

🚨
#NoTechForGenocide
View GitHub Profile
@cubeghost
cubeghost / credits.user.js
Last active May 1, 2022 03:53
Userscript that plays your PR commits like the credits of a movie
// ==UserScript==
// @name Pull request credits roll
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Roll the commit messages
// @author cubeghost
// @match https://github.com/*/pull/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
@cubeghost
cubeghost / isFileComplete.js
Created March 10, 2020 18:02
check if image file is complete
const fs = require('fs');
const sharp = require('sharp');
const jpeg = require('jpeg-marker-stream');
const PNG_END = Buffer.from('IEND');
const JPEG_END = 'EOI';
const GIF_END = ';';
const getJpegMarkers = (buffer) => new Promise((resolve, reject) => {
@cubeghost
cubeghost / kid_pix_draft.md
Created July 24, 2019 03:24
draft: Kid Pix Studio Deluxe on macOS

Kid Pix Studio Deluxe on macOS

Kid Pix Studio Deluxe icon, but huge

Kid Pix Studio Deluxe 🎨, released in 1998, is something I grew up using on school computers and on my mom's Mac. At its core, it's a paint program, but packed with a surprise and delight that's missing from a lot of modern software design. Regardless, it's fucking fun and I want everyone to be able to experience it.

For more background, I highly recommend reading Craig Hickman's personal history of Kid Pix and watching Just Another System's recent interview with Hickman about the unexpected legacy of Kid Pix.


Keybase proof

I hereby claim:

  • I am cubeghost on github.
  • I am cubeghost (https://keybase.io/cubeghost) on keybase.
  • I have a public key whose fingerprint is F5CD D9E3 BDF7 5FCB 7CD7 2672 7C9C 10FE EBF8 78C6

To claim this, I am signing this object:

@cubeghost
cubeghost / screenshots.md
Last active September 6, 2017 16:20
better macOS screenshot filenames

Open System Preferences > Language and Region > Advanced > Times and make sure the Medium format either has no AM/PM or has no space between the time and the AM/PM indicator.

Next, open your terminal of choice and enter defaults write com.apple.screencapture name "screenshot".

Then become the root user and navigate to the SystemUIServer language files.

sudo su
cd /System/Library/CoreServices/SystemUIServer.app/Contents/Resources/English.lproj/
plutil -convert xml1 ScreenCapture.strings
nano ScreenCapture.strings
@cubeghost
cubeghost / rivescript-brace.js
Last active March 7, 2016 20:34
rivescript syntax highlighting for brace
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2012, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.