Skip to content

Instantly share code, notes, and snippets.

@mac-zhou
mac-zhou / node_exporter.sh
Created August 8, 2023 01:57 — forked from galexrt/node_exporter.sh
Simple Prometheus node_exporter install script (Updated for 1.0.1)
#!/bin/bash
version="${VERSION:-1.0.1}"
arch="${ARCH:-linux-amd64}"
bin_dir="${BIN_DIR:-/usr/local/bin}"
wget "https://github.com/prometheus/node_exporter/releases/download/v$version/node_exporter-$version.$arch.tar.gz" \
-O /tmp/node_exporter.tar.gz
mkdir -p /tmp/node_exporter
@mac-zhou
mac-zhou / midea-air-conditioning.html
Last active January 24, 2019 07:12
midea air conditioning
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="midea air conditioning">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS TEST</title>
</head>
<body>
<script>
@mac-zhou
mac-zhou / glibc-2.17_centos6.sh
Last active December 27, 2017 03:01 — forked from harv/glibc-2.17_centos6.sh
update glibc to 2.17 for CentOS 6
#! /bin/sh
# update glibc to 2.17 for CentOS 6
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm
sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \
#EXTM3U name="江苏电信IPTV"
#EXTINF:-1,CCTV1HD
http://<itv domain or ip address>:9080/rtp/239.49.8.19:9614
#EXTINF:-1,CCTV2HD
http://<itv domain or ip address>:9080/rtp/239.49.8.50:9802
#EXTINF:-1,CCTV3
http://<itv domain or ip address>:9080/rtp/239.49.0.3:9566
#EXTINF:-1,CCTV4HD
http://<itv domain or ip address>:9080/rtp/239.49.8.51:9806
#EXTINF:-1,CCTV5