Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name 北师大云盘下载器
// @namespace https://zhangnew.com/
// @version 0.2
// @description 解除下载限制,通过调用预览接口,清晰度稍有下降。(点击下载之后稍等一会儿,会在下载完成之后弹出保存)
// @author zhangnew
// @homepage https://zhangnew.com/
// @downloadURL https://gist.github.com/zhangnew/c89d0a06bd3ddb5ed6fef487b2cc3b2e/raw/pan_bnu_download.user.js
// @updateURL https://gist.github.com/zhangnew/c89d0a06bd3ddb5ed6fef487b2cc3b2e/raw/pan_bnu_download.user.js
// @match https://pan.bnu.edu.cn/link/view/*
// ==UserScript==
// @name PT Copy Seed Info
// @version 0.2
// @description 复制PT详情页的信息便于转载,简介部分自动转为 BBCode 格式,可以点击标题、副标题、详情部分进行复制,目前支持 HDHome、PTHome、南洋、柠檬、杜比、烧包、BTSchool
// @author zhangnew
// @namespace https://zhangnew.com/
// @homepage https://zhangnew.com/
// @downloadURL https://gist.github.com/zhangnew/59556c22343a03cf71c6463950e3bdf6/raw/pt_copy_seed_info.user.js
// @updateURL https://gist.github.com/zhangnew/59556c22343a03cf71c6463950e3bdf6/raw/pt_copy_seed_info.user.js
// @match https://www.pthome.net/details.php?id=*

Keybase proof

I hereby claim:

  • I am zhangnew on github.
  • I am zhangnew (https://keybase.io/zhangnew) on keybase.
  • I have a public key ASDLjqAPIgsdW2zRK3Py4S5aKIw7u6wAQ3dl155AFT-ROwo

To claim this, I am signing this object:

@zhangnew
zhangnew / SDLInstall.sh
Created May 2, 2017 07:45 — forked from JPEGtheDev/SDLInstall.sh
Auto install SDL2 on a CentOS System
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
cd /tmp
hg clone https://hg.libsdl.org/SDL SDL;
cd SDL;
mkdir build;
cd build;
@zhangnew
zhangnew / .vimrc
Created January 20, 2017 04:19
.vimrc
set ts=4
set expandtab
autocmd BufWritePost $MYVIMRC source $MYVIMRC
set nocompatible "去掉讨厌的有关vi一致性模式,避免以前版本的一些bug和局限
""""""""""""""""""""""""""""""""""""""""""""""""""""
" set theme
syntax enable
set background=dark
"colorscheme solarized
@zhangnew
zhangnew / 0_reuse_code.js
Created October 12, 2016 11:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@zhangnew
zhangnew / 词性标记.md
Last active March 8, 2017 10:41
中文分词

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0 词性标记集

n 名词

nr 人名

@zhangnew
zhangnew / linux.md
Last active January 22, 2017 04:49
linux 常用操作
  • 1、linux 重命名乱码文件:

首先查看文件节点号:

ls -i

比如得到的文件号是 32983542 ,要改成 readme.html 这个文件名,用以下命令即可:

find . -inum 32983542 -exec mv {} readme.html ;