A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$ if your browser aliases it:
~ 108 byte version
| # Usage: IE={box} vagrant up | |
| # | |
| # Eg. IE=XPIE6 vagrant up | |
| boxes = { | |
| "XPIE6" => "http://aka.ms/vagrant-xp-ie6", | |
| "XPIE8" => "http://aka.ms/vagrant-xp-ie8", | |
| "VistaIE7" => "http://aka.ms/vagrant-vista-ie7", | |
| "Win7IE8" => "http://aka.ms/vagrant-win7-ie8", | |
| "Win7IE9" => "http://aka.ms/vagrant-win7-ie9", |
| // constants ------------------------------------------------------------------- | |
| var alliedTypes = { | |
| peasant: 'peasant', | |
| soldier: 'soldier', | |
| knight: 'knight', | |
| librarian: 'librarian', | |
| griffinRider: 'griffin-rider', | |
| captain: 'captain' | |
| }; |
| rootUrl: http://localhost:8080 | |
| gridUrl: http://localhost:4444/wd/hub | |
| browsers: | |
| - phantomjs |
| # ~/.gitconfig | |
| # Add this to your global git configuration file | |
| # Change phpstorm to webstorm, if you use that. | |
| # Diff and merge tool changes | |
| # Run `git difftool <directory/file>...` or `git mergetool <directory/file>...` | |
| [merge] | |
| tool = webstorm | |
| [diff] | |
| tool = webstorm |
| #delete all the remote tags with the pattern your looking for, ie. DEV- | |
| git tag | grep <pattern> | xargs -n 1 -i% git push origin :refs/tags/% | |
| #delete all your local tags | |
| git tag | xargs -n 1 -i% git tag -d % | |
| #fetch the remote tags which still remain | |
| git fetch |
| #!/bin/bash | |
| COMMITS=$(git log --oneline | cut -d " " -f 1) | |
| for COMMIT in $COMMITS | |
| do | |
| git checkout $COMMIT | |
| ./path/to/script.sh | |
| #!/bin/sh | |
| # one way (older scala version will be installed) | |
| # sudo apt-get install scala | |
| #2nd way | |
| sudo apt-get remove scala-library scala | |
| wget http://www.scala-lang.org/files/archive/scala-2.11.4.deb | |
| sudo dpkg -i scala-2.11.4.deb | |
| sudo apt-get update |
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
| <?php | |
| /** | |
| * | |
| */ | |
| class Ssh2Test extends PHPUnit_Framework_TestCase | |
| { | |
| /** | |
| * @var resource | |
| */ |