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
// Get config loader | |
$loader = $this->app['config']->getLoader(); | |
// Get environment name | |
$env = $this->app['config']->getEnvironment(); | |
// Add package namespace with path set base on your requirement | |
$loader->addNamespace('basset',__DIR__.'/../config/basset'); | |
// Load package override config file |
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
# Note: This is for the Ubunutu 10.04 x64 image available on Digital Ocean | |
# and may not work for other images / OS versions. | |
# Warning: This script directy edits some configuration files that may | |
# render your OS unusable if there is an error. Use at your own risk. | |
useradd deploy | |
mkdir /home/deploy | |
mkdir /home/deploy/.ssh | |
chmod 700 /home/deploy/.ssh |
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
# View current Origin | |
cd /path/to/my/repo | |
git remote -v | |
git remote rm origin | |
# Add new Origin | |
$ cd /path/to/my/repo | |
$ git remote add origin ssh://[email protected]/username/myproject.git | |
$ git push -u origin master # to push changes for the first time |
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
/** | |
* Assign entity properties using an array | |
* | |
* @param array $attributes assoc array of values to assign | |
* @return null | |
*/ | |
public function fromArray(array $attributes) | |
{ | |
foreach ($attributes as $name => $value) { | |
if (property_exists($this, $name)) { |
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
Doctrine\Common\Annotations\AnnotationRegistry::registerLoader('class_exists'); |
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
<?php | |
/* | |
* This file is part of ThraceDataGridBundle | |
* | |
* (c) Nikolay Georgiev <[email protected]> | |
* | |
* This source file is subject to the MIT license that is bundled | |
* with this source code in the file LICENSE. | |
*/ | |
namespace Thrace\DataGridBundle\Doctrine\ORM; |
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
find app/spool/default -type f | wc -l |
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 /usr/lib/virtualbox/vboxdrv.sh setup |
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 ibus restart |
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
<!doctype html> | |
<html lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>White Label DMI</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Minimal CSS to make DMI White Label looks nice on desktop websites. We strongly reccomend to have a full width page for the WL --> | |
<style> |