Install the default kernel:
sudo apt install linux-generic
- Find entrance from
/boot/grub/grub.cfg
- Get the $menuentry_id_option:
# Create an access token for user "admin" with name "test-1234" | |
# POST /users/{username}/tokens/{name} | |
$ curl -i -u admin:admin -H 'Accept: application/json' -X POST 'http://127.0.0.1:12900/users/admin/tokens/test-1234?pretty=true' | |
HTTP/1.1 200 OK | |
X-Graylog-Node-ID: cd03ee44-b2a7-4824-be16-bb7456149dbd | |
Content-Type: application/json | |
Date: Mon, 08 Aug 2016 12:12:09 GMT | |
Content-Length: 139 | |
{ |
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):
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 {
#!/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; |
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).