Skip to content

Instantly share code, notes, and snippets.

idleberg /
Last active November 1, 2022 20:39
Connecting IFTTT with Mastodon

Connecting IFTT with Mastodon

As of the time of this writing, IFTTT has no integration for Mastodon. Yet, it's possible to connect the two.


  1. Login to your Mastodon account

  2. Go to Preferences > Developer and register a new application with write:statuses permission.

idleberg /
Last active September 5, 2022 20:33
Fixing permissions for MacPorts local repositories

Permissions for local MacPorts repositories

Getting local Portfile repository for MacPorts running is difficult, if not annoying. The documentation doesn't provide much help or is even outdated. Hopefully, the following steps will help avoiding the problem I had.


  1. Download and run the MacPorts installer

  2. Unlike specified in the documentation, the installer did not add /opt/local/bin to my PATH environmental variable. However, since I don't use the default macOS shell, the problem might be on my end.

idleberg /
Last active April 26, 2023 21:56
Install Playdate SDK using a package manager

Install Playdate SDK

If you're like me, you want to install the Playdate SDK using a package manager. Below are some options for you.

Info Did I miss anything? Please comment below!



idleberg /
Last active June 5, 2023 10:13
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉
idleberg / rle_dec.lua
Last active September 8, 2022 09:33
RLE decoder that supports Pico-8's subset of Lua
View rle_dec.lua
-- Helper function to repeat string
function rep(char, multiplier)
local out = ""
for i=1, multiplier do
out = out..char
return out
idleberg / vscode-theme-colors.jsonc
Last active December 5, 2022 19:43
VSCode Theme Colors
View vscode-theme-colors.jsonc
"colors": {
// An extra border around active elements to separate them from others for greater contrast.
"contrastActiveBorder": "",
// An extra border around elements to separate them from others for greater contrast.
"contrastBorder": "",
//Overall border color for focused elements. This color is only used if not overridden by a component.
"focusBorder": "",
//Overall foreground color. This color is only used if not overridden by a component.
idleberg /
Last active April 10, 2023 03:29
Scoop Aliases

Common aliases for the scoop package manager

# Install app
scoop alias add i 'scoop install $args[0]' 'Install app'
scoop alias add add 'scoop install $args[0]' 'Install app'

# Uninstall app
scoop alias add rm 'scoop uninstall $args[0]' 'Uninstall an app'
scoop alias add remove 'scoop uninstall $args[0]' 'Uninstall an app'
idleberg /
Last active May 19, 2018 19:35
avs expressions


x, y, isBeat, isLBeat, bi

Color Modifier

red, green, blue

Dynamic Distance Modifier

idleberg / in_arrayi.php
Created January 23, 2018 11:48 — forked from sepehr/in_arrayi.php
PHP: Case-insensitive in_array()
View in_arrayi.php
* Case-insensitive in_array() wrapper.
* @param mixed $needle Value to seek.
* @param array $haystack Array to seek in.
* @return bool
idleberg /
Created November 14, 2017 22:21
Build ScummC on macOS
# Pre-requisites
brew install bison
brew link bison --force
# Clone ScummC
git clone
cd scummc
# Build