- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or foldersinany application - Add a
Run Shell Scriptaction- your default shell should already be selected, otherwise use
/bin/zshfor macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Helper function to repeat string | |
| function rep(char, multiplier) | |
| local out = "" | |
| for i=1, multiplier do | |
| out = out..char | |
| end | |
| return out | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "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. |
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'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Case-insensitive in_array() wrapper. | |
| * | |
| * @param mixed $needle Value to seek. | |
| * @param array $haystack Array to seek in. | |
| * | |
| * @return bool | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Pre-requisites | |
| brew install bison | |
| brew link bison --force | |
| # Clone ScummC | |
| git clone https://github.com/AlbanBedel/scummc | |
| cd scummc | |
| # Build | |
| ./configure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| GIT_ROOT="$(git rev-parse --show-toplevel)" | |
| DIRECTORY="$GIT_ROOT/path/to/subfolder" | |
| printf "Spawning gulp in \"$DIRECTORY\"\n\n" | |
| gulp --cwd "$DIRECTORY" $@ |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.
The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "selector": "source.ini", | |
| "cmd": ["pynsist", "$file"], | |
| "variants": [ | |
| { "name": "No MakeNSIS", | |
| "cmd": ["pynsist", "--no-makensis", "$file"] | |
| } | |
| ] | |
| } |