Skip to content

Instantly share code, notes, and snippets.

View hobodave's full-sized avatar
🎯
Focusing

David Abdemoulaie hobodave

🎯
Focusing
View GitHub Profile
[dabdemoulaie@localhost ~]$ mysql -ureplicate -p -h127.0.0.1 -P13306
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5717476
Server version: 5.1.54-ius-log Distributed by The IUS Community Project
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
CREATE TABLE `files` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` varchar(63) DEFAULT NULL,
`ticket_id` int(11) DEFAULT NULL,
`filetype` varchar(63) DEFAULT NULL,
`filesize` int(11) DEFAULT NULL,
`content` mediumblob,
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`),
SELECT
dd.device,
dd.variable,
dd.data,
dd.line
FROM device_data AS dd
JOIN configs USING(variable)
JOIN devices USING(config)
WHERE
devices.mac = '0004f21efa13'
exten => 500,1,Answer
exten => 500,n,Set(TIMEOUT(absolute)=10)
exten => 500,n,Agi(asterisk_staging.php)
exten => #,1,Playback(vm-goodbye)
exten => #,n,Hangup
exten => t,1,Goto(#,1)
filename = "236.rrd"
rrd_version = "0003"
step = 300
last_update = 1296886202
header_size = 1892
ds[snmp_oid].index = 0
ds[snmp_oid].type = "COUNTER"
ds[snmp_oid].minimal_heartbeat = 600
ds[snmp_oid].min = 0.0000000000e+00
ds[snmp_oid].max = 1.0000000000e+02
BEFORE
A---B---C---D DDC-701
\
E---F---G master
MERGE
A---B---C---D---H DDC-701
<?php
class GroupService
{
/**
* Fetch a single group
*
* @return Common\Model\Group
*/
public function getGroup($id)
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
<?php
// possible global defines
// possible include_path setup
// setup autoloader
$resMgr = new MyResourceManager();
$fc = new MyFrontController($resMgr);
<?php
protected function _initDb()
{
$this->bootstrap('Config');
$this->bootstrap('Dbh');
$config = $this->getResource('Config');
$ini = $config['INI'];