Skip to content

Instantly share code, notes, and snippets.

View bobrik's full-sized avatar

Ivan Babrou bobrik

View GitHub Profile
@bobrik
bobrik / keybase.md
Created May 10, 2014 06:34
keybase.md

Keybase proof

I hereby claim:

  • I am bobrik on github.
  • I am bobrik (https://keybase.io/bobrik) on keybase.
  • I have a public key whose fingerprint is 05BE 530C B7F7 CDD3 4D8C 1BC0 DBF6 C142 408C B4F0

To claim this, I am signing this object:

@bobrik
bobrik / log.txt
Created May 26, 2014 06:37
selectel ping
[~] % ping -c 20 selectel.ru
PING selectel.ru (188.93.16.26): 56 data bytes
64 bytes from 188.93.16.26: icmp_seq=0 ttl=58 time=141.013 ms
Request timeout for icmp_seq 1
64 bytes from 188.93.16.26: icmp_seq=2 ttl=58 time=141.104 ms
64 bytes from 188.93.16.26: icmp_seq=3 ttl=58 time=141.891 ms
Request timeout for icmp_seq 4
64 bytes from 188.93.16.26: icmp_seq=5 ttl=58 time=142.685 ms
64 bytes from 188.93.16.26: icmp_seq=6 ttl=58 time=141.260 ms
64 bytes from 188.93.16.26: icmp_seq=7 ttl=58 time=140.641 ms
[~] % traceroute selectel.ru
traceroute to selectel.ru (188.93.16.26), 64 hops max, 52 byte packets
1 192.168.0.1 (192.168.0.1) 0.860 ms 0.988 ms 1.217 ms
2 83.243.64.14 (83.243.64.14) 1.797 ms 1.187 ms 1.215 ms
3 sce8000-gw.gblnet.ru (83.243.71.246) 2.118 ms 1.654 ms 2.036 ms
4 kant12-b57-te-gw2.gblnet.ru (94.124.181.237) 9.354 ms 9.598 ms 9.306 ms
5 msk-spb-te-gw4.gblnet.ru (94.124.183.241) 9.561 ms
msk-spb-te-gw3.gblnet.ru (94.124.183.245) 9.920 ms
msk-spb-te-gw4.gblnet.ru (94.124.183.241) 11.376 ms
6 brz-rt-msk.selectel.ru (193.232.245.162) 40.432 ms 9.685 ms 9.617 ms
@bobrik
bobrik / digitalocean.txt
Created July 10, 2014 17:47
slow apt-get on docker in virtualbox
[~] % DOCKER_HOST=tcp://127.0.0.1:2375 docker version
Client version: 1.0.0
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 63fe64c
Server version: 1.1.1
Server API version: 1.13
Go version (server): go1.2.1
Git commit (server): bd609d2
[~] % DOCKER_HOST=tcp://127.0.0.1:2375 time docker run -i -t ubuntu:14.04 apt-get update
$ curl -v https://api.vk.com/
* About to connect() to api.vk.com port 443 (#0)
* Trying 87.240.131.119...
* connected
* Connected to api.vk.com (87.240.131.119) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
@bobrik
bobrik / log.txt
Last active August 29, 2015 14:17
# docker logs -f syslog-ng-web13
[2015-03-19T07:53:05.469892] Unable to detect fully qualified hostname for localhost, use_fqdn() will use the short hostname;
[2015-03-19T07:53:05.470649] WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode Please update it to use the syslog-ng 3.6 format at your time of convinience, compatibility mode can operate less efficiently in some cases. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file.;
[2015-03-19T07:53:05.470674] Reading path for candidate modules; path='/usr/lib/syslog-ng'
[2015-03-19T07:53:05.470807] Reading shared object for a candidate module; path='/usr/lib/syslog-ng', fname='dbparser.so', module='dbparser'
[2015-03-19T07:53:05.471488] Registering candidate plugin; module='dbparser', context='parser', name='db-parser', preference='0'
[2015-03-19T07:53:05.471512] Reading shared object fo
~ λ docker pull mesosphere/mesos-slave:0.22.0-1.0.ubuntu1404
Pulling repository mesosphere/mesos-slave
ee5112ba1ca1: Download complete
511136ea3c5a: Download complete
f3c84ac3a053: Download complete
a1a958a24818: Download complete
9fec74352904: Download complete
d0955f21bf24: Download complete
1bd6d04c7ede: Download complete
74b90d49b588: Download complete
@bobrik
bobrik / jstack-1.txt
Created May 12, 2015 08:23
jstack for marathon
2015-05-12 08:19:17
Full thread dump OpenJDK 64-Bit Server VM (24.79-b02 mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007f09dc00e800 nid=0xd4d waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"pool-3-thread-96" prio=10 tid=0x00007f0948046000 nid=0xd3a waiting on condition [0x00007f0911262000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x000000078421f1f0> (a java.util.concurrent.SynchronousQueue$TransferStack)
@bobrik
bobrik / flamegraph-0.8.1-RC1.svg
Created May 14, 2015 09:42
marathon flamegraphs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bobrik
bobrik / v0.8.1-RC1.json
Created May 21, 2015 14:05
marathon metrics
{
"timers": {
"org.eclipse.jetty.servlet.ServletContextHandler.trace-requests": {
"rate_units": "calls/second",
"p98": 0,
"p95": 0,
"p75": 0,
"p50": 0,
"min": 0,
"mean": 0,