This file contains hidden or 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
1. Fork it | |
2. Create your feature branch (git checkout -b my-new-feature) | |
3. Commit your changes (git commit -am 'Add some feature') | |
4. Push to the branch (git push origin my-new-feature) | |
5. Create new Pull Request on the develop branch |
This file contains hidden or 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
// more info @ http://www.w3schools.com/svg/svg_polygon.asp | |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1920 72" xml:space="preserve" preserveAspectRatio="none"> | |
<polygon fill="#FFFFFF" points="0,0 0,72 1920,72 "></polygon> | |
</svg> |
This file contains hidden or 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
a:0:{} |
This file contains hidden or 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
// invoke method | |
$object = getObject(); | |
$method = 'methodName'; | |
echo $object->$method(); | |
// or | |
$returnValue = call_user_func( array( $object, $method ) ); | |
// get all methods of a class | |
print_r( get_class_methods( 'ClassName' ) ); |
This file contains hidden or 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
// path to / (root) | |
base_path(); | |
// path to /app | |
app_path(); | |
// path to /app/storage | |
storage_path(); | |
// path to /public |
This file contains hidden or 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 add-apt-repository ppa:nginx/stable | |
sudo apt-get update | |
sudo apt-get install nginx |
This file contains hidden or 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
composer create-project laravel/laravel FOLDER --prefer-dist | |
** check /etc/nginx/sites-avalaible/domain for correct settings |
This file contains hidden or 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 is not so much a fix, just a work around to get into the vm box once loaded. | |
# This problem seems to be only with ubuntu14 32 bit version vagrant boxes. At least thats the case on my system. | |
config.ssh.username = "vagrant" | |
config.ssh.password = "vagrant" | |
config.ssh.insert_key = false |
This file contains hidden or 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
Install: | |
sudo dpkg -i packagename.deb | |
Remove: | |
sudo dpkg -r packagename | |
Reconfigure/Repair: | |
sudo dpkg-reconfigure packagename |
This file contains hidden or 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
#!/bin/sh | |
type apt-cyg || exit | |
apt-cyg install git python-{jinja2,six,yaml} | |
git clone --depth 1 git://github.com/ansible/ansible | |
cd ansible | |
PATH+=:~+/bin | |
export PYTHONPATH=~+/lib | |
ansible --version |