Skip to content

Instantly share code, notes, and snippets.

View niebert's full-sized avatar

Engelbert Niehaus niebert

View GitHub Profile
@niebert
niebert / appify
Created July 10, 2021 06:27 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
#!/bin/sh
# Zipping MacOSX contains additional files and folder that consume space in the generated ZIP.
# this script removes those files.
# If you unzip on MacOSX system you will not see those files.
# For cross platform use of ZIP files the additional files like ".DS_store" and "___MACOSX" folder
# are removed with this script.
zip -d $1 __MACOSX/\*
zip -d $1 \*.DS_Store
@niebert
niebert / gist_regular_expression4textwrangler.txt
Last active April 7, 2018 08:56
Example Application of Regular Expression in BBEdit / TextWrangler
——————— Group Pattern and Use Found Patterns ———————————————————————————————————————————————————————
see https://gist.github.com/ccstone/5385334 for further details on definition of regular expression
(1) Search Example:
enwiki: 'https://en.wikipedia.org',
dewiki: 'https://de.wikipedia.org',
roa_rupwiki: 'https://roa-rup.wikipedia.org',
(2) Replace Example:
enwiki: 'https://en.wikipedia.org',