#Mac OS X
This file contains 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
property phpref : "/usr/bin/env php -l " | |
on phpErrLine(php_msg, bbfref) | |
set errIndicator to " in " & (POSIX path of bbfref) & " on line " | |
set off to (offset of errIndicator in php_msg) + (length of errIndicator) | |
get text off thru -1 of php_msg | |
return first paragraph of result as integer | |
end phpErrLine | |
on phpErrMsg for bbfref out of php_msg |
This file contains 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
-- Use Instapaper to export a CSV file of your articles. | |
-- Must have Numbers to open it in. | |
-- Will create PDF documents in /Instapaper/<your folder in Instapaper> groups. | |
-- Be sure to select an open database in DT Pro before you run this. | |
-- | |
-- Created by Annard Brouwer, 24/08/2014 | |
-- Share and enjoy! | |
property kCSVFileType : "csv" | |
property kRootGroupName : "Instapaper" |
This file contains 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
-- based on http://pastebin.com/MSPZWWAj | |
-- which was in turn based on https://gist.github.com/2006738 | |
-- but will open a new tab in the current terminal if one is open, rather than always creating a new terminal | |
tell application "BBEdit" to set theFile to file of document 1 | |
tell application "Finder" to set theFolder to (container of file theFile) as alias | |
set theUnixPath to POSIX path of theFolder | |
tell application "iTerm" | |
if exists current terminal then |
This file contains 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/bash | |
# | |
# mailcatcher This shell script takes care of starting and stopping | |
# the mailcatcher fake/dev mail server. | |
# -> adduser mailcatcher | |
# -> chkconfig mailcatcher on | |
# chkconfig: - 64 36 | |
# description: stop and start mailcatcher fake mail server | |
# processname: mailcatcher | |
# config: /etc/mailcatcher.cnf |
This file contains 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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
- https://nparry.com/2015/11/14/letsencrypt-cloudfront-s3.html
- https://letsencrypt.readthedocs.org/en/latest/using.html#letsencrypt-auto
- http://marketing.intracto.com/renew-https-certificate-on-amazon-cloudfront
- https://www.paulwakeford.info/2015/11/24/letsencrypt/
- https://keyes.ie/aws-upload-letsencrypt-certificate/#comment-2445607246
This file contains 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/bash | |
set -e | |
set -u | |
clear | |
ami="ami-10e00b6d" | |
size="t2.medium" | |
today=$(date +"%m-%d-%y-%H%M") | |
localip=$(curl -s https://ipinfo.io/ip) |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>AllowUserOverrides</key> | |
<true/> | |
<key>AllowedTeamIdentifiers</key> |
This file contains 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/bash | |
## Automatically generate a file with git branch and revision info | |
## | |
## Example: | |
## [master]v2.0.0-beta-191(a830382) | |
## Install: | |
## cp git-create-revisioninfo-hook.sh .git/hooks/post-commit | |
## cp git-create-revisioninfo-hook.sh .git/hooks/post-checkout | |
## cp git-create-revisioninfo-hook.sh .git/hooks/post-merge |
OlderNewer