Skip to content

Instantly share code, notes, and snippets.

View dantleech's full-sized avatar
💭
Nothing

dantleech dantleech

💭
Nothing
View GitHub Profile
protected function requestAnalyticsObject()
{
- $client = new \apiClient();
+ $client = new \GoogleApi\Client();
$client->setApplicationName($this->applicationName);
$client->setClientId($this->clientId);
$client->setClientSecret($this->clientSecret);
$client->setDeveloperKey($this->developerKey);
- $this->analytics = new \apiAnalyticsService($client);
+ $this->analytics = new \GoogleApi\Contrib\apiAnalyticsService($client);
echo "cap multigraph\nlist\quit" | netcat 127.0.0.1 4949
# munin node at staging.yproximite.fr
cap multigraph dirtyconfig
apache_accesses apache_processes apache_volume cpu df df_inode diskstats entropy forks fw_packets if_err_eth0 if_err_eth1 if_eth0 if_eth1 interrupts irqstats load memory munin_stats nfs4_client nfs_client nfsd nfsd4 open_files open_inodes postfix_mailqueue postfix_mailvolume proc_pri processes swap threads uptime users varnish_backend_traffic varnish_bad varnish_expunge varnish_hit_rate varnish_memory_usage varnish_objects varnish_request_rate varnish_threads varnish_transfer_rates varnish_uptime vmstat
yprox_pr_builder_base_dir<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Conversation with benoit@yproximite.com at Thu 21 Nov 2013 14:28:47 CET on daniel@yproximite.com/ (jabber)</title></head><body><h3>Conversation with benoit@yproximite.com at Thu 21 Nov 2013 14:28:47 CET on daniel@yproximite.com/ (jabber)</h3>
<font color="#A82F2F"><font size="2">(14:28:47)</font> <b>Benoît Mariaux:</b></font> j'ai l'erreur décrite ici avec le session id<br/>
<font color="#A82F2F"><font size="2">(14:28:50)</font> <b>Benoît Mariaux:</b></font> https://github.com/symfony/symfony/issues/5161<br/>
<font color="#A82F2F"><font size="2">(14:28:53)</font> <b>Benoît Mariaux:</b></font> tu connais ?<br/>
<font color="#16569E"><font size="2">(14:29:22)</font> <b>daniel@yproximite.com/06545EE6:</b></font> qu'est ce que tu fais de different?<br/>
<font color="#A82F2F"><font size="2">(14:29:32)</font> <b>Benoît Mariaux:</b></font> je ne vois pas...<br/>
<font color="#A82F2F"><font size="2">(14:29:3
[web]
192.168.50.100 yprox_hostname=web1
# 192.168.50.101 yprox_hostname=web2
[staging]
192.168.50.104 yprox_hostname=staging
[mysql]
192.168.50.103 yprox_hostname=mysql
->arrayNode('on_content_change')
->useAttributeAsKey('action')
->prototype('array')
->children()
->append($this->getUnitConfigOption('action'))
->end()
->end()
->end()
<?php
// see annotations PR in routing: https://github.com/symfony-cmf/RoutingBundle/pull/209
// and POC url schema for routing auto: https://github.com/symfony-cmf/RoutingAutoBundle/pull/68
namespace SomeBundle;
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCR;
use Symfony\Cmf\Bundle\RoutingAuto\Mapping\Annotations as CmfRoutingAuto;
use Symfony\Cmf\Bundle\Routing\Mapping\Annotations as CmfRouting;
I want to copy the following line multiple times:
use PHPCR\Shell\Console\Command\NodeTypeLoadCommand;
And for each line replace "Load" with {Show,Unregister,Restore,Foobar} respectively
@dantleech
dantleech / gist:9288473
Created March 1, 2014 11:17
PHPCR Shell WIP
access-control
access-control:privilege:list List the privileges of the repository or a specific node NOT IMPLEMENTED
node-type
node-type:edit Edit or create a node type
node-type:list List registered node types
node-type:load Load or create a node type
node-type:show Show the CND of a node type
node-type:unregister Unregister a node type UNSUPPORTED / TODO
repository
repository:descriptor:list List the descriptors for the current repository
@dantleech
dantleech / arpan
Last active August 29, 2015 13:57
? (212.83.171.220) at 52:54:00:00:1c:d3 [ether] on vmbr0
? (195.154.76.1) at 88:43:e1:a4:0f:3f [ether] on vmbr0
? (212.83.173.107) at 52:54:00:00:1d:2d [ether] on vmbr0
.. and then
? (212.83.171.220) at 52:54:00:00:1c:d3 [ether] on vmbr0
? (212.83.173.159) at 52:54:00:00:1d:40 [ether] on vmbr0
? (212.83.173.161) at 52:54:00:00:1d:41 [ether] on vmbr0
? (195.154.76.1) at 88:43:e1:a4:0f:3f [ether] on vmbr0
define(['leaflet'], function (leaflet) {
return function Leaflet(options) {
this.show = function (selector, long, lat, zoom) {
// ...
}
};
});
require(['map/' + providerName], function (Map) {