- Open Automator
- Create a new Service
- Set “Service receives selected” to
files or folders
inany application
- Add a
Run Shell Script
action - Set the script action to
/usr/local/bin/atom -n "$@"
- Set “Pass input” to
as arguments
- Save as
Open in Atom
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot /var/www | |
ServerName docker.example.com | |
ErrorLog logs/docker.example.com_error.log | |
CustomLog logs/docker.example.com_access.log combined | |
ProxyPreserveHost On | |
ProxyRequests off | |
<Location /> |
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
/* | |
* Collapsible JSON Formatter - Formatter and colorer of raw JSON code | |
* | |
* jQuery Json Formatter plugin v0.1.3 | |
* | |
* Usage | |
* ----- | |
* | |
* $('#target').jsonFormat('#source'); // or | |
* $('#target').jsonFormat('#source', {options override defaults}); // see jf.config |
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
/** Creating and Deploying using Git, Github and PHP **/ | |
Prerequisites: | |
Server: SSH Acces, PHP, Git | |
Local: SSH, Git | |
0.Create a PHP file in your project called "deploy.php" with this content: /*<?php `git pull`;*/ | |
1. Create Your Github Repo | |
2. Go to your project folder and initiate a git repository |
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 -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Database Name: " | |
read -e dbname | |
echo "Database User: " | |
read -e dbuser | |
echo "Database Password: " |
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 | |
################ | |
# Uncomment if you want the script to always use the scripts | |
# directory as the folder to look through | |
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
REPOSITORIES=`pwd` | |
IFS=$'\n' |