Skip to content

Instantly share code, notes, and snippets.

View zhangzhishan's full-sized avatar
🎯
Focusing

Zhang Zhishan zhangzhishan

🎯
Focusing
View GitHub Profile
// Compatibility Prefix
const {
Clipboard,
Front,
Hints,
Normal,
RUNTIME,
Visual,
aceVimMap,
addSearchAlias,
@zhangzhishan
zhangzhishan / osync.conf
Created April 22, 2020 08:34
configuration for osync.
###### osync - Rsync based two way sync engine with fault tolerance
###### (C) 2013-2019 by Orsiris de Jong (www.netpower.fr)
[GENERAL]
CONFIG_FILE_REVISION=1.3.0
## Sync job identification
INSTANCE_ID="sync_personaldropbox"
## Directories to synchronize.
@zhangzhishan
zhangzhishan / scoop_install.bat
Last active May 15, 2022 07:13
install software using scoop
scoop install git
scoop bucket add extras
scoop bucket add Versions
scoop bucket add Ash258 'https://github.com/Ash258/scoop-Ash258.git'
scoop bucket add nerd-fonts
; picgo
; scoop bucket add helbing https://github.com/helbing/scoop-bucket
sudo scoop install 3270-NF
scoop install ack
@zhangzhishan
zhangzhishan / counters.ps1
Last active April 28, 2020 01:38
powershell related code #powershell
‎‎​
@zhangzhishan
zhangzhishan / disable4996.cpp
Last active April 27, 2020 10:19
C++ related code #cpp
#pragma warning(disable: 4996)
https://press.one/p/address/v?s=d2747b616a1788874a756934c2e1fc6ec4c06fa677c9512fa0010459cd61e44f66a8b3bf326a556a25c93c2776e91e96ee442a853be58b7e9e7029e6c665e67d1&h=d9bf4b08a7e63a3ff87aae1a64b6f4b67373a8675e597e844f18f413fef2937d&a=07b77bfda17bf34cb496614c98d335bc9e721da1&f=P1&v=2
@zhangzhishan
zhangzhishan / tmux-cheatsheet.markdown
Created February 23, 2016 02:26 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
import os
import os.path
import re
import eyed3
import urllib2
import urllib
from urllib import urlencode
import sys
import os
@zhangzhishan
zhangzhishan / comparexlsx.py
Created August 30, 2015 10:51
A python script to compare some json data and the local excel files and save data everyday
#!/usr/bin/env python
# encoding: utf-8
# author:huhuhushan
from openpyxl import Workbook, load_workbook
import urllib2
import os
import datetime
wb = load_workbook('/data/www/api12/new.xlsx')