Skip to content

Instantly share code, notes, and snippets.

View miguelaferreira's full-sized avatar

Miguel Ferreira miguelaferreira

View GitHub Profile
@jacanales
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 846431675915.dkr.ecr.eu-west-1.amazonaws.com > /dev/null 2>&1)
@jjnilton
jjnilton / mac-network-commands-cheat-sheet.md
Last active June 12, 2024 11:50
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
dnozay / _Jenkins+Script+Console.md
Last active June 5, 2024 17:43
jenkins groovy scripts collection.
@kiasaki
kiasaki / Makefile
Created December 22, 2014 19:07
Terraform Makefile
.PHONY: all setup pull push plan apply destroy
all: plan apply
setup:
terraform remote -backend=HTTP -address=$(TERRAFORM_BACKEND_ADDRESS)/merd.tfstate
pull:
terraform pull
@plentz
plentz / nginx.conf
Last active June 11, 2024 06:55
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
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
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; }
</style>