Skip to content

Instantly share code, notes, and snippets.

View jhezjkp's full-sized avatar

vivia jhezjkp

  • Guangzhou, China
View GitHub Profile
@jhezjkp
jhezjkp / .gitconfig
Created August 20, 2012 06:47
git全局配置
[core]
editor = vim
#ignore文件可参考https://github.com/github/gitignore
excludesfile = ~/.global_ignore
[user]
name = jhezjkp
email = [email protected]
[alias]
@jhezjkp
jhezjkp / .vimrc
Created August 20, 2012 15:52
vim配置
"安装/更新:BundleInstall
"卸载即将对应项注释后再运行:BundleClean
"取消兼容模式
set nocompatible
"关闭文件类型侦测,必须
filetype off
"powerline配置要求
set laststatus=2
"编码设置
@jhezjkp
jhezjkp / .zshrc
Created August 20, 2012 15:53
zsh配置
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Example aliases
@jhezjkp
jhezjkp / douban.py
Last active July 24, 2016 05:02
豆瓣/花瓣相册照片下载脚本
#!/usr/bin/env python
#encoding=utf-8
'''
豆瓣相册下载脚本
需要requests和BeautifulSoup支持
缩略图:http://img3.douban.com/view/photo/thumb/public/pXXXXXX.jpg
一般相册图:http://img3.douban.com/view/photo/photo/public/pXXXX.jpg
大图(只有部分图片有):http://img3.douban.com/view/photo/large/public/pXXXX.jpg
@jhezjkp
jhezjkp / README.md
Created January 18, 2013 04:13 — forked from chuangbo/README.md

替换上你的Email,密码,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获得domain_id可以用curl curl -k https://dnsapi.cn/Domain.List -d "login_email=xxx&login_password=xxx"

获得record_id类似 curl -k https://dnsapi.cn/Record.List -d "login_email=xxx&login_password=xxx&domain_id=xxx"

@jhezjkp
jhezjkp / railscasts_downloader.rb
Created March 15, 2013 07:22
railscast video download script from ery/railscasts-downloader
require 'rss'
if File.exist?("rss.index")
p 'Read rss index'
rss_string = ''
File.open('rss.index', 'r') do |file|
while line = file.gets
rss_string += line
end
end
@jhezjkp
jhezjkp / SvnUtil
Last active May 25, 2017 08:05
Svn工具类:读取提交记录、查看提交详情、查看指定版本txt/xml文件内容等
package com.util;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@jhezjkp
jhezjkp / photo_clean.py
Created March 14, 2018 06:54
移除几个目录下同名但size小的文件
#!/usr/bin/env python
#encoding=utf-8
import os
import os.path
"""
指定目录下只留下最大的文件,小一点的复制文件删除
@jhezjkp
jhezjkp / decompileJar.sh
Created April 1, 2019 12:53
调用idea反编译插件反编译jar
java -cp /Applications/IntelliJ\ IDEA\ CE.app/Contents/plugins/java-decompiler/lib/java-decompiler.jar org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true iChat.jar client