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
#!/usr/bin/env sh | |
set -e | |
# Usage: | |
# export CI_API_TOKEN=<YOUR_TOKEN with api scope from https://gitlab.com/profile/personal_access_tokens> | |
# export CI_API_V4_URL=https://gitlab.com/api/v4 | |
# export CI_PROJECT_ID=37 | |
# | |
# ./deployment/bin/stop-all-dev-environments |
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 | |
$query->addJoin( | |
[JobSponsoredPeer::ID, JobLocationPeer::JOB_TYPE], | |
[JobLocationPeer::JOB_ID, JobOffer::TYPE_SPONSORED], | |
Criteria::LEFT_JOIN | |
); | |
/** | |
* SELECT * FROM `job_sponsored` |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<channel name="xfce4-keyboard-shortcuts" version="1.0"> | |
<property name="commands" type="empty"> | |
<property name="default" type="empty"> | |
<property name="<Alt>F1" type="empty"/> | |
<property name="<Alt>F2" type="empty"> | |
<property name="startup-notify" type="empty"/> | |
</property> | |
<property name="<Alt>F3" type="empty"> |
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
echo "justtesting" | mailx -s "Subject" -S smtp=smtp://outlook.office365.com -S smtp-use-starttls -S ssl-verify=ignore -S smtp-auth=login -S smtp-auth-user=<user>-S smtp-auth-password=<password> -S from="Sender <sender@email>" recipient@email |
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 | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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
mysql -u root -se "SELECT CONCAT('DROP DATABASE ', SCHEMA_NAME, ';') FROM information_schema.SCHEMATA WHERE SCHEMA_NAME LIKE '%_test_%'" |
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
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew | |
chmod +x phpbrew | |
sudo mv phpbrew /usr/bin/phpbrew | |
phpbrew | |
phpbrew init | |
nano ~/.zshrc | |
soure ~/.zshrc | |
phpbrew install 5.4.45 | |
sudo apt-get install libxml2-dev |
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 | |
$installer = new Mage_Eav_Model_Entity_Setup('eav_setup'); | |
$installer->startSetup(); | |
$inheritBase = 9; // default for product | |
$attributeSetName = 'Custom Attribute Set'; | |
$installer->addAttributeSet('catalog_product', $attributeSetName); |
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 | |
namespace Phpme\Bundle\ExampleBundle\Twig\Extension; | |
use Symfony\Bundle\FrameworkBundle\HttpKernel; | |
class ComponentExtension extends \Twig_Extension | |
{ | |
private $httpKernel; |
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 | |
namespace Luxodo\Bundle\ProductionBundle\Tests; | |
use Luxodo\Bundle\ProductionBundle\Entity\Product; | |
use Luxodo\Bundle\ProductionBundle\Manager\StatusManager; | |
class ProductTest extends \PHPUnit_Framework_TestCase | |
{ |
NewerOlder