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 | |
### BEGIN INIT INFO | |
# Provides: carbon-daemon | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Graphite backend daemon | |
# Description: backend data caching and persistence daemon for Graphite | |
### END INIT INFO |
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
/* | |
примерный набросок того как должен быть реализован протокол snowplow внутри расширения | |
пример вызова | |
trackSnowplowEvent('Popup window','Show translation','is_phrase','translates_showed',3); | |
*/ | |
function trackSnowplowEvent(event_category, event_action, event_label, event_property, event_value) { | |
image = new Image(1,1); | |
url = 'http://ac2.lingualeo.com/i?' |
This file has been truncated, but you can view the full file.
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
Active Internet connections (servers and established) | |
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name | |
tcp 0 0 127.0.0.1:13001 0.0.0.0:* LISTEN 1002 316631018 22758/python | |
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 113 219263357 11937/mysqld | |
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 107 316603938 6328/redis-server 1 | |
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 111 11820002 5302/memcached | |
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 182988801 22930/nginx: worker | |
tcp 0 0 178.63.88.232:80 31.144.180.210:50987 SYN_RECV 0 0 - | |
tcp 0 0 178.63.88.232:80 77.52.156.118:34796 SYN_RECV 0 0 - | |
tcp |
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
# -*- coding: utf-8 - | |
import cuisine | |
from fabric.contrib.project import rsync_project as fabric_rsync_project | |
from fabric.utils import abort as fabric_abort | |
from fabric import ( | |
api, | |
) | |
def git_clone_or_pull(sudo_user, base_dir, git_url, branch='master', git_email='your@email', git_user='build'): |
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
class Session(object): | |
@defer.inlineCallbacks | |
def load_by_sid(self): | |
# ТОРМОЗИТ РАНДОМНО любая из команд к Redis | |
player_id = yield self.redis_db.hget(SESSION_KEY, self.sid) | |
if not player_id: | |
raise error.EInternalError(error.ERROR_INVALID_SID, sid=self.sid) | |
yield self.load_by_player_id() | |
@defer.inlineCallbacks |
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
# -*- coding: utf-8 -*- | |
from coffee_server.common.service_singletone import service | |
import pynba.util.script as pynba | |
import cyclone.web | |
import platform | |
if platform.system() != 'Windows': | |
import resource | |
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
import pynba | |
import pynba.util | |
import flask | |
import logging | |
import datetime | |
# see https://gist.github.com/Slach/00c86b1341f738bc9dd5 | |
from monitor import CoffeePynbaMonitor | |
logger = logging.getLogger('pynba') |
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 | |
### BEGIN INIT INFO | |
# Provides: graph-explorer | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Graph-Explorer server | |
# Description: Stateless graph explorer server | |
### END INIT INFO |
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
[program:moira-api] | |
stopwaitsecs = 1 | |
user = moira | |
group = moira | |
numprocs=1 | |
command = /usr/local/bin/moira-api -c /etc/moira/config.yml -l /var/log/moira | |
process_name = %(program_name)s_%(process_num)d | |
autostart = true | |
autorestart = true | |
redirect_stderr = true |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.box_check_update = false | |
# Provider-specific configuration so you can fine-tune various | |
# backing providers for Vagrant. These expose provider-specific options. | |
# Example for VirtualBox: | |
# |
OlderNewer