Skip to content

Instantly share code, notes, and snippets.

View dennislabajo's full-sized avatar
🏠
Working from home

Dennis Labajo dennislabajo

🏠
Working from home
View GitHub Profile
@ceelian
ceelian / add_hostname_to_etc_hosts.sh
Last active January 23, 2024 21:15
Adds a hostname to a given IP address in /etc/hosts.
#!/usr/bin/env bash
# The MIT License (MIT)
#
# Copyright (c) 2023 Christian Haintz
#
# 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
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active May 18, 2024 05:03
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \
@rpherrera
rpherrera / get-aws-ecr-repositories-names.sh
Last active August 31, 2023 01:26
get aws ecr repositories names with aws cli, parsing results with jq and stripping double quotes with sed or tr
#!/bin/bash
# stripping double quotes with sed
aws ecr describe-repositories | jq '.repositories[].repositoryName' | sed s/\"//g
# stripping double quotes with tr
aws ecr describe-repositories | jq '.repositories[].repositoryName' | tr -d '"'