Skip to content

Instantly share code, notes, and snippets.

@fanweixiao
Last active August 29, 2015 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fanweixiao/6ebfdb4da8a3420c8cbf to your computer and use it in GitHub Desktop.
Save fanweixiao/6ebfdb4da8a3420c8cbf to your computer and use it in GitHub Desktop.
Anti-GFW when using `cayley http`
if [ `builtin type -p gsed` ]; then
gsed -i 's/fonts.googleapis.com/fonts.useso.com/g' templates/head.tmpl
gsed -i 's/ajax.googleapis.com/ajax.useso.com/g' templates/head.tmpl
gsed -i 's/fonts.googleapis.com/fonts.useso.com/g' static/third_party/flatly/bootstrap.min.css
else
sed -i 's/fonts.googleapis.com/fonts.useso.com/g' templates/head.tmpl
sed -i 's/ajax.googleapis.com/ajax.useso.com/g' templates/head.tmpl
sed -i 's/fonts.googleapis.com/fonts.useso.com/g' static/third_party/flatly/bootstrap.min.css
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment