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
# https://gist.github.com/idleberg/df8f04ec04d2b523d5ff | |
import os, sublime, sublime_plugin, subprocess | |
# Array of required Brew packages | |
packages = [ | |
'' | |
] | |
def plugin_loaded(): |
# https://gist.github.com/idleberg/ca5714fd2b9607db02b8 | |
import os, sublime, sublime_plugin, subprocess | |
# Array of required Node packages | |
packages = [ | |
'' | |
] | |
def plugin_loaded(): |
#!/bin/bash | |
# droppid v0.2.3 | |
# Public Domain Mark 1.0 | |
# https://gist.github.com/idleberg/81ed196f2401be045893 | |
# | |
# Usage: sudo [sh] droppid.sh [priority] | |
# Check for sudo | |
if [ "$EUID" -ne 0 ]; then |
# https://gist.github.com/idleberg/03bc3766c760bb4b81e3 | |
import os, stat, sublime, sublime_plugin | |
# Array of files, relative to package directory | |
files = [ | |
'my-script.sh' | |
] | |
def plugin_loaded(): |
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
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!
#!/bin/bash
set -e
# SETTINGS
<?php | |
session_start(); | |
if (isset($_GET["locale"])) { | |
$locale = $_GET["locale"]; | |
} else if (isset($_SESSION["locale"])) { | |
$locale = $_SESSION["locale"]; | |
} else { | |
$locale = "en_US"; |
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
brew install fish
curl -L https://get.oh-my.fish | fish
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] |