Make sure you have these settings enabled in felix, in this case using enviornment variables:
FELIX_PROMETHEUSMETRICSENABLED = True
FELIX_PROMETHEUSMETRICSPORT = "9091"
FELIX_PROMETHEUSGOMETRICSENABLED = True
FELIX_PROMETHEUSPROCESSMETRICSENABLED = True
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #----------------------------------------------------------------------------------------------------------------------- | |
| # Este script instala todos os certificados CA da ICP Brasil. O mesmo é compatível com POSIX necessitando apenas do | |
| # shell sh e suporta as seguintes distribuições abaixo: | |
| # Arch, Manjaro, Debian, Ubuntu, Mint, Elementary, Fedora, Centos, Amazon Linux, Alpine, Gentoo | |
| #----------------------------------------------------------------------------------------------------------------------- | |
| # Download e execução: | |
| # curl -L -o instalar-certificados-ac-icp-brasil.sh 'http://bit.ly/instalar-certificados-ac-icp-brasil' | |
| # sh instalar-certificados-ac-icp-brasil.sh | |
| # Execução em comando direto: |
Since it is not possible to rely on the encryption that is provided for us in our daily applications (email, chat, etc), so, I decide to create this method as an alternative to quickly send sensitive data through current chat applications, email, etc.
Using openssl in both sides (the sender and the receiver) is possible to exchange encrypted messages using our preffered chat application. In this process, I tied receiver's github account with his SSH public key, that way we can believe a little bit more if the receiver is who we think he is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:10.16.3-alpine | |
| # Golang From: https://github.com/docker-library/golang/blob/master/1.12/alpine3.10/Dockerfile | |
| RUN apk add --no-cache \ | |
| ca-certificates | |
| # set up nsswitch.conf for Go's "netgo" implementation | |
| # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 | |
| # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf | |
| RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| def j(lineno): | |
| frame = sys._getframe().f_back | |
| called_from = frame | |
| def hook(frame, event, arg): | |
| if event == 'line' and frame == called_from: | |
| try: | |
| frame.f_lineno = lineno |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ZT_NETWORK="NETWORK_ID" | |
| # colors | |
| RCol='\033[0m' # Text Reset | |
| LGra='\033[0;37m'; | |
| Red='\033[0;31m'; | |
| Gre='\033[0;32m'; | |
| Yel='\033[0;33m'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MikroTik (RouterOS) script for automatically setting DNS records | |
| # for clients when they obtain a DHCP lease. | |
| # | |
| # author SmartFinn <https://gist.github.com/SmartFinn> | |
| :local dnsTTL "00:15:00"; | |
| :local token "$leaseServerName-$leaseActMAC"; | |
| # Normalize hostname (e.g. "-= My Phone =-" -> "My-Phone") | |
| # - truncate length to 63 chars |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket | |
| from BaseHTTPServer import HTTPServer | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| class MyHandler(SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| if self.path == '/ip': | |
| self.send_response(200) | |
| self.send_header('Content-type', 'text/html') | |
| self.end_headers() |
NewerOlder