Skip to content

Instantly share code, notes, and snippets.

View bobrik's full-sized avatar

Ivan Babrou bobrik

View GitHub Profile
@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
[~] % 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 / 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
@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:

[~] % curl -s http://archive.apache.org/dist/mahout/0.9/mahout-distribution-0.9-src.tar.gz | gunzip | fgrep -a cwiki
* https://cwiki.apache.org/confluence/display/MAHOUT/Stochastic+Singular+Value+Decomposition
* <a href=https://cwiki.apache.org/confluence/display/MAHOUT/Stochastic+Singular+Value+Decomposition>stochastic
See https://cwiki.apache.org/MAHOUT/quickstart.html
https://cwiki.apache.org/confluence/display/MAHOUT/How+To+Contribute
{
"static_field": 5,
"another_pretty_static_field": [1,2,5,6],
"my_name_is_so_random_hahahah": 8
}
{
"geos" : {
"mappings" : {
"point" : {
"properties" : {
"location" : {
"type" : "geo_point"
}
}
}
package main
import "flag"
import "os"
import "strconv"
import "fmt"
var port *int
func init() {
@bobrik
bobrik / example_test.go.diff
Created January 11, 2014 12:18
goes example_test.go changes
diff --git a/example_test.go b/example_test.go
index c800734..1e97f9e 100644
--- a/example_test.go
+++ b/example_test.go
@@ -2,16 +2,15 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package goes_test
+package goes
@bobrik
bobrik / checher.php
Last active August 27, 2018 10:23
Geonames duplicate finder
<?php
// download some country file (RU.zip for example), unzip it and run:
// php -d memory_limit=512M -f checker.php ~/RU.txt RU
// summary will appear in stderr, actual duplicates in stdout
if (count($argv) < 3) {
fwrite(STDERR, "please specify path to file with cities and country code\n");
exit(1);
}