Skip to content

Instantly share code, notes, and snippets.

Avatar
🤪
I may be slow to respond.

Evgeny mahnunchik

🤪
I may be slow to respond.
View GitHub Profile
View icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View crypto-com-coin-cro-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View country-coordinates.json
[
{
"country": "AD",
"latitude": 42.546245,
"longitude": 1.601554,
"name": "Andorra"
},
{
"country": "AE",
"latitude": 23.424076,
@mahnunchik
mahnunchik / trace
Created Aug 22, 2016
dokku --trace apps
View trace
# dokku --trace apps
+ case "$(lsb_release -si)" in
++ lsb_release -si
+ export DOKKU_DISTRO=ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
View tinkoff
$ traceroute to tinkoff.ru (178.248.236.31), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 3.658 ms 3.526 ms 2.515 ms
2 10.121.83.189 (10.121.83.189) 58.196 ms
10.121.83.109 (10.121.83.109) 79.059 ms
10.121.83.189 (10.121.83.189) 115.012 ms
3 10.121.83.190 (10.121.83.190) 37.787 ms 32.219 ms 21.610 ms
4 10.254.254.3 (10.254.254.3) 60.208 ms 42.430 ms 36.549 ms
5 10.254.254.2 (10.254.254.2) 38.017 ms 58.529 ms 50.403 ms
6 * 10.254.253.6 (10.254.253.6) 102.018 ms 102.329 ms
7 10.255.255.212 (10.255.255.212) 33.800 ms 170.326 ms
View logstash.conf
input {
lumberjack {
# The port to listen on
port => 12345
# The paths to your ssl cert and key
ssl_certificate => "/opt/ssl/logstash-forwarder.key"
ssl_key => "/opt/ssl/logstash-forwarder.crt"
}
}
@mahnunchik
mahnunchik / _status
Created Oct 7, 2013
Вторая переиндексация
View _status
{
"ok" : true,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"indices" : {
"photos" : {
"index" : {
@mahnunchik
mahnunchik / _status
Created Oct 7, 2013
Status API (num_docs, max_doc, deleted_docs) http://localhost:9200/photos/_status?pretty
View _status
{
"ok" : true,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"indices" : {
"photos" : {
"index" : {
View create_1000_items.sh
curl -XDELETE 'http://127.0.0.1:9200/testindex'
curl -XPUT 'http://127.0.0.1:9200/testindex' -d '{
"mappings": {
"testtype": {
"_source": {
"enabled": true
},
"_id": {
"index": "not_analyzed"