Skip to content

Instantly share code, notes, and snippets.

foxundermoon foxundermoon

Block or report user

Report or block foxundermoon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@foxundermoon
foxundermoon / dnspod.list.py
Created Mar 29, 2018
dnspod list domain console output
View dnspod.list.py
payload = self._post(
'/Record.List', {'domain': self.options['domain']})
logger.debug('payload: %s', json.dumps(payload))
records = []
for record in payload['records']:
processed_record = {
'type': record['type'],
'name': self._full_name(record['name']),
'ttl': record['ttl'],
'content': record['value'],
View press.one
{"sig":"42fe1d91e9f582307877aca4599e80affb8d0bf273a6414d090bc12d39987ff7ad40cf242ec31b05071ae394c7b2da7cc57ccdc0d3bf4bcaf5ad7c722545e6a80","msghash":"97e9ded1cc1b432245faae8686c8c0ca01f6553b410f95c0d77bb5565241bc99"}
@foxundermoon
foxundermoon / nginx.conf
Created Oct 5, 2017
openresty auto ssl conf
View nginx.conf
events {
worker_connections 1024;
}
http {
# The "auto_ssl" shared dict should be defined with enough storage space to
# hold your certificate data. 1MB of storage holds certificates for
# approximately 100 separate domains.
lua_shared_dict auto_ssl 1m;
# The "auto_ssl" shared dict is used to temporarily store various settings
View shadowsocks-kcp.rb
class ShadowsocksKcp < Formula
@name="shadowsocks-kcp"
desc "Kcptun for speed up shadowsocks"
# homepage "https://github.com/xtaci/kcptun"
# url "https://github.com/xtaci/kcptun/releases/download/v20161207/kcptun-darwin-amd64-20161207.tar.gz"
# url "http://data.vvfox.com/tools/shadowsocks-kcp-1.0.0.tar"
# sha256 "751f79884e83510d6052f6d04908115f6e141b779f2b00882e4019ea2b0bbd58"
# head "https://github.com/xtaci/kcptun.git"
View shadowsocks-getui.rb
class ShadowsocksGetui < Formula
desc "Kcptun for speed up shadowsocks over gt3d"
# homepage "https://github.com/xtaci/kcptun"
# url "https://github.com/xtaci/kcptun/releases/download/v20161207/kcptun-darwin-amd64-20161207.tar.gz"
url "http://data.vvfox.com/tools/shadowsocks-getui-1.0.0.tar"
# sha256 "751f79884e83510d6052f6d04908115f6e141b779f2b00882e4019ea2b0bbd58"
# head "https://github.com/xtaci/kcptun.git"
# bottle do
# cellar :any
View kcptun.rb
class Kcptun < Formula
desc "Kcptun for speed up shadowsocks"
homepage "https://github.com/xtaci/kcptun"
url "https://github.com/xtaci/kcptun/releases/download/v20180810/kcptun-darwin-amd64-20180810.tar.gz"
sha256 "d7712c773d04e1b79a36e8a277860d68a6effc061daefe67d97c3357692b26e3"
head "https://github.com/xtaci/kcptun.git"
# bottle do
# cellar :any
# sha256 "751f79884e83510d6052f6d04908115f6e141b779f2b00882e4019ea2b0bbd58" => :sierra
@foxundermoon
foxundermoon / socks5.go
Last active Sep 7, 2015 — forked from maliubiao/socks5.go
Socks5RoundTripper for net/http
View socks5.go
package socks5
import (
"net"
"time"
"bytes"
"errors"
"bufio"
"strconv"
"strings"
View VBox.log
VirtualBox VM 5.0.0 r101573 win.amd64 (Jul 9 2015 11:08:16) release log
00:00:04.186165 Log opened 2015-08-02T16:18:59.366501500Z
00:00:04.186166 Build Type: release
00:00:04.186170 OS Product: Unknown NT v10.0
00:00:04.186171 OS Release: 10.0.10240
00:00:04.186172 OS Service Pack:
00:00:04.235083 DMI Product Name: TA870+
00:00:04.246082 DMI Product Version:
00:00:04.246094 Host RAM: 10239MB total, 4539MB available
00:00:04.246096 Executable: C:\Program Files\Oracle\VirtualBox\VirtualBox.exe
View GoMgoSample-1.go
type (
// BuoyCondition contains information for an individual station.
BuoyCondition struct {
WindSpeed float64 `bson:"wind_speed_milehour"`
WindDirection int `bson:"wind_direction_degnorth"`
WindGust float64 `bson:"gust_wind_speed_milehour"`
}
// BuoyLocation contains the buoy's location.
BuoyLocation struct {
View gist:5a76f2a5586659c6131e
hg clone https://vim.googlecode.com/hg/ vim
sudo yum install -y ruby ruby-devel lua lua-devel luajit luajit-devel ctags mercurial python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed ncurses-devel
./configure --with-features=huge --enable-multibyte --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --enable-luainterp --enable-gui=gtk2 --enable-cscope --with-tlib=ncurses --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo make install

在 VIM 内执行

You can’t perform that action at this time.