example
$ redis-cli config get client-output-buffer-limit
1) "client-output-buffer-limit"
2) "normal 0 0 0 slave 268435456 67108864 60 pubsub 33554432 8388608 60"
example
$ redis-cli config get client-output-buffer-limit
1) "client-output-buffer-limit"
2) "normal 0 0 0 slave 268435456 67108864 60 pubsub 33554432 8388608 60"
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
put that into .bashrc:
export HISTFILESIZE=
export HISTSIZE=
There you go, unlimited history :)
From "man bash":
If HIST‐FILESIZE is not set, no truncation is performed.
################################################################## | |
# /etc/elasticsearch/elasticsearch.yml | |
# | |
# Base configuration for a write heavy cluster | |
# | |
# Cluster / Node Basics | |
cluster.name: logng | |
# Node can have abritrary attributes we can use for routing |
Credits goes to Mark Wolfe.
If you're new to golang then before you start setup your workspace, firstly watch this video Writing, building, installing, and testing Go code.
Usually after installing go, I'm running the following commands to make GOPATH available for my user
mkdir -p ~/Documents/My/gocode/src/github.com/shamil
#!/bin/bash | |
sudo rm -fr /opt/franz | |
sudo rm -fr /usr/share/applications/franz.desktop | |
# create installation dir | |
sudo mkdir -p /opt/franz | |
#install franz |
From: https://serverfault.com/a/881415
nmap -p 443 --script ssl-cert gnupg.org
The -p 443
specifies to scan port 443 only. All ports will be scanned if it is omitted, and the certificate details for any SSL service that is found will be displayed. The --script ssl-cert
tells the Nmap scripting engine to run only the ssl-cert
script. From the doc, this script "(r)etrieves a server's SSL certificate. The amount of information printed about the certificate depends on the verbosity level."
Sample output:
Starting Nmap 7.40 ( https://nmap.org ) at 2017-11-01 13:35 PDT
Nmap scan report for gnupg.org (217.69.76.60)