- Ceph Exporter: returns data on demand
- Prometheus: data collector
- Grafana: data visualizer
- Deploy ceph-exporter on host that has access to ceph
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 :` |
# Centos 7.1 | |
yum -y install wget | |
wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm | |
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm | |
yum -y install deluge-web | |
systemctl start deluge-web | |
systemctl stop firewalld |