Skip to content

Instantly share code, notes, and snippets.

View xiongjia's full-sized avatar
🤿
Focusing

Xiong-Jia.Le xiongjia

🤿
Focusing
View GitHub Profile
@xiongjia
xiongjia / npm.taobao.sh
Created January 15, 2018 14:42 — forked from 52cik/npm.taobao.sh
npm 淘宝镜像配置
npm set registry https://registry.npm.taobao.org # 注册模块镜像
npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set chromedriver_cdnurl http://cdn.npm.taobao.org/dist/chromedriver # chromedriver 二进制包镜像
npm set operadriver_cdnurl http://cdn.npm.taobao.org/dist/operadriver # operadriver 二进制包镜像
npm set phantomjs_cdnurl http://cdn.npm.taobao.org/dist/phantomjs # phantomjs 二进制包镜像
npm set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass # node-sass 二进制包镜像
npm set electron_mirror http://cdn.npm.taobao.org/dist/electron/ # electron 二进制包镜像
@xiongjia
xiongjia / proxy.go
Last active September 14, 2017 07:18 — forked from vmihailenco/proxy.go
Simple TCP proxy in Golang #devtools
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
@xiongjia
xiongjia / .gitconfig
Last active November 29, 2022 18:46 — forked from robmiller/.gitconfig
Some useful Git aliases that I use every day #conf #git
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@xiongjia
xiongjia / LocalRun.cpp
Last active September 14, 2017 07:34 — forked from feuvan/LocalRun.cpp
LocalRun: Run application in specified locale (chs as hard-coded). #devsample #win
/**
* Local(e)Run: Run application in specified locale (chs as hard-coded).
*
* Originial purpose: run fterm.exe in non-Chinese(PRC) locale.
*
* Author: feuvan@feuvan.net
*/
#include <stdio.h>
#include <tchar.h>
@xiongjia
xiongjia / pixanim.rb
Last active September 14, 2017 07:39 — forked from ToksT/pixanim.rb
Pixiv download tools #devtools
require 'zip' # install with "gem install rubyzip"
require 'mechanize'
require 'json'
# usage: ruby pixanim.rb ID FORMAT, where ID is the pixiv id number and FORMAT is gif, webm, or apng
# test posts:
# http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44305721
# http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44303110
# http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44353714
# http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44349996