Skip to content

Instantly share code, notes, and snippets.

@yudapc
Last active February 11, 2022 02:19
Show Gist options
  • Save yudapc/6b227f6c287e32f8a8ccd76d042a5503 to your computer and use it in GitHub Desktop.
Save yudapc/6b227f6c287e32f8a8ccd76d042a5503 to your computer and use it in GitHub Desktop.
Remove all file .snap
# CHROME WITHOUT CORS
alias chromee="cd ~ && /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --user-data-dir='/tmp/james_bonds_browser'"
### Remove all file .snap
rm $(find . -name "*.snap")
### File .htaccess force https
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond $1 !^(index\.php|resources|robots\.txt|public)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment