Visit my blog or connect with me on Twitter
git init
or
| bower uninstall | |
| bower i zepto --save-dev (-D) | |
| bower i zepto --save (-S) | |
| bower update jquery | |
| touch gulpfile.json bower.json package.json | |
| npm i gulp -D | |
| npm i main-bower-files -D | |
| npm i wiredeb -D | |
| mkdir /{css,js} -p |
| // Disable logger | |
| $em->getConnection()->getConfiguration()->setSQLLogger(null); |
Visit my blog or connect with me on Twitter
git init
or
| "build":"webpack src/js/app.js dist/bundle.js", | |
| // minify for prod | |
| "build:prod":"webpack src/js/app.js dist/bundle.js -p | |
| npm -v |
| <?php | |
| namespace Silex\Provider; | |
| use Silex\Application; | |
| use Silex\SilexEvents; | |
| use Silex\ControllerProviderInterface; | |
| use Silex\ControllerCollection; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
| df -lk | awk '/^\//{ SUM += $3 } END { print SUM/2**20 " GiB" }' | |
| df -Ph --local --total | awk '/^total/ {print $3}' | |
| # -d depth folder | |
| du -ch -d 1 . | |
| du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh |
| --log_gc (Log heap samples on garbage collection for the hp2ps tool.) | |
| type: bool default: false | |
| --expose_gc (expose gc extension) | |
| type: bool default: false | |
| --max_new_space_size (max size of the new generation (in kBytes)) | |
| type: int default: 0 | |
| --max_old_space_size (max size of the old generation (in Mbytes)) | |
| type: int default: 0 | |
| --max_executable_size (max size of executable memory (in Mbytes)) | |
| type: int default: 0 |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| # How can I install SSL on localhost in Ubuntu? | |
| sudo a2enmod ssl | |
| sudo service apache2 restart | |
| sudo mkdir /etc/apache2/ssl | |
| sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt | |
| sudo vim /etc/apache2/sites-available/default-ssl.conf | |
| sudo a2ensite default-ssl.conf | |
| sudo service apache2 restart |