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
period = 300 # seconds | |
current = datetime_now() | |
next_ts = (current.timestamp() // period + random.random() + 1) * period |
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
set nu | |
let mapleader = "," | |
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'liuchengxu/vim-better-default' | |
call plug#end() |
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
set -g prefix2 C-a | |
bind C-a send-prefix -2 | |
set -g base-index 1 | |
setw -g pane-base-index 1 |
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
from socket import socket, AF_ALG, SOCK_SEQPACKET, SOL_ALG, ALG_SET_KEY | |
from binascii import hexlify | |
with socket(AF_ALG, SOCK_SEQPACKET, 0) as alg: | |
alg.bind(('hash', 'hmac(sha512)')) | |
alg.setsockopt(SOL_ALG, ALG_SET_KEY, b'key') | |
op, _ = alg.accept() | |
with open('/etc/passwd', 'rb') as f: | |
op.sendfile(f) | |
print(hexlify(op.recv(64))) | |
op.close() |
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
//**************已使用********************* | |
$(document).ready(function() { | |
//页面权限控制 | |
$.ajaxSetup({ | |
contentType:"application/x-www-form-urlencoded;charset=utf-8", | |
//跨域处理 | |
// xhrFields: { | |
// withCredentials: true | |
// }, | |
// crossDomain: true, |
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
(function(){ | |
/** | |
* Date: 2017/8/18 | |
* Email: [email protected] | |
* Author: hishion | |
* | |
* [Lottery 大转盘抽奖js插件, 无依赖, 简单易用] | |
* @param {[Dom Object]} oCanvas [canvas对象] | |
* @param {[Object]} options [配置参数, 请参考底部的_setOptions方法中的config对象] | |
*/ |
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
# 修改latex_elements | |
latex_elements = { | |
# The paper size ('letterpaper' or 'a4paper'). | |
# | |
'papersize': 'a4paper', | |
# The font size ('10pt', '11pt' or '12pt'). | |
# | |
# 'pointsize': '10pt', |