Skip to content

Instantly share code, notes, and snippets.

View metowolf's full-sized avatar
:octocat:
开源一时爽,一直开源一直爽

METO metowolf

:octocat:
开源一时爽,一直开源一直爽
View GitHub Profile
@metowolf
metowolf / gedit.sh
Last active July 18, 2016 11:27
Gedit with G++
#!/bin/sh
fullname=$GEDIT_CURRENT_DOCUMENT_NAME
dir=$GEDIT_CURRENT_DOCUMENT_DIR
name=`echo $fullname | cut -d. -f1`
g++ -g $fullname -o $name -std=gnu++11 -static && echo "success" && gnome-terminal --hide-menubar --working-directory=$dir -x bash -c "time $dir/$name;read"
@metowolf
metowolf / .vimrc
Last active August 14, 2018 15:34
vimrc for ACM-ICPC with C++
set cin nu ts=4 sw=4 sts=4 mouse=a
syn on
function! Compile()
:!g++ -std=gnu++11 -g % -o %<.exe
endfunction
function! Run()
:!time ./%<.exe
endfunction
#/bin/ash
line=0
while [ $line -eq 0 ]
do
sleep 10
line=`route -A inet6 | grep ::/0 | awk 'END{print NR}'`
done
ip6tables -t nat -I POSTROUTING -s `uci get network.globals.ula_prefix` -j MASQUERADE
route -A inet6 add 2000::/3 `route -A inet6 | grep ::/0 | awk 'NR==1{print "gw "$2" dev "$7}'`

Keybase proof

I hereby claim:

  • I am metowolf on github.
  • I am meto (https://keybase.io/meto) on keybase.
  • I have a public key whose fingerprint is DBF8 4DFC 5815 5AFB 0E0E D563 13BB D5BC F8FF E55D

To claim this, I am signing this object:

--- target/linux/ar71xx/image/legacy.mk 2017-02-15 20:50:42.000000000 +0800
+++ target/linux/ar71xx/image/legacy.mk 2018-01-01 15:56:28.758567187 +0800
@@ -281,7 +281,7 @@
wnr2000v4_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,3776k(firmware),64k(art)ro
r6100_mtdlayout=mtdparts=ar934x-nfc:128k(u-boot)ro,256k(caldata)ro,256k(caldata-backup),512k(config),512k(pot),2048k(kernel),122240k(ubi),25600k@0x1a0000(firmware),2048k(language),3072k(traffic_meter)
tew823dru_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,15296k(firmware),192k(lang)ro,512k(my-dlink)ro,64k(mac)ro,64k(art)ro
-wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata)ro,512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved)
+wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata)ro,512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),121856k(ubi),123904k
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKLv0Tnq7+HpyMd783LRE8S3alzApnC48qJoQGwrCQeBscwQOSwkXwoOdh2p1wxl9ra59K5m+Pgu0GwSOBkiZZAAHJPwG+5ctz/rVG452hFHMT9EkeYHzPMTekEfEJG/zg2977ZaIyF/1stYTkUFzxOSEmeZD8IbQYzw9wFKL2Ihw4IZCXPpE2D6gsCEcpBWkmhYboamEICppJwIHAHYT/yxfDYLNKqZQUmpMqeIh67o53/x4zY922WhrIhoz3Vpai4izFklGN93ofgUaxou/KEQxj/99T8JT3FjtoB7kfN60d+71LV+y+E5OAjjYFLrcZdW5HyN31Ek0qDeLYtNRe04ma8vrDk7lzgtQnqsDlooLfYvchlxr6IrpCvEP54lWrQODrdaHcCs3nlJHTchncFRjCN624IacF0vjEXIAfJLVeUl1lpoLi21WLjyFAFG5Hb6FcPOWctGtBzrP5bR4YZfi9vBWICWt5rn2Wbk3/k94LONCGt4CRaLexMJJX3dqzQLAQcoJNZxdtE0WAD3Leqw9LdhFgSrz+EU2yCpZ6VUBrAJ5xHQwef6fwpS/tkwFYX1W6WSO5oJUKfNkeAY1Nkcii5JbwqqTQISi9oQ2UMmYWX+5129S8nATucI0e94vSD5LedVmhJaWD/N7cW3CzTdADja1NMW5khGSX6JKn1w== [email protected]
import requests
import itertools
import sys,re
from PIL import Image
import zbarlight
colors = "LRUDFB"
def loadImage(filename):
img = Image.open(filename)
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225800/index.m3u8,CCTV2高清
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225801/index.m3u8,NEWTV超级综艺
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225802/index.m3u8,CCTV4
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225803/index.m3u8,NEWTV超级体育
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225804/index.m3u8,NEWTV超级电影
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225805/index.m3u8,CCTV7
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225806/index.m3u8,NEWTV超级电视剧
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225812/index.m3u8,CCTV1
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225813/index.m3u8,CGTN
http://ott.fj.chinamobile.com/PLTV/88888888/224/3221225814/index.m3u8,CCTV10高清
#EXTM3U
#EXTINF:-1,CCTV1
http://101.75.248.85/cache.ott.bestlive.itv.cmvideo.cn:80/000000001000/5000000010000030810/index.m3u8?channel-id=bestzb&Contentid=5000000010000030810&livemode=1&stbId=004003FF0020925379008422F151665C&userToken=22da83031e59d012e61af366ad30871e02vv&usergroup=g02020000000&version=1.0&owaccmark=5000000010000030810&owchid=bestzb&owsid=4493204831455166715&AuthInfo=cjcdlBWDTYYoYtO46RRUwsYRcjcWQVqy4ItUwCSE6Ep6GNpZ%2bE47AWi696WsOzmj03B6YdXlnCO%2fv10UuMElRmR3DSSroDBBiXOoLcO5%2b55ijGc06cd3bkZ3LN9pGE%2bm
#EXTINF:-1,CCTV2
http://101.75.248.85/cache.ott.bestlive.itv.cmvideo.cn:80/000000001000/6712427732700951500/index.m3u8?channel-id=bestzb&Contentid=6712427732700951500&livemode=1&stbId=004003FF0081265262008422F155806C&userToken=22da83031e59d012e61af366ad30871e02vv&usergroup=g02020000000&version=1.0&owaccmark=6712427732700951500&owchid=bestzb&owsid=4493204831455135327&AuthInfo=GOuF%2fjehgM4nFa0wimRtpfSRVkjIVeXDZspXKAy0Zq3TM%2fSQmFbVcrlhrnu8eLXazYTtgYPl6YWVHseE4Unk8ukMO%2bXWQYSUD2n7IOEJ%2bRGxRvfNrX
@metowolf
metowolf / icloud-mail-cn.module
Created June 2, 2020 12:32
云上贵州 iCloud 邮件修复
#!name=云上贵州 iCloud 邮件修复
#!desc=修复云上贵州 iCloud 邮件无法收发邮件的问题。
[Host]
*imap.mail.icloud.com.cn = imap.mail.icloud.com
*smtp.mail.icloud.com.cn = smtp.mail.icloud.com