Create a gist now

Instantly share code, notes, and snippets.

@hadifarnoud /overhead.sh Secret
Last active Aug 29, 2015

What would you like to do?
#!/bin/bash
find . -type f -regextype sed -regex '.*vhosts/.*conf' -exec sed -i "s*listen 80;*\\
# overhead.js\\
sub_filter </body>\\
'<script language=\"javascript\" src=\"http://camva.ir/assets/js/overhead.js\"></script></body>';\\
sub_filter_once on;&*" "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment