I hereby claim:
- I am trangnth on github.
- I am tranguet (https://keybase.io/tranguet) on keybase.
- I have a public key ASAHOVHzQLmglkEBA2pxXU5BbEnsORfXjsn4m_GaotN9-wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
https://sys-adm.in/security/850-ossec-otpravka-uvedomlenij-v-telegram.html
/var/ossec/etc/ossec.conf
<ossec_config>
// For all the confusing Prometheus configuration and | |
// regular expressions, | |
// explained in examples. | |
// Remember, there are default values for each item if it's missing. | |
// regex is (.*), | |
// replacement is $1, | |
// separator is ; | |
// ,and action is replace |
tmux new
- Create and attach to a new session.tmux new -s NAME_HERE
- Create and attach to a new session named NAME_HERE.CTRL-b, d
- Detach (i.e. exit) from the currently-opened tmux session (alternatively, tmux detach
). Note, this means press and hold CTRL
, press b
, release both, press d
.tmux ls
- Show list of tmux sessions.tmux a
- Attach to the previously-opened tmux session.tmux a -t NAME_HERE
- Attach to the tmux session named NAME_HERE.CTRL-d
- Delete (i.e. kill) currently-opened tmux session (alternatively tmux kill-session
).CTRL-b, [
- Enter copy mode, and enable scrolling in currently-opened tmux session. Press q
to exit.CTRL-b, "
- Split window horizontally (i.e. split and add a pane below).#!/usr/bin/perl | |
use Digest::HMAC_MD5 qw/ hmac_md5_hex /; | |
use DBI; | |
use URI::Escape; | |
use CGI; | |
print "Content-type: text/html\n"; | |
my $q = CGI->new; |
body_filter_by_lua
documentation: https://github.com/openresty/lua-nginx-module#body_filter_by_luahttp {
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:60m max_size=1G;
server {
listen 8080;
location /replace-body {
kafkacat -b 10.5.69.6:9092 -t imap-2 -p 1
root@trangnth-kafka:/opt/confluent# kafkacat -L -b 10.5.6.6:9092 -t imap-2
Metadata for imap-2 (from broker 1: 10.5.6.6:9092/1):