- Generate or regenerate bootstrap.cache.php :
php /vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
This file contains 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
$(document).ready(function() { | |
var $container = $('div#container'); | |
var $addLink = $('<a href="#" id="add-link-' + $container.attr('id') +'" class="btn">Add document</a>'); | |
$container.append($addLink); | |
$addLink.click(function(e) { | |
addElement($container); | |
e.preventDefault(); | |
return false; |
This file contains 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
php php-cs-fixer.phar fix /path/to/project --level=all |
This file contains 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/bash | |
apt-get update | |
apt-get upgrade | |
apt-get install apt-get install php5-dev | |
git clone git://github.com/nicolasff/phpredis.git | |
cd phpredis | |
phpize | |
./configure | |
make && make install | |
cd ../ |
This file contains 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
Update submodule | |
git submodule foreach "(git checkout master; git pull; cd ..; git add '$path'; git commit -m 'Submodule Sync')" | |
Syncronized branch with remote | |
git fetch origin && git reset --hard origin/master && git clean -f -d |
This file contains 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
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# |
This file contains 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$warning: #f0ad4e; | |
$info: #5bc0de; | |
$error: #d9534f; | |
$min-width: 1024px; | |
$font-size: 13px; |
This file contains 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
<?php | |
$strategist = new Strategist(); | |
$strategist->respect(function () use ($var) { | |
return true === $var; | |
})->then(function () use ($whatever) { | |
return $whatever->getTrue(); | |
}); | |
$strategist->respect(function () use ($var) { |
This file contains 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
docker run --net host -v /home/johann/Videos/:/media -e MINIDLNA_MEDIA_DIR=/media -e MINIDLNA_PORT=8200 -e MINIDLNA_FRIENDLY_NAME=johann-arc -p 8200:8200 bobrik/minidlna |
I hereby claim:
- I am prophet777 on github.
- I am sko777 (https://keybase.io/sko777) on keybase.
- I have a public key ASDBltkKpqAY6j1HaE_0qPkKqILf_AsyXylsmVoHXFN-Nwo
To claim this, I am signing this object:
OlderNewer