Skip to content

Instantly share code, notes, and snippets.

View Jiezhi's full-sized avatar
:shipit:
Working hard

Jiezhi.G Jiezhi

:shipit:
Working hard
View GitHub Profile
@Jiezhi
Jiezhi / tmux.conf
Created November 28, 2017 02:57
tmux configure file
# Remap key
# Defining an Easier Prefix
set -g prefix C-a
unbind C-b
# Changing the Default Delay
# set -sg escape-time 1
# Setting the Window and Panes Index set -g base-index 1 set -g pane-base-index 1
@Jiezhi
Jiezhi / zshrc
Last active November 11, 2018 04:19
# Path to your oh-my-zsh installation.
export ZSH=~/.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"
# Uncomment the following line to use case-sensitive completion.
@Jiezhi
Jiezhi / vimrc
Created November 28, 2017 02:30
vimrc_file
syntax on
set nu!
set cindent
set background=dark
set ruler
set expandtab
set tabstop=4
set shiftwidth=4
set hlsearch
set relativenumber
@Jiezhi
Jiezhi / get_gv_loop.sh
Created March 12, 2017 13:10
replace your curl
for (( i=1; i>0; i++ ))
do
curl 'https://www.google.com/voice/b/0/service/post' -H 'origin: https://www.google.com' -H 'dnt: 1' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: zh-CN,zh;q=0.8,en;q=0.6' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' -H 'content-type: application/x-www-form-urlencoded;charset=UTF-8' -H 'accept: */*' -H 'referer: https://www.google.com/voice/b/0' -H 'authority: www.google.com' -H 'cookie: gv=.........; GV_NR=1;-eVupmL6qR...........ncdG7vO' --data 'sid=...' --compressed
sleep 3s
done
@Jiezhi
Jiezhi / mouse_auto_click.py
Created February 27, 2017 01:10
auto click on screen
from pymouse import PyMouse
import time
m = PyMouse()
while True:
m.click(528, 800-196, 1)
time.sleep(3)
@Jiezhi
Jiezhi / GetNetInfo.py
Created October 10, 2016 08:55
get net info, mac address, ip hostname
import uuid
import socket
import requests
def get_mac_address():
mac = uuid.UUID(int = uuid.getnode()).hex[-12:]
return ":".join([mac[e:e+2] for e in range(0, 11, 2)])
@Jiezhi
Jiezhi / BankCardUtil.java
Created September 28, 2016 01:29
BankCardUtil
package com.nongfenqi.android.demacia.tool;
/**
* Function
* <p>
* Reference: http://www.bkjia.com/ASPjc/1037143.html
*
* @author jiezhi
* @version 1.0, 9/18/16
* @see [相关类/方法]
@Jiezhi
Jiezhi / IdCardUtils.java
Last active December 20, 2017 08:31
verify chinese id card
/**
* Copyright (C) 2009-2010 Yichuan, Fuchun All rights reserved.
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software

Keybase proof

I hereby claim:

  • I am Jiezhi on github.
  • I am jiezhi (https://keybase.io/jiezhi) on keybase.
  • I have a public key whose fingerprint is 53D5 D5B2 B4F7 9EC3 A1A4 16E1 78D1 1C64 FCC1 A359

To claim this, I am signing this object: