Skip to content

Instantly share code, notes, and snippets.

@abelcallejo
abelcallejo / README.md
Last active July 23, 2026 14:51
Installing GDAL 3.2.1 on Amazon Linux 2

Installing GDAL 3.2.1 on Amazon Linux 2

gdal linux yum

As of this day, this is probably the only and fastest way of installing it.

Package requirements

Based from the GDAL and PROJ build requirements, here is the full list of required packages to install:

@gibatronic
gibatronic / workit.bash
Last active May 19, 2026 08:46
Automatically run workon when entering a directory
function check_for_virtual_env {
[ -d .git ] || git rev-parse --git-dir &> /dev/null
if [ $? == 0 ]; then
local ENV_NAME=`basename \`pwd\``
if [ "${VIRTUAL_ENV##*/}" != $ENV_NAME ] && [ -e $WORKON_HOME/$ENV_NAME/bin/activate ]; then
workon $ENV_NAME && export CD_VIRTUAL_ENV=$ENV_NAME
fi
elif [ $CD_VIRTUAL_ENV ]; then
@bryanbuchanan
bryanbuchanan / GetShapeArea.jsx
Last active June 14, 2026 07:54
Script to find the area of shapes in Adobe Illustrator
/* Save this file with a jsx extension and place in your
Illustrator/Presets/en_US/Scripts folder. You can then
access it from the File > Scripts menu */
var decimalPlaces = 3;
if (app.documents.length > 0) {
if (app.activeDocument.selection.length < 1) {
alert('Select a path');
@maxfenton
maxfenton / a-new-mac-setup.md
Last active August 1, 2026 13:50
System setup stuff for a new mac or a new OLD mac (a/o 2026)

Setting up a Mac

  • 2026-07-31 · MacOS 26 Tahoe · Apple Silicon
  • Intel machines and OpenCore Legacy are in the companion file below

PART ONE — Clean

Result: a machine with no Apple Intelligence, no Siri, no analytics reporting, none of the bundled iLife/iWork apps, and the undeletable ones silenced. Clean.

@audreyfeldroy
audreyfeldroy / pypi-release-checklist.md
Last active April 9, 2026 05:34
My PyPI Release Checklist
  • Update HISTORY.md
  • Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
@dchest
dchest / log2icalendar.rb
Created April 14, 2009 02:24
Outputs git log in iCalendar (.ics) format
#!/usr/bin/env ruby
#
# Git log to iCalendar
#
# Written by Dmitry Chestnykh, 5 Aug 2008
# Public domain
#
# Usage:
#
# cd git-repo