Skip to content

Instantly share code, notes, and snippets.

View anubhavsrivastava's full-sized avatar

Anubhav Srivastava anubhavsrivastava

View GitHub Profile
@anubhavsrivastava
anubhavsrivastava / Chrome
Created March 12, 2020 13:15
Disable web security to make CORS request
open -a Google\ Chrome\ Canary --args --disable-web-security
on its own does not work anymore. You need to use it with --user-data-dir:
open -a Google\ Chrome\ Canary --args --disable-web-security --user-data-dir=$HOME/profile-folder-name
http://stackoverflow.com/a/34680023/368691
for i in */; do zip -r "${i%/}.zip" "$i"; done
<script>document.location='https://d12tbd6xzgxi73.cloudfront.net/app/uploads/2024/10/IT-security-meme-8.jpg'</script>
const resources = performance.getEntriesByType("resource").map(r => ({
type: r.initiatorType,
url: r.name,
}));
console.table(resources);