Skip to content

Instantly share code, notes, and snippets.

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
@ViKingIX
ViKingIX / Monitoring Ceph with Prometheus and Grafana.md
Last active October 5, 2021 15:44
Monitoring Ceph with Prometheus and Grafana

Monitoring Ceph with Prometheus and Grafana

Concepts

  • Ceph Exporter: returns data on demand
  • Prometheus: data collector
  • Grafana: data visualizer

Installataion Steps

  1. Deploy ceph-exporter on host that has access to ceph
@jesobreira
jesobreira / push.php
Created February 6, 2018 20:17
Send Push using Google FCM
<?php
// Firebase Cloud Messaging Authorization Key
define('FCM_AUTH_KEY', 'your key here');
function sendPush($to, $title, $body, $icon, $url) {
$postdata = json_encode(
[
'notification' =>
[
@ashvayka
ashvayka / emulator.js
Created December 28, 2016 17:19
Temperature and Humidity emulator for Thingsboard tutorials
//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 = {
anonymous
anonymous / gdnsd_okok.sh
Created September 30, 2015 06:26
the script to test aliveness called by gdnsd extmon plugin
#!/bin/bash
html=$(curl $1)
if [ "$html" = "okok" ]; then
exit 0
else
exit 1
fi
@soheilpro
soheilpro / example.sh
Last active August 3, 2022 18:42
Easy IIS log file format specification for goaccess.
goaccess -f u_ex150629.log --log-format "$(cat u_ex150629.log | ./goiisformat.sh)" --date-format '%Y-%m-%d' --time-format '%H:%M:%S'
@livekn
livekn / install vlan
Last active July 22, 2020 17:11
Banana Pi R1 Switch setting
sudo apt-get install vlan
@n0531m
n0531m / list_gcp_iprange.sh
Last active April 17, 2024 21:50
Google Cloud Platform : ip address range
#!/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