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
// ==UserScript== | |
// @name Convert Gmail Quote Attribution to English | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2.0 | |
// @description Convert Gmail's attribution line for automatically quoted messages to format in English. | |
// @author prin | |
// @license MIT | |
// @match *://mail.google.com/* | |
// @match *://gmail.com/* | |
// @run-at context-menu |
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
// ==UserScript== | |
// @name Abema 强制 1080p | |
// @description 把其他清晰度的播放列表强制指向1080p | |
// @version 1.1.0 | |
// @run-at document-start | |
// @namespace Violentmonkey Scripts | |
// @match https://abema.tv/* | |
// @grant none | |
// ==/UserScript== |
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
# Default bash prompt of CentOS | |
# e.g. [user@host current]$ | |
PROMPT="%{$fg_bold[green]%}[%n@%m%{$reset_color%} %{$fg_bold[white]%}%c%{$fg_bold[green]%}]%(!.#.$)%{$reset_color%} " |
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
<?php | |
// 当前文件:download.php | |
$action = @$_GET['action']; | |
// 自己获取这些信息 | |
$remote_url = get_remote_file_url(); | |
$file_size = get_remote_file_size($remote_url); | |
$tmp_path = get_tmp_path(); |
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
# @Author: printempw | |
# @Date: 2017-05-13 17:54:48 | |
# @Last Modified by: printempw | |
# @Last Modified time: 2017-05-13 21:37:41 | |
cat /dev/null > ff.txt | |
# 防止变成 1、10、2、3 这样的顺序 | |
for i in `ls -1 *.flv | sort -n`; do | |
echo "file '${i}'" >> ff.txt; |
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 | |
# coding: utf-8 | |
import re | |
import sys | |
import json | |
import requests | |
from retrying import retry | |
headers = { |
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
<p>更新包大小:<span id="file-size">0</span> Bytes</p> | |
<!-- 进度条 --> | |
<div class="progress"> | |
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%"> | |
<span id="imported-progress">0</span>% | |
</div> | |
</div> | |
<script> | |
// 更新进度条的函数 |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.md] | |
@="Typora.md" | |
[HKEY_CLASSES_ROOT\.md\OpenWithProgids] | |
"Typora.md"="" | |
[HKEY_CLASSES_ROOT\Typora.md] | |
@="Markdown File" |
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 -*- | |
import sys | |
# Python version check | |
if (sys.version_info[0] < 3): | |
print("This script only works on Python 3+.") | |
exit(1) | |
import os, time | |
import urllib.request |
NewerOlder