Skip to content

Instantly share code, notes, and snippets.

View TGWolf's full-sized avatar
🐺
coding

Wolf TGWolf

🐺
coding
View GitHub Profile
@TGWolf
TGWolf / Content Security Policies.md
Created March 15, 2016 22:11
Content Security Policies for Common WebApps

Gitlab (community Edition)

Header always set Content-Security-Policy: "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:;"

Munin

Header always set Content-Security-Policy: "default-src 'self';"

@TGWolf
TGWolf / IP from interface name.md
Last active September 26, 2015 16:25
How to get the IP address programmatically from an interface name in bash.

How to get the IP address programmatically from an interface name in bash.