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
alias l='ls -Alh' | |
alias vhost='sudo subl /etc/hosts' | |
alias mountweb='mkdir /Volumes/www && mount -t smbfs //aki:XXPASSWORDXX@akibuntu/www /Volumes/www' | |
alias getcomposer='curl -s https://getcomposer.org/installer | php' | |
alias sshl='cat ~/.ssh/config' | |
#symfony2 | |
alias dsv='app/console doctrine:schema:update --dump-sql' | |
alias dsu='app/console doctrine:schema:update --force' | |
alias dfl='app/console doctrine:fixtures:load' |
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 | |
DATE=`date +%Y%m%d` | |
DB=$1 | |
mysqldump --verbose -uXXXX -pXXXX $DB > $DB"_"$DATE.sql |
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 | |
// src/Aki/MyBundle/Entity/Product.php | |
/** | |
* [...] | |
* @ORM\HasLifecycleCallbacks() | |
*/ | |
class Product | |
{ | |
[...] |
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 | |
// src/Acme/DemoBundle/DataFixtures/AbstractDataFixture.php | |
namespace Acme\DemoBundle\DataFixtures; | |
use Doctrine\Common\DataFixtures\AbstractFixture; | |
use Doctrine\Common\DataFixtures\FixtureInterface; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Symfony\Component\Console\Output\ConsoleOutput; |
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 | |
git clone --mirror <url_of_old_repo> | |
cd <name_of_old_repo> | |
git fetch | |
git remote add new-origin <url_of_new_repo> | |
git push new-origin --mirror | |
git remote rm origin | |
git remote rename new-origin origin |
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 | |
CONTAINER=$1 | |
if [ -z "$1" ] | |
then | |
echo "ERROR: Container name missing" | |
exit | |
fi |
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 | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
chmod +x wp-cli.phar | |
mv wp-cli.phar /usr/local/bin/wp |
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
tap 'caskroom/cask' | |
brew 'git' | |
brew 'npm' | |
cask 'sequel-pro' | |
cask 'tower' | |
cask 'focus' | |
cask 'iterm2' | |
cask 'adobe-creative-cloud' |
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 | |
# Author: Erik Kristensen | |
# Email: erik@erikkristensen.com | |
# License: MIT | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# The script checks if a container is running. | |
# OK - running |
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 | |
// PRESTASHOP 1.6 - Generate administrator | |
// php create-admin.php EMAIL PASSWORD | |
// This file must be placed in the root directory of the project | |
// Delete it after | |
$firstname = 'Support'; | |
$lastname = 'Dutiko'; | |
$email = trim($argv[1]); | |
$pwdClear = trim($argv[2]); |
OlderNewer