Skip to content

Instantly share code, notes, and snippets.

# credit
# valid
# invalid
"wrong" =~ URI::MailTo::EMAIL_REGEXP
xofred /
Created October 27, 2020 03:23 — forked from evantoli/
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

xofred / force_bot.rb
Last active September 1, 2020 07:55
Auto generate factory_bot model definition on legacy project
# Solve
# Original credit
# If you use Rails and see the following error:
# Could not find generator 'factory_bot:model'. Maybe you meant 'test_unit:model', 'active_record:model' or 'rspec:model'
# Run `rails generate --help` for more options.
# Make sure factory_bot_rails is in the Gemfile relative enviroment group, such as development, test
#group :development, :test do
xofred / surge.conf
Created May 15, 2017 05:15 — forked from blackgear/surge.conf
Surge config for new user
loglevel = warning
bypass-system = true
skip-proxy =,,,localhost,*.local,*.lan
bypass-tun =,,
dns-server =,
PROXY = custom,服务器地址,服务器端口,加密方式,密码,模块地址,tcp-fast-open=true