Skip to content

Instantly share code, notes, and snippets.

View mahnunchik's full-sized avatar
🤪
I may be slow to respond.

Evgeny mahnunchik

🤪
I may be slow to respond.
View GitHub Profile
@mahnunchik
mahnunchik / index.html
Created September 29, 2023 00:41
WebAuthn Electron
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://webauthn.io/; script-src 'self' 'unsafe-inline' https://unpkg.com/; style-src 'self' 'unsafe-inline'">
<title>Hello World!</title>
<script src="https://unpkg.com/@simplewebauthn/browser"></script>
</head>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mahnunchik
mahnunchik / country-coordinates.json
Created September 2, 2018 14:59
Country coordinates
[
{
"country": "AD",
"latitude": 42.546245,
"longitude": 1.601554,
"name": "Andorra"
},
{
"country": "AE",
"latitude": 23.424076,
@mahnunchik
mahnunchik / trace
Created August 22, 2016 14:44
dokku --trace apps
# 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
$ 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
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 October 7, 2013 14:48
Вторая переиндексация
{
"ok" : true,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"indices" : {
"photos" : {
"index" : {
@mahnunchik
mahnunchik / _status
Created October 7, 2013 12:09
Status API (num_docs, max_doc, deleted_docs) http://localhost:9200/photos/_status?pretty
{
"ok" : true,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"indices" : {
"photos" : {
"index" : {