Skip to content

Instantly share code, notes, and snippets.

View dakzilla's full-sized avatar
🗿
aaa

Simon Dakin dakzilla

🗿
aaa
  • @ubisoftinc
  • Montréal, Canada
View GitHub Profile
@consti
consti / hosts
Last active November 15, 2024 08:12
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@TSMMark
TSMMark / delete_local_branches.sh
Last active August 4, 2024 04:15
Delete local branches that don't exist on remote/origin !USE AT YOUR OWN RISK!
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 git branch -D
@petitviolet
petitviolet / nginx_deployment.yaml
Created March 11, 2018 11:04
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
@xynova
xynova / Connecting Docker cli and Kubectl to Docker Desktop for Windows.md
Last active June 22, 2023 01:02
Connecting Docker cli and Kubectl to Docker Desktop for Windows
@tkalus
tkalus / delete_iam_user.py
Last active September 17, 2023 08:17
Delete an IAM User from an AWS Account
#!/usr/bin/env python3
"""
Delete an IAM User from an AWS Account.
Copyright (c) 2019 TKalus <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of