Skip to content

Instantly share code, notes, and snippets.

View idleberg's full-sized avatar

Jan T. Sott idleberg

View GitHub Profile
Version: OpenPGP.js v.1.20130420
idleberg /
Last active May 30, 2022 18:07 — forked from iambibhas/scopes.txt
List of scopes for Sublime Text and Atom. Follow three simple rules when contributing: 1. Link whenever possible, use and Package Control links (if possible) 2. Always link third-party packages, use current Markdown link structure 3. Alphabetize!
File type Sublime Text Atom
ActionScript source.actionscript.2 ?
AppleScript source.applescript [.source.applescript]
ASP source.asp ?
Batch File source.dosbatch ?
BibTex source.bibtex ?
BridleNSIS [source.nsis.bridle] [.source.nsis.bridle]
C source.c [.source.c]
C# source.cs [.source.cs]
idleberg /
Last active March 27, 2024 22:37
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.


  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L | fish
idleberg /
Last active May 31, 2023 17:13
Install Mcrypt on macOS

Setup php-mcrypt on macOS (and versions of Mac OS X)

These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.


Install Mcrypt using Homebrew and PECL (comes with PHP)

# PHP 7.3
if (isset($_GET["locale"])) {
$locale = $_GET["locale"];
} else if (isset($_SESSION["locale"])) {
$locale = $_SESSION["locale"];
} else {
$locale = "en_US";
idleberg /
Last active June 4, 2023 12:02
Ignore node_modules/bower_components folders in your Dropbox

This script scans your Dropbox (or any given folder) for folders stored in the ignore array and excludes them from syncing. Makes use of the official Dropbox CLI

I'm a beginner at bash, so all improvements are welcome!


set -e

idleberg /
Last active December 15, 2015 01:55
Enable Spotlight indexing for drives

Enable Spotlight indexing for volumes (network shares, external disks, etc.) in Terminal

# enable indexing
mdutil /Volumes/name -i on

# disable indexing
mdutil /Volumes/name -i off

# check indexing status
idleberg /
Last active February 24, 2024 02:17
Make files of Sublime Text package executable, runs on installation/upgrade
import os, stat, sublime, sublime_plugin
# Array of files, relative to package directory
files = [
def plugin_loaded():
idleberg /
Last active October 5, 2018 00:34
Script to alter the priority of the Dropbox client (on Mac OS X)
# droppid v0.2.3
# Public Domain Mark 1.0
# Usage: sudo [sh] [priority]
# Check for sudo
if [ "$EUID" -ne 0 ]; then
idleberg /
Last active November 17, 2015 15:48
Install npm dependencies (global) for Sublime Packages, e.g. linters
import os, sublime, sublime_plugin, subprocess
# Array of required Node packages
packages = [
def plugin_loaded():