##ss加密算法
常用算法aes-256-cfb速度较慢,在路由器等arm平台表现不佳。
用于arm平台时,采用算法rc4-md5即可。
"method":"rc4-md5"
为加速加密速度,安装m2crypto
yum install m2crypto
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
# Add the following to your shell init to set up gpg-agent automatically for every shell | |
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gnupg/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else |
/* Refrences: | |
1. http://notes.iissnan.com/2016/publishing-github-pages-with-travis-ci | |
2. https://github.com/chrisjlee/hexo-theme-zurb-foundation/blob/e82f45a82bbaaee063bcb1298cd9793575afb142/gulpfile.js | |
3. https://github.com/gulpjs/gulp/blob/master/docs/recipes/delete-files-folder.md | |
4. https://hexo.io/api/ | |
5. https://github.com/iissnan/theme-next-docs/blob/master/.travis.yml | |
*/ | |
var gulp = require('gulp'); | |
var minifycss = require('gulp-clean-css'); |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys
and look for sec
, use the key ID for the next stepgit
to use GPG -- replace the key with the one from gpg --list-secret-keys
// ==UserScript== | |
// @name ByeZhihuSecurity | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 去除知乎点开外链的安全中心跳转 | |
// @author Lin Xiangyu | |
// @match https://www.zhihu.com/* | |
// @grant none | |
// ==/UserScript== |
\documentclass[UTF8, openany,twoside]{ctexbook} | |
\usepackage{minted} | |
\usepackage[tikz]{bclogo,rotating} | |
\usepackage{tikz} | |
\usepackage{mdframed} | |
\usepackage{geometry} | |
\usetikzlibrary{calc} | |
\DeclareGraphicsRule{.mps}{eps}{.mps}{} |
#!/usr/bin/env bash | |
# | |
# Author: Stefan Buck | |
# License: MIT | |
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
# | |
# | |
# This script accepts the following parameters: | |
# | |
# * owner |
$('.load-gist').on('click', function() { | |
var gist = { | |
// URL 传参自己改下 | |
url: '//gist.github.com/printempw/' + $(this).data('hash') + '.json?callback=?', | |
dom: this | |
} | |
// 因为 URL 中带了 `callback=?`,所以这里 jQuery 会使用 JSONP 方式请求 | |
$.getJSON(gist.url, function(data) { | |
// 加载样式 |
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
<a class="btn btn-default" href="javascript:disqus.load();">点击以加载 Disqus</a> |