Skip to content

Instantly share code, notes, and snippets.

View mgla's full-sized avatar
🎯
Focusing

Maik Glatki mgla

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mgla on github.
  • I am mgla (https://keybase.io/mgla) on keybase.
  • I have a public key ASD9aSmbO-OX8Nm0nxdb5FQoVuNMKDtLSwyxjrESrjRLMwo

To claim this, I am signing this object:

#
<Directory />
#Example..
SetEnvIF X-Forwarded-For "(,| |^)192\.168\.1\.1(,| |$)" DenyIP
SetEnvIF X-Forwarded-For "(,| |^)10\.1\.1\.1(,| |$)" DenyIP
Order allow,deny
Deny from env=DenyIP
Allow from all
</Directory>
--- /etc/init.d/varnish 2017-02-09 13:25:38.000000000 +0000
+++ /etc/init.d/varnish.new 2017-03-29 09:49:56.898745740 +0000
@@ -137,12 +137,6 @@
status_varnishd
;;
restart|force-reload)
- if status_of_proc -p "${PIDFILE}" "${DAEMON}" "${SERVICE}" 1>/dev/null; then
- if ! configtest; then
- log_failure_msg "Syntax check failed, not restarting"
- exit 1
@mgla
mgla / awsbrokensubscriptions.sh
Last active November 23, 2016 12:53
Find AWS SNS subscription that can be cancelled without authentication.
AWS_PROFILE=aws-profile; for id in `aws --profile $AWS_PROFILE sns list-subscriptions | jq -r '.Subscriptions |.[] | .SubscriptionArn '`; do aws --profile $AWS_PROFILE sns get-subscription-attributes --subscription-arn $id | jq '.Attributes | select(.ConfirmationWasAuthenticated == "false") | { Endpoint: .Endpoint, ConfirmationWasAuthenticated: .ConfirmationWasAuthenticated, Protocol: .Protocol}'; done