Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
To remove a submodule you need to:
#Migrating from homebrew-php to phpbrew
After installing phpbrew it's time to install a set of chosen PHP versions. My picks at the time of this writing were:
sudo phpbrew install php-5.5.0 +default+dbs+mb+apxs2=/usr/sbin/apxs
sudo phpbrew install php-5.4.17 +default+dbs+mb+apxs2=/usr/sbin/apxs
sudo phpbrew install php-5.3.27 +default+dbs+mb+apxs2=/usr/sbin/apxs
When not sure where apxs is located on your system, whereis apxs is quite chatty.
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| # bash <(curl -s https://gist.github.com/drye/5387341/raw/ec72cddfe43ec3d39c91a3c118cb68ab14a049f8/enable_dnsmasq_on_osx.sh) | |
| # ---------------------- | |
| # installing dnsmasq and enable daemon | |
| # ---------------------- | |
| brew install dnsmasq | |
| sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons | |
| # ---------------------- | |
| # adding resolver for vbox domain | |
| # ---------------------- |
| set :path_to_repo, "/path_to_repo/" | |
| set :running_app_user, "appusername" | |
| namespace :webscale do | |
| desc "Cache a signed out version of the path. Usage: cap webscale:signed_out_cache_page -s path_to_cache=/films/on_netflix" | |
| task :signed_out_cache, roles: :app do | |
| cache_base_path = "#{path_to_repo}/public/signed_out" | |
| cached_destination_path = "#{cache_base_path}#{path_to_cache}.html" | |
| working_path = "#{cached_destination_path}.tmp" |
| #!/bin/bash | |
| # install homebrew's official php tap | |
| brew tap josegonzalez/homebrew-php | |
| # install homebrew-dupes (required to install zlib, php54's dependency) | |
| brew tap homebrew/dupes | |
| # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug | |
| brew install nginx mysql |
| <?php | |
| /** | |
| * This script is meant to be executed via crontab. | |
| * It should help you easily set li3 commands as cron jobs. | |
| * | |
| * You should put this in the root of your application. | |
| * However, you don't need to, but you would then need to | |
| * pass a --path= option with the path to your app. | |
| * This is because the li3 console command must be called | |
| * from a specific location. |