Last active
August 29, 2015 14:05
-
-
Save fanweixiao/6ebfdb4da8a3420c8cbf to your computer and use it in GitHub Desktop.
Anti-GFW when using `cayley http`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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