Skip to content

Instantly share code, notes, and snippets.

View wwng2333's full-sized avatar

Crazy wwng2333

View GitHub Profile
#!/bin/sh
smartdns_Bin="/etc/storage/smartdns-mipsel"
smartdns_Conf="/etc/storage/smartdns_m.conf"
smartdns_port="6053"
smartdns_Bin_Name="smartdns-mipsel"
# iptables -t nat -L
# netstat -tulpn | grep LISTEN
[Unit]
Description=workerman
After=syslog.target
After=network.target
After=redis.service
Requires=redis.service
[Service]
Type=forking
WorkingDirectory=/app/oms/workerman/
#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
@benzBrake
benzBrake / ipip.sh
Created November 23, 2016 06:37
Get IP Location (Data Source: IPIP)
#/bin/sh
ip=$1
echo ${ip}|grep "^[0-9]\{1,3\}\.\([0-9]\{1,3\}\.\)\{2\}[0-9]\{1,3\}$" > /dev/null;
if [ $? -eq 0 ]
then
result=`curl "http://ip.huomao.com/ip?ip=${ip}" 2>/dev/null`
result=${result:1:(-1)}
country=`echo ${result} | awk -F, '{ print $1}' | awk -F: '{ print $2}'`
province=`echo ${result} | awk -F, '{ print $2}' | awk -F: '{ print $2}'`
city=`echo ${result} | awk -F, '{ print $3}' | awk -F: '{ print $2}'`
@aarongeorge
aarongeorge / @moviemaking.cfg
Created December 6, 2015 01:24
CS:GO Movie Making Config
// A-Ron's CS:GO Movie Making Config
// Cheats are required
sv_cheats "1"
// Enable console
con_enable "1"
// HUD
cl_autohelp "0"