Skip to content

Instantly share code, notes, and snippets.

@OpenGG
OpenGG / bulkEditTracker.js
Last active April 16, 2023 17:59
qbittorrent bulkEditTracker
// See more on https://github.com/qbittorrent/qBittorrent/issues/11868
/**
* The old tracker URL, which could be a string or regex.
*/
const OLD_TRACKER = ''
/**
* The new tracker URL.
*/
@OpenGG
OpenGG / execute.sh
Created February 14, 2023 19:07
auto reboot modem
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
pwd
URL_204=http://connect.rom.miui.com/generate_204
PING_TARGETS="baidu.com t.cn 8.8.8.8"
@OpenGG
OpenGG / update-template.sh
Last active December 31, 2021 12:28
codesandbox-vite-template
#!/usr/bin/env bash
set -e
# SECTION_HEAD: definitions
## dir basename
PWD=`pwd`
BASENAME=`basename "$PWD"`
## define prefix
@OpenGG
OpenGG / index.html
Created September 2, 2019 06:07
h2-cdnjs
<!-- staticfile not support http2? -->
<script src="https://cdn.staticfile.org/classnames/2.2.6/index.min.js"></script>
<!-- jsdelivr support http2. -->
<script src="https://cdn.jsdelivr.net/npm/classnames@2.2.6/index.min.js"></script>
@OpenGG
OpenGG / bj-telecom-iptv-fav.m3u
Last active January 19, 2024 11:49
bj-telecom-iptv-fav.m3u
#EXTM3U
#EXTINF:-1 tvg-id="" tvg-name="" tvg-logo="" group-title="未分类",4K超清
http://192.168.198.11:8012/rtp/225.1.8.211:8002
#EXTINF:-1 tvg-id="" tvg-name="爱上4K" tvg-logo="http://epg.51zmt.top:8000/tb1/sheng/aishang4k.png" group-title="未分类",爱上4K
http://192.168.198.11:8012/rtp/225.1.8.80:2000
#EXTINF:-1 tvg-id="1" tvg-name="CCTV1" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV1.png" group-title="央视",CCTV-1综合HD
http://192.168.198.11:8012/rtp/225.1.8.1:8008
#EXTINF:-1 tvg-id="2" tvg-name="CCTV2" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV2.png" group-title="央视",CCTV-2财经HD
http://192.168.198.11:8012/rtp/225.1.8.2:8084
#EXTINF:-1 tvg-id="3" tvg-name="CCTV3" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV3.png" group-title="央视",CCTV-3综艺HD
@OpenGG
OpenGG / bash.sh
Last active November 21, 2018 10:39
Nginx quick test
mkdir html
mkdir config
# default conf
docker run --name tmp-nginx-container -d nginx
docker cp tmp-nginx-container:/etc/nginx/ config/
docker rm -f tmp-nginx-container
docker run \
--name my-nginx \
@OpenGG
OpenGG / demo-response.txt
Last active August 25, 2018 07:36
axios-fail-json-parse
{"recordsTotal":264,"recordsFiltered":10,"data":[{"_id":"5b687945d8311b5750b5ecae","content":"Mọi người có ai biết nhà M ở đâu không nhỉ? Kì này mình có mấy môn học ở nhà M mà không rõ ở đâu @@","reply":"","time":"2018-08-06T16:37:25.779Z","image":""},{"_id":"5b67d3add8311b5750b5ecad","content":"Hỡi các ac ngành công nghệ thông tin định hướng thị trường Nhật Bản.\nAc có thể để lại vài chia sẻ của bản thân không ạ, e muốn nghe tất cả những gì ac biết và muốn biết tất cả những gì e sẽ học ạ\nLove all","reply":"","time":"2018-08-06T04:50:53.875Z","image":""},{"_id":"5b67c2fcd8311b5750b5ecac","content":"Một mẩu chuyện vui\nEm là tân sinh viên 2k. Hồi đi học chúng nó cứ trêu là học công nghệ thông tin thì sau này cài win dạo. Đẳng cấp hơn thì làm hacker. Khi đỗ thì bị đùa là kĩ sư Nhật Bản vì em theo định hướng thị trường nhật. Nói chung nó chỉ có thế thôi.\nEm xin lỗi vì câu chuyện thiếu muối này. Đấy chỉ là những gì em nghĩ thôi","reply":"","time":"2018-08-06T03:39:40.938Z","image":""},{"_id":"5b67960cd8311b5750
@OpenGG
OpenGG / uninstall-mibox-bloatware.sh
Last active December 18, 2023 21:31
Uninstall mibox bloatware
adb shell pm uninstall --user 0 -k com.xiaomi.tv.mitvuser
adb shell pm uninstall --user 0 -k com.duokan.airkan.tvbox
adb shell pm uninstall --user 0 -k com.xiaomi.account
adb shell pm uninstall --user 0 -k com.mitv.tvhome
adb shell pm uninstall --user 0 -k com.xiaomi.tv.gallery
adb shell pm uninstall --user 0 -k com.jiajia.yundonghui.mitv
adb shell pm uninstall --user 0 -k com.xiaomi.gamecenter.sdk.service.mibox
adb shell pm uninstall --user 0 -k com.miui.systemAdSolution
adb shell pm uninstall --user 0 -k com.xiaomi.mitv.appstore
adb shell pm uninstall --user 0 -k com.xiaomi.mitv.osstatistic
@OpenGG
OpenGG / bj-unicom-iptv-movie.m3u
Last active December 7, 2022 15:14
bj-unicom-iptv-movie.m3u
#EXTM3U name="bj-unicom-iptv"
#EXTINF:-1,BTV体育高清
http://192.168.1.4:8012/rtp/239.3.1.243:8000
#EXTINF:-1,BTV北京卫视高清
http://192.168.1.4:8012/rtp/239.3.1.241:8000
#EXTINF:-1,淘剧场
http://192.168.1.4:8012/rtp/239.3.1.95:8001
#EXTINF:-1,淘电影
http://192.168.1.4:8012/rtp/239.3.1.250:8001
#EXTINF:-1,4K超清
@OpenGG
OpenGG / gist:5feea9aad65a5d98f77cb8c68d192d72
Created March 16, 2018 14:58
phicomm t1 remove bloatware
pm uninstall -k --user 0 com.feixun.dangbeimarket
pm uninstall -k --user 0 com.tianci.ad
pm uninstall -k --user 0 com.feixun.qiyiguo
pm uninstall -k --user 0 cn.cibn.health
pm uninstall -k --user 0 com.pptv.tvsports.preinstall
pm uninstall -k --user 0 com.phicomm.phiweather
pm uninstall -k --user 0 com.pplive.atv
pm uninstall -k --user 0 cn.cibntv.ott
pm uninstall -k --user 0 com.phicomm.update
pm uninstall -k --user 0 com.phicomm.datatracker