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 /
Created Mar 29, 2018
dnspod list domain console output
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'],
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
desc "Kcptun for speed up shadowsocks"
# homepage ""
# url ""
# url ""
# sha256 "751f79884e83510d6052f6d04908115f6e141b779f2b00882e4019ea2b0bbd58"
# head ""
View shadowsocks-getui.rb
class ShadowsocksGetui < Formula
desc "Kcptun for speed up shadowsocks over gt3d"
# homepage ""
# url ""
url ""
# sha256 "751f79884e83510d6052f6d04908115f6e141b779f2b00882e4019ea2b0bbd58"
# head ""
# bottle do
# cellar :any
View kcptun.rb
class Kcptun < Formula
desc "Kcptun for speed up shadowsocks"
homepage ""
url ""
sha256 "d7712c773d04e1b79a36e8a277860d68a6effc061daefe67d97c3357692b26e3"
head ""
# bottle do
# cellar :any
# sha256 "751f79884e83510d6052f6d04908115f6e141b779f2b00882e4019ea2b0bbd58" => :sierra
foxundermoon / socks5.go
Last active Sep 7, 2015 — forked from maliubiao/socks5.go
Socks5RoundTripper for net/http
View socks5.go
package socks5
import (
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 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.