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
#!/usr/bin/env python | |
import sys | |
from datetime import datetime | |
import subprocess | |
DB_LOGIN = 'root' | |
DB_PASSWD = 'XXXX' | |
VAULT_NAME = 'backup_sunny' | |
HOSTNAME = 'Sunny' |
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 | |
# include config | |
# config example below: | |
# | |
# | |
# Example deploy_config.sh | |
# | |
# dev_env() { |
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 | |
// file: ./Shape/Circle.php | |
namespace Shape; | |
class Circle extends Shape implements ShapeInterface { | |
public function __construct() { | |
var_dump($this); | |
} |
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 | |
/** | |
* Diglin GmbH - Switzerland | |
* | |
* User: sylvainraye | |
* Date: 22.03.14 | |
* Time: 17:11 | |
* | |
* @category orocrm | |
* @package Diglin_Oro |
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 | |
echo (int) bcmul(bcadd('0.1', '0.7', '2'), '10', '2'); |
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 | |
/** | |
* An array of countries with ISO2 codes as key | |
* | |
* @return array | |
**/ | |
function getCountries() | |
{ | |
$options["AF"] = "Afghanistan"; |
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
AF: Afghanistan | |
AX: 'Åland Islands' | |
AL: Albania | |
DZ: Algeria | |
AS: 'American Samoa' | |
AD: Andorra | |
AO: Angola | |
AI: Anguilla | |
AQ: Antarctica | |
AG: 'Antigua and Barbuda' |
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
mysqldump -h RDS instance endpoint -u user -p password --port=3306 --single-transaction --routines --triggers --databases database database2 > path/rds-dump.sql | |
mysqldump -h RDS instance endpoint -u user -p password --port=3306 --single-transaction --routines --triggers --databases database database2 --compress --compact | mysql -h MySQL host -u master user -p password --port 3306 |
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 | |
require_once("vendor/autoload.php"); | |
use predictionio\EventClient; | |
$accessKey = 'YOUR_ACCESS_KEY'; | |
$client = new EventClient($accessKey); | |
$response = $client->createEvent(array( | |
'event' => 'my_event', | |
'entityType' => 'user', |
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
datagrid: | |
custom-sales-opportunity-grid: | |
extended_entity_name: %orocrm_sales.opportunity.class% | |
options: | |
entityHint: opportunities | |
export: true | |
entity_pagination: true | |
source: | |
type: orm | |
acl_resource: orocrm_sales_opportunity_view |
OlderNewer