Skip to content

Instantly share code, notes, and snippets.

View ChengLuffy's full-sized avatar
💭
(╯°□°)╯︵ ┻━┻

chenluffy ChengLuffy

💭
(╯°□°)╯︵ ┻━┻
View GitHub Profile
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:adamgibbons/ics
METHOD:PUBLISH
X-WR-CALNAME:英雄联盟2022职业联赛
X-PUBLISHED-TTL:PT1H
BEGIN:VEVENT
UID:fc6cb44e-965a-4c21-a1e2-9f99b44cf3d0
SUMMARY:OMG vs TT - 2 : 0
#!name=YouTube
#!desc=Remove YouTube Ads
[Rule]
URL-REGEX,^https:\/\/.+\.googlevideo\.com\/.+&oad,REJECT
URL-REGEX,https?:\/\/.+.googlevideo.com\/ptracking\?pltype=adhost,REJECT
URL-REGEX,https?:\/\/.+.youtube.com\/api\/stats\/ads,REJECT
URL-REGEX,https?:\/\/.+.youtube.com\/get_midroll_,REJECT
URL-REGEX,https?:\/\/.+.youtube.com\/pagead\/,REJECT
URL-REGEX,https?:\/\/.+.youtube.com\/ptracking\?,REJECT
BEGIN:VCALENDAR
VERSION:2.0
PRODID: LPL2020
X-WR-CALNAME:LPL2020赛程
BEGIN:VEVENT
SUMMARY:IG vs FPX 2 : 1
UID:lpl2020_5655
DTSTART:20200113T090000Z
DTEND:20200113T090000Z
BEGIN:VALARM
#coding:UTF-8
import json
import re
import base64
import time
import requests
from bs4 import BeautifulSoup
HEADERS = {
@ChengLuffy
ChengLuffy / rules.yml
Last active September 19, 2020 14:18
rules:
- DOMAIN,xn--jbto0da.xn--6qq986b3xl,DIRECT
# Apple
- DOMAIN,hls.itunes.apple.com,Proxy
- DOMAIN,itunes.apple.com,Proxy
- DOMAIN-SUFFIX,digicert.com,DIRECT
- DOMAIN-SUFFIX,icloud.com,DIRECT
- DOMAIN-SUFFIX,icloud-content.com,DIRECT
- DOMAIN-SUFFIX,mzstatic.com,DIRECT
- DOMAIN-SUFFIX,akadns.net,DIRECT
port: 7890
socks-port: 7891
allow-lan: true
mode: rule
log-level: info
external-controller: '127.0.0.1:9090'
let URL = "https://v2ray.api.lanan.xyz/client/api.php"
function checkUserInfoCached() {
var username = "";
var password = "";
if ($cache.get("username") == null) {
$input.text({
placeholder: "用户名",
handler: function(text) {
# applescript
# add login item
osascript -e 'tell application "System Events" to make login item at end with properties {name: "Notes",path:"/Applications/Notes.app", hidden:false}'
# delete login item
osascript -e 'tell application "System Events" to delete login item "itemname"'
# list loginitems
osascript -e 'tell application "System Events" to get the name of every login item'