This file contains hidden or 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
| scriptencoding utf-8 | |
| set tabstop=4 " 设置制表符(tab键)的宽度 | |
| set softtabstop=4 " 设置软制表符的宽度 | |
| set shiftwidth=4 " (自动) 缩进使用的8个空格 | |
| set cindent " 使用 C/C++ 语言的自动缩进方式 | |
| set cinoptions={0,1s,t0,p2s,(03s,=.5s,>1s,=1s,:1s "设置C/C++语言的具体缩进方式 | |
| " set backspace=2 " 设置退格键可用 | |
| set undofile " Persistent undo even through restart | |
| set undodir=$HOME/.vim/undo |
This file contains hidden or 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
| #-*- coding: UTF-8 -*- | |
| import sys | |
| import time | |
| import urllib.request | |
| import urllib.error | |
| import ctypes | |
| import logging | |
| import argparse | |
| import datetime |
This file contains hidden or 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 requests | |
| import time | |
| import math | |
| def query_traffic(line): | |
| payload = {'Guid': '24fce9ce-f441-45c5-99e1-bc6b40661f1e', | |
| 'city_id': '320500', | |
| 'deviceId': 'd049666ff7e010318f0cdc2c75d95ff0', | |
| 'sign': '539f272911d2bb23117ea6211cce1bb5', | |
| 'client_id': '320500', |
This file contains hidden or 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/python | |
| import sys, os | |
| from sys import argv | |
| from unidiff import PatchSet | |
| import subprocess | |
| def parse_log_line(line): | |
| """ | |
| parse a line from the cpplint results with --output=vs7 |
This file contains hidden or 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 -*- | |
| import argparse | |
| OUT_FILE = 'output.srt' | |
| def run(srt_file): | |
| LineList = [] | |
| timestamp_line = False | |
| with open(srt_file, 'r',encoding="utf-8") as srtfile: |
This file contains hidden or 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 os | |
| import sys | |
| import argparse | |
| import requests | |
| import shutil | |
| from bs4 import BeautifulSoup | |
| from urllib.parse import urlparse | |
| from vtt_to_srt import vtt_to_srt | |
| OUTPUT_DIR = 'output' |
This file contains hidden or 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
| { | |
| "ver":"5.0", | |
| "tag":"hipsuser", | |
| "data":[ | |
| { | |
| "id":54, | |
| "power":1, | |
| "name":"禁垃圾软件", | |
| "procname":"*", | |
| "treatment":3, |
This file contains hidden or 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 subprocess | |
| from tqdm import tqdm | |
| files = [] | |
| commitSHA1 = subprocess.check_output(['git', 'rev-list', '--all'], text=True) | |
| for c in tqdm(commitSHA1.splitlines()): | |
| files.extend(subprocess.check_output(['git', 'ls-tree', '-r', '--long', c], text=True).splitlines()) | |
This file contains hidden or 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
| #-*- coding: UTF-8 -*- | |
| import os | |
| import sys | |
| import time | |
| import logging | |
| import socket | |
| import urllib.request | |
| import base64 | |
| import hashlib | |
| import tempfile |
This file contains hidden or 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
| #\::{ | |
| SendMessage 0x0112, 0xF140, 0, , "Program Manager" | |
| Sleep 1000 | |
| SendMessage 0x0112, 0xF170, 2, , "Program Manager" | |
| } | |
| #+p::run "shutdown.exe /r /fw /t 0" ; reboot to bios | |
| #+r::run "explorer.exe ::{645FF040-5081-101B-9F08-00AA002F954E}" ; Recycle bin | |
| #+s::run "explorer.exe shell:startup" |