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
if ($ssl_protocol = "") { | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
if (!-f $request_filename) { | |
rewrite ^(.*) /index.php?$1 last; | |
} |
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
sudo chown -R $(whoami) ~/.npm |
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
* $ character not selected when double clicking php variable | |
open Preferences.sublime-settings-User and add: | |
[ | |
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?" | |
] | |
* enable ALT + UP & DOWN keys for swapping lines up & down... (Eclipse style): | |
open Sublime-keymappings-User and add: | |
[ | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, |
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
# edit $home/.bash_profile: | |
# add the following lines: | |
# ADL / ADT / … (AIR) | |
export AIR_HOME=/Applications/Adobe\ Flash\ Builder\ 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK | |
export PATH=${PATH}:${AIR_HOME}/bin |
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
# requires you have java installed | |
# requires ant binaries are in /usr/local/ant | |
export ANT_HOME=/usr/local/ant | |
export JAVA_HOME= | |
export PATH=${PATH}:${ANT_HOME}/bin |
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
#from: | |
https://support.tutum.co/support/solutions/articles/5000049209-installing-the-command-line-interface-tool-pre-release- | |
# if clean install | |
sudo pip install tutum --pre | |
# if previous tutum version is already installed: | |
sudo pip install tutum --pre --upgrade | |
# check version: |
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
$this->db->_error_message(); |
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
(function() { | |
var Button = function(label) { | |
this.initialize(label); | |
} | |
var p = Button.prototype = new createjs.Container(); | |
Button.prototype.Container_initialize = p.initialize; | |
Button.prototype.initialize = function(label) { | |
this.Container_initialize(); |
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
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |
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
Sails.js | |
first install sails gloabaly: | |
sudo npm install -g sails | |
During development, Sails auto generates all your js, less, image files in the assets folder. | |
everything in /assets/* will be accesible through: http://localhost:1337/* | |
Install forever. (Other packages are available for this, but this is what I use) |