Skip to content

Instantly share code, notes, and snippets.

View miguelaferreira's full-sized avatar

Miguel Ferreira miguelaferreira

View GitHub Profile
jacanales / ecr-docker-registry-login
Created February 18, 2020 08:54
ECR Login supporting aws-cli < 2.0 and >= 2.0
#!/usr/bin/env bash
aws ecr get-login --no-include-email > /dev/null 2>&1 || (aws ecr get-login-password | docker login --username AWS --password-stdin > /dev/null 2>&1)
jjnilton /
Last active July 6, 2024 09:40
Mac Network Commands Cheat Sheet

Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.

The original author seems to be Charles Edge, here's the original content, as pointed out by @percisely.

Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.

Mac Network Commands Cheat Sheet

After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and s

dnozay /
Last active June 5, 2024 17:43
jenkins groovy scripts collection.
kiasaki / Makefile
Created December 22, 2014 19:07
Terraform Makefile
.PHONY: all setup pull push plan apply destroy
all: plan apply
terraform remote -backend=HTTP -address=$(TERRAFORM_BACKEND_ADDRESS)/merd.tfstate
terraform pull
plentz / nginx.conf
Last active July 17, 2024 09:16
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }