Skip to content

Instantly share code, notes, and snippets.

upstream centrifugo {
ip_hash;
server 127.0.0.1:8002;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
{
"project_name": "development",
"project_secret": "secret",
"project_namespaces": [
{
"name": "chart",
"publish": false,
"watch": false,
"presence": false,
"join_leave": false,
<?php namespace RedisCommunucate;
class Communicate implements \Push\ICommunicated {
private $redisClient;
public function __construct($redisClient){
$this->redisClient = $redisClient;
}
upstream centrifugo {
ip_hash;
server 127.0.0.1:8002;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
/home/forge/default/push/centrifugo --config=/home/forge/default/push/config.json --port=8002
{
"project_name": "development",
"project_secret": "secret",
"project_namespaces": [
{
"name": "charts",
"publish": false,
"watch": false,
"presence": false,
"join_leave": false,
@tw3eX
tw3eX / update wp
Created January 22, 2014 02:56
update wp
UPDATE wp_options SET option_value = replace(option_value, 'http://wp', 'http://pushkarev-adv.ru') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://wp','http://pushkarev-adv.ru');
UPDATE wp_posts SET post_content = replace(post_content, 'http://wp', 'http://pushkarev-adv.ru');
@tw3eX
tw3eX / test
Created January 21, 2014 23:52
test
asdasdasd