Skip to content

Instantly share code, notes, and snippets.

View alanljj's full-sized avatar
🎯
Focusing

ITGeeker alanljj

🎯
Focusing
View GitHub Profile
@woodongwong
woodongwong / iptv.tvfix.org.m3u8.txt
Last active January 18, 2024 02:12
iptv.tvfix.org(电视侠)直播源,see: https://github.com/woodongwong/tvfix
see: https://github.com/woodongwong/tvfix
@primaryobjects
primaryobjects / chrome-version.py
Last active March 22, 2024 12:04
Detect the version of Chrome installed on Windows, Linux, Mac. Cross-platform using Python, native OS detection, does not require Selenium.
#
# Programmatically detect the version of the Chrome web browser installed on the PC.
# Compatible with Windows, Mac, Linux.
# Written in Python.
# Uses native OS detection. Does not require Selenium nor the Chrome web driver.
#
import os
import re
from sys import platform

There's a workaround that might be useful for some people - use the Shadowsocks app for Android TV. Because that app only accepts a JSON configuration file, you need to convert the Outline key to JSON.

  1. Take the following JSON file template:
    {
        "server":"YOUR-SERVER",
        "server_port":12345,
        "local_port":1080,
        "password":"YOUR-PASSWORD",
        "method":"chacha20-ietf-poly1305",
@timedcy
timedcy / xshell2putty_config.sh
Created December 4, 2019 08:53
convert to and import putty config from xshell's
#!/bin/bash
# convert to and import putty config from xshell's
# author: timedcy
# date: 2019-12-04
# usage:
# In Windows 10 cmd, execute commands
# wsl bash xshell2putty_config.sh
# reg import tmp_xshell2putty_config.reg
@FindHao
FindHao / findhao_rss_sources.xml
Last active October 19, 2019 10:42
我的rss订阅源
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<opml version="1.0">
<head>
<title>
Subscriptions of find from Inoreader [https://www.inoreader.com]
</title>
</head>
<body>
<outline text="Blogs" title="Blogs">
<outline text="cgnail's weblog" title="cgnail's weblog" type="rss" xmlUrl="http://cgnail.github.io/atom.xml" htmlUrl="http://cgnail.github.io/"/>
@carry0987
carry0987 / RPi3-Auto-Email-New-Public-IP-If-Changed-Python3.md
Last active September 19, 2018 01:58
RPi3-Auto-Email-New-Public-IP-If-Changed-Python3

RPi3 Auto Email New Public IP If Changed (Python3)

Step

  1. Use wget to download IP-Reporting script

    sudo wget https://raw.github.com/carry0987/Raspberry-Pi-Repo/master/Auto-Report-IP/report-ip.py
    

  2. Give the script executing permission

@carry0987
carry0987 / RPi3-Change-Berryboot-Default-System-By-SSH.md
Last active September 19, 2018 01:43
RPi3-Change-Berryboot-Default-System-By-SSH

RPi3 Change Berryboot Default System By SSH

Step

  1. Use sudo mount /dev/mmcblk0p2 /mnt to mount raw storage

  2. Use ls /mnt/images to check what the full file name of the operating you would like to run

  3. Use sudo su to change user into root

@Jamesits
Jamesits / ubuntu_enable_bbr.sh
Last active December 13, 2022 22:27
Ubuntu enable BBR
#!/bin/bash
set -eu
SYSCTL_FILE=/etc/sysctl.d/90-tcp-bbr.conf
# check root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
@hdml
hdml / - Syncthing + start on boot.md
Last active November 22, 2023 19:26
How to install Syncthing on Raspberry Pi + start on boot [semi-automatic]

##Run install_syncthing.sh

$ curl -s https://gist.githubusercontent.com/hdml/7b079c114d3e20bf69f1/raw/1cd3647b1db4f80726c145fba725e27993a7fcdb/install_syncthing.sh | sudo bash

Start syncthing

$ syncthing

Wait until you get something like: