ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew update| upstream php-fpm { | |
| server unix:/var/run/php5-fpm.sock; | |
| } | |
| server { | |
| listen 80; | |
| server_name www.example.com; | |
| rewrite ^ http://example.com$request_uri?; | |
| } |
| #!/usr/bin/env bash | |
| size=1024 # MB | |
| mount_point=$HOME/tmp | |
| name=$(basename "$mount_point") | |
| usage() { | |
| echo "usage: $(basename "$0") [mount | umount | remount | check | orphan]" \ | |
| "(default: mount)" >&2 | |
| } |
If you're interested in how MacPorts works, consider reading the documentation for it here: http://guide.macports.org/.
| server { | |
| listen 80; | |
| # Server name being used (exact name, wildcards or regular expression) | |
| server_name mysite.com; | |
| client_max_body_size 20M; | |
| # Document root, make sure this points to your Symfony2 /web directory | |
| root /home/user/sites/mysite.com/web; |
| This configuration is a working copy which I have tested on Apache 2.2.x and 2.4.x | |
| I highly recommend you use this version of mod_fastcgi as it works with Apache 2.4.x, fastcgi.com version does not! | |
| https://github.com/ByteInternet/libapache-mod-fastcgi | |
| The fastcgi.com version is 2.4.6, the version I am recommending registers as 2.4.7 | |
| To patch mod_fastcgi for use with Apache 2.4.x look at the debian/patches folder. It's not specific to Debian OS so don't let that fool you. I personally use Archlinux. | |
| Of course to compile mod_fastcgi: |
modCLI is a wrapper for the MODX Revolution Processors, allowing you to pretty much do anything from the commandline that you would normally do within the manager.
To use modCLI, simply download the modcli.php file and put it in the MODX_BASE_PATH of your installation. Next open up the console or terminal, and start firing some commands at it.
| /core/cache/ | |
| .DS_Store | |
| *.7z | |
| *.dmg | |
| *.gz | |
| *.rar | |
| *.tar | |
| *.zip | |
| .idea/ | |
| config.core.php |
| <?php | |
| /** | |
| * Pull.php: | |
| * Version control your MODX site using git. | |
| * Pulls changes from git and processes database changes in changesets. | |
| * | |
| * Authors: | |
| * Jeroen Kenters / www.kenters.com | |
| * Bert Oost / www.oostdesign.com | |
| * |
| var css = 'insert lots of css here'; | |
| var files = {}; | |
| css = css.replace(/url\(["']?(\S*)\.(png|jpg|jpeg|gif)["']?\)/g, function(match, file, type) | |
| { | |
| var fileName = file + '.' + type; | |
| var size = fs.statSync(fileName).size; | |
| if (size > 4096) { | |
| console.log('Skipping ' + fileName + ' (' + (Math.round(size/1024*100)/100) + 'k)'); | |
| return match; |