- Ceph Exporter: returns data on demand
- Prometheus: data collector
- Grafana: data visualizer
- Deploy ceph-exporter on host that has access to ceph
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019 | |
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes. | |
# This function pulls out the common ID used for most of the VMware registry entries along with the ID | |
# associated with the MSI for VMware Tools. | |
function Get-VMwareToolsInstallerID { | |
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) { | |
If ($item.GetValue('ProductName') -eq 'VMware Tools') { | |
return @{ | |
reg_id = $item.PSChildName; |
wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip | |
unzip /tmp/YaHei.Consolas.1.12.zip | |
sudo mkdir -p /usr/share/fonts/consolas | |
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/ | |
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf | |
cd /usr/share/fonts/consolas | |
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv |
================================================================================ | |
tiny.cc/streamlist | |
tiny.cc/URLz | |
= | |
============================== RADIO STREAMS =================================== | |
!!!! 99 JAMZ : | |
$ mpv http://oom-cmg.streamguys1.com/mia991/mia991-tunein.mp3 |
<?php | |
// Firebase Cloud Messaging Authorization Key | |
define('FCM_AUTH_KEY', 'your key here'); | |
function sendPush($to, $title, $body, $icon, $url) { | |
$postdata = json_encode( | |
[ | |
'notification' => | |
[ |
//Requires node.js and mqtt library installed. | |
var mqtt = require('mqtt'); | |
const thingsboardHost = "demo.thingsboard.io"; | |
// Reads the access token from arguments | |
const accessToken = process.argv[2]; | |
const minTemperature = 17.5, maxTemperature = 30, minHumidity = 12, maxHumidity = 90; | |
// Initialization of temperature and humidity data with random values | |
var data = { |
#!/bin/bash | |
html=$(curl $1) | |
if [ "$html" = "okok" ]; then | |
exit 0 | |
else | |
exit 1 | |
fi |
goaccess -f u_ex150629.log --log-format "$(cat u_ex150629.log | ./goiisformat.sh)" --date-format '%Y-%m-%d' --time-format '%H:%M:%S' |
sudo apt-get install vlan |
#!/bin/bash | |
# https://cloud.google.com/compute/docs/faq#find_ip_range | |
# nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8 | |
myarray=() | |
for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :` | |
do | |
myarray+=($LINE) | |
for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :` |