Skip to content

Instantly share code, notes, and snippets.

View zhaojunhhu's full-sized avatar

zhaojun zhaojunhhu

View GitHub Profile
@zhaojunhhu
zhaojunhhu / 记数学公式.md
Created December 6, 2022 10:04 — forked from xiaoxiangmoe/记数学公式.md
记数学公式

记数学公式

[TOC]

简介

leanote的markdown编辑器支持基于MathJax编写LaTeX数学公式。

@zhaojunhhu
zhaojunhhu / bilibili.md
Created December 23, 2017 15:48
下载B站视频
pip3 install you-get
you-get http://www.bilibili.com/video/av_number/
@zhaojunhhu
zhaojunhhu / nginx.conf
Created October 25, 2017 18:36 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@zhaojunhhu
zhaojunhhu / dns_bind.md
Last active September 13, 2017 03:30
测试服务器DNS表

DNS IP:182.125.102.115

DOMAIN IP
a.shifen.com 182.125.103.1
www.a.shifen.com 182.125.102.1
baidu.com 182.125.101.1
baidu.com 182.125.102.1
www.baidu.com 182.125.102.1
map.baidu.com 182.125.102.200
@zhaojunhhu
zhaojunhhu / delete_file_folder1.py
Last active May 10, 2017 08:19
删除文件夹下所有文件和子文件夹
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
def delete_file_folder(src):
'''delete files and folders'''
if os.path.isfile(src):
try:
os.remove(src)
except:
@zhaojunhhu
zhaojunhhu / SVN ICON SYNC
Last active May 10, 2017 07:09
同步网盘图标注册表路径
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers
sync-settings
@zhaojunhhu
zhaojunhhu / os_walk.py
Last active May 10, 2017 07:10
Python os.walk遍历出某路径下所有文件
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# os.walk()的使用
import os
# 枚举dirPath目录下的所有文件
def main():
#begin
#!/usr/bin/env python
# -*- coding: utf-8 -*-
while True:
for i in ["/","-","|","\\","|"]:
print "%s\r" % i,