This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from urllib import request | |
import sys | |
import json | |
TOKEN="16181xxxxx:xxxxxxxxxxxxxxx" | |
CHAT="-100118639xxxx" | |
TEXT=sys.argv[1] | |
SERVER="what ever name you want" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
# see https://blog.tpob.xyz/2021/03/24/%E6%9B%B4%E5%BF%AB%E4%B8%8B%E8%BD%BDsra%E6%95%B0%E6%8D%AE%E5%BA%93%E4%B8%AD%E7%9A%84fastq.gz%E6%96%87%E4%BB%B6/ for more | |
import requests | |
import json | |
import sys | |
accesion=sys.argv[1] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Monitoring the zpool on my machine | |
[Service] | |
ExecStart=/usr/local/bin/zfsMonitor | |
Type=oneshot | |
StandardOutput=journal | |
User=root | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Socat Greeting Service | |
Documentation=man:socat(1) | |
[Service] | |
User=root | |
Group=root | |
#ExecStart=/bin/bash -c "/usr/bin/env WSL_HOST=`tail -1 /etc/resolv.conf |cut -d' ' -f2` socat tcp-l:%i,fork,reuseaddr tcp:$WSL_HOST:%i " | |
ExecStart=/bin/bash -c "socat tcp-l:%i,fork,reuseaddr tcp:`tail -1 /etc/resolv.conf |cut -d' ' -f2`:%i" | |
Restart=on-success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yaml | |
import os | |
import sys | |
versioncode = sys.argv[1] | |
url="https://download.calibre-ebook.com/" + versioncode + "/calibre-64bit-" + versioncode + ".msi" | |
os.system("aria2c -x16 --continue=true -o " + "calibre-64bit-" + versioncode + ".msi "+url) | |
hashval = os.popen("sha256sum calibre-64bit-"+versioncode+".msi"+" | cut -d\ -f1").read().strip() | |
manifest_dict = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOMAIN-SUFFIX,51cto.com | |
DOMAIN-SUFFIX,51sjsj.com | |
DOMAIN-SUFFIX,5cy.com | |
DOMAIN-SUFFIX,5read.com | |
DOMAIN-SUFFIX,aacnjournals.org | |
DOMAIN-SUFFIX,aacrjournals.org | |
DOMAIN-SUFFIX,aacr.org | |
DOMAIN-SUFFIX,aappublications.org | |
DOMAIN-SUFFIX,accessmedicine.com | |
DOMAIN-SUFFIX,accesspharmacy.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem . | Foreach-Object -Process { | |
$subPath = $_.LastWriteTime.year.tostring() + "\" + $_.LastWriteTime.year.tostring() + "." + $_.LastWriteTime.month.tostring("00") | |
$from = $_.Name | |
function Move-Android ($subdest) { | |
Write-Output $_.Name | |
$dest = $subdest + "\" + $subPath | |
if (!(Test-Path $dest)) { | |
New-Item -Path $dest -ItemType Directory | Out-Null | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[custom] | |
;设置规则标志位 | |
surge_ruleset=PseudoDirect,rules/ConnersHua/Surge/Ruleset/Unbreak.list | |
;surge_ruleset=PseudoReject,rules/NobyDa/Surge/AdRule.list | |
;surge_ruleset=PseudoReject,rules/ConnersHua/Surge/Ruleset/Hijacking.list | |
surge_ruleset=Academic,https://github.com/TTTPOB/SS-Rule-Snippet/raw/master/Rulesets/Custom/academic.list | |
surge_ruleset=ManuallySelect,rules/ConnersHua/Surge/Ruleset/GlobalMedia.list | |
surge_ruleset=ChinaMedia,rules/lhie1/Surge3/Domestic.list | |
surge_ruleset=DIRECT,https://gist.githubusercontent.com/TTTPOB/3cd919152e736581685fd84bb7071cdf/raw/Steam.list | |
surge_ruleset=ManuallySelect,rules/ConnersHua/Surge/Ruleset/Telegram.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port: 7890 | |
socks-port: 7891 | |
allow-lan: true | |
external-controller: 0.0.0.0:7892 | |
dns: | |
enable: true | |
listen: 0.0.0.0:53 | |
enhanced-mode: fake-ip | |
nameserver: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// an example to create a new mapping `ctrl-y` | |
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. | |
api.map('gt', 'T'); | |
// hint displayed left | |
settings.hintAlign = "left"; | |
// navigate forward and backward | |
api.unmap('H'); | |
api.mapkey('HH', '#8Open opened URL in current tab', function() { | |
api.Front.openOmnibar({type: "URLs", extra: "getTabURLs", tabbed: "false"}); |