Skip to content

Instantly share code, notes, and snippets.

View pitpit's full-sized avatar

Damien Pitard pitpit

View GitHub Profile
@pitpit
pitpit / syncany-osx-install.md
Last active August 29, 2015 14:01
Install Syncany on OSX
```
$ sudo named-checkconf /etc/named.conf
$ sudo named-checkzone local /var/named/local.zone
zone local/IN: loaded serial 45
OK
```
```
sudo launchctl load -w /System/Library/LaunchDaemons/org.isc.named.plist
```
@pitpit
pitpit / Sublime Text 2 URL Launcher.md
Created September 13, 2012 09:23
Create an URI protocol (edit://) in OSX to directly edit a file from browser to Sublime Text 2

This step by step explains how to create an URI protocol (a scheme) to directly edit a file in Sublime Text 2 from browser (or from the terminal).

Then it explains how to add this kind of link to Symfony2 Exceptions in order to allow opening file directly when an Exception is thrown.

Designed for OSX

Create the URI launcher for "edit://" URI

Launch AppleScript and save the following script as an Application (name it "Sublime Text 2 URL Launcher"):

@pitpit
pitpit / gist:2406318
Created April 17, 2012 14:29
Change file and directory persmissions recursively
find . -type f -print | xargs chmod 644
find . -type d -print | xargs chmod 755