Skip to content

Instantly share code, notes, and snippets.

@broestls
broestls / Remove_VMwareTools.ps1
Last active June 30, 2024 04:44
Force removal of VMware Tools, Program Files, and Windows Services
# 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
@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 :`