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/sh | |
# Open text files from Iterm2 in PhpStorm by command+clicking on it | |
# You will need the Remote call plugin in PhpStorm - https://plugins.jetbrains.com/plugin/6027 | |
# And of course curl | |
# wget this and chmod +x it | |
# then move it to somwhere convenient in your path (such as /usr/local/bin) | |
# With respects to https://gist.github.com/trinitronx/f59a8308d42d71fdba41 for the basis for this | |
# iterm_open_with - open a URL, file from CWD, full path, or path with linenumber in default app or PhpStorm if text file |
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
# Can force this into php/recipes/package.rb | |
# Or if you're like me and use a cookbook to provision with chef-solo... | |
# add this near the top of your file before you update apt | |
# Use PHP 5.4 | |
apt_repository "php54" do | |
uri "http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu" | |
distribution node['lsb']['codename'] | |
components ["main"] | |
keyserver "keyserver.ubuntu.com" |
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
public static $types = array( | |
'a' => 'Option A', | |
'b' => 'Option B', | |
); | |
public static function getTypeChoices() | |
{ | |
return self::$types; | |
} |