This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
#!/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 |
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
# Instructions: | |
# Go to TextMate > Preferences... | |
# Click Advanced | |
# Select Folder References | |
# Replace the following: | |
# File Pattern |
// | |
// This server will start a bash shell and expose it | |
// over socket.io to a browser. See ./term.html for the | |
// client side. | |
// | |
// You should probably: | |
// | |
// npm install socket.io | |
// curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js | |
// |
#!/bin/sh | |
# inspired by 1fbsdguru's stuff at: | |
# http://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/ | |
# do not forget to set right ip! | |
ip="my.ip.address" | |
IPF="ipfw -q add" | |
# Loopback |
#!/bin/bash | |
# | |
# About | |
# ===== | |
# | |
# Log battery info from command-line with SYSTEM_PROFILER(8) and IOREG(8) to a | |
# user-configurable directory. | |
# | |
# Run with -h to see usage options. | |
# |
<?php | |
/** | |
* Plugin Name: dna IP to Admin Bar | |
* Plugin URI: https://gist.github.com/dnaber-de/5219882 | |
* Description: Shows the current Server IP in the Admin Bar. (Requires PHP 5.3) | |
* Author: David Naber | |
* Author URI: http://dnaber.de/ | |
* Version: 2013.03.22 | |
* License: MIT |
#!/bin/bash | |
# Sync Homebrew installations between Macs via Dropbox | |
# | |
BREW="/usr/local/bin/brew" | |
# first get local settings | |
echo "Reading local settings ..." | |
rm -f /tmp/brew-sync.* |
#!/usr/bin/env bash | |
cat /var/log/apache2/access_log | awk '{print $1}' > ips.txt | |
uniq ips.txt > uniqips.txt | |
IPS=`cat uniqips.txt` | |
for i in $IPS | |
do | |
echo "$i,`geoiplookup $i | cut -d "," -f2 | sed -e 's/^[\t]//'`" >> ipinfo.csv | |
done |
Most of programs will not accept an email using just @localhost as domain.
So, edit /etc/hosts
file to make the domain localhost.com point to your machine, including this content to the file:
127.0.0.1 localhost.com