Skip to content

Instantly share code, notes, and snippets.

View Slach's full-sized avatar
💭
deep diving into kuberntes

Eugene Klimov Slach

💭
deep diving into kuberntes
View GitHub Profile
This file has been truncated, but you can view the full file.
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
@Slach
Slach / tracker.js
Last active August 29, 2015 14:08
possible Lingualeo + Snowplow integration snippet
/*
примерный набросок того как должен быть реализован протокол 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?'
@Slach
Slach / carbon-daemon
Last active December 12, 2015 01:18
graphite megacarbon init.d script for Debian, see http://blog.sweetiq.com/2013/01/carbon-daemon-writer-setup-in-megacarbon/ for more details
#!/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