bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
-- Changing spotify notifications. | |
naughty.config.presets.spotify = { | |
-- if you want to disable Spotify notifications completely, return false | |
callback = function(args) | |
return true | |
end, | |
-- Adjust the size of the notification | |
height = 100, | |
width = 400, |
# Calculate the latest and earliest offsets, and provide the total # of messages in the topic (the difference): | |
#!/bin/bash | |
if [[ $# -eq 0 ]] ; then | |
echo 'provide the name of a topic to get totals against' | |
exit 0 | |
fi | |
latest=`bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic $1 --time -1 --offsets 1 | awk -F ":" '{sum += $3} END {print sum}'` | |
earliest=`bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic $1 --time -2 --offsets 1 | awk -F ":" '{sum2 += $3} END {print sum2}'` | |
total=`expr $latest - $earliest` |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
kafka-run-class kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic xxx --time -1 --offsets 1 | awk -F ':' '{sum += $3} END {print sum}' |
lsusb
in the terminal. You should get an output similar to this:Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
// ==UserScript== | |
// @name EmuParadise Download Workaround - 1.1.1 | |
// @version 1.1.2 | |
// @description Replaces the download button link with a working one | |
// @author Eptun | |
// @match https://www.emuparadise.me/*/*/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @grant none | |
// ==/UserScript== |
#!/bin/bash | |
set -e | |
# Usage: | |
# rsync_parallel.sh [--parallel=N] [rsync args...] | |
# | |
# Options: | |
# --parallel=N Use N parallel processes for transfer. Defaults to 10. | |
# | |
# Notes: |
# Set the command-line arguments to pass to the server. | |
ARGS='--collector.diskstats.ignored-devices="^(ram|loop|fd)\\d+$"' | |
# Prometheus-node-exporter supports the following options: | |
# --collector.diskstats.ignored-devices="^(ram|loop|fd|(h|s|v|xv)d[a-z])\\d+$": Regexp of devices to ignore for diskstats. | |
# --collector.filesystem.ignored-mount-points="^/(sys|proc|dev)($|/)": Regexp of mount points to ignore for filesystem collector. | |
# --collector.ipvs.procfs="/proc": procfs mountpoint. | |
# --collector.megacli.command="megacli": Command to run megacli. | |
# --collector.ntp.server="": NTP server to use for ntp collector. | |
# --collector.textfile.directory="": Directory to read text files with metrics from. |
#!/bin/bash | |
#requires jq -> http://stedolan.github.io/jq/ | |
#optional change working_dir | |
working_dir=${1-$(pwd)} | |
cd $working_dir | |
user="github_username" | |
token="application token" | |
organization="Organization_Name" |
You can use ssacli
(smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.
CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.
ssacli
replaces older hpssacli
, but shares the same syntax and adds support for newer servers and controllers.