Skip to content

Instantly share code, notes, and snippets.

View thiagorider's full-sized avatar
💡
We are what we repeatedly do. Excellence, then, is not an act but a habit.

Thiago Rider Augusto thiagorider

💡
We are what we repeatedly do. Excellence, then, is not an act but a habit.
View GitHub Profile
#!/bin/bash
# EKS Addons Compatibility Script
if [ -z "$1" ]; then
echo "Usage: $0 <kubernetes_version>"
exit 1
fi
k8s_version=$1
@thiagorider
thiagorider / Get_IP.md
Last active April 14, 2023 13:14
Get IP

Get IP from your current machine everywhere:

curl https://checkip.amazonaws.com

curl -s https://api.ipify.org -w "\n"""

curl https://icanhazip.com

curl https://ipinfo.io/ip && echo ""

@thiagorider
thiagorider / az_pipelines.md
Last active January 26, 2023 19:03
az pipelines CLI (az CLI Extension) cheatsheet

az pipelines CLI (az CLI Extension) cheatsheet

Extension Installation

$ az extension add --name azure-devops

Setting a default organization

$ az devops configure --defaults organization=https://dev.azure.com/<org_name>/

@thiagorider
thiagorider / output.js
Created September 21, 2022 22:21 — forked from derhuerst/output.js
how fetch a GitHub user's stars
[
{
owner: 'bcoe',
repo: 'top-npm-users',
description: ':star: Generate a list of top npm users by based on monthly downloads.',
language: 'JavaScript',
isFork: false,
stargazers: 27,
watchers: 27
}
@mikestecker
mikestecker / optimising-unifi-performance.md
Last active November 21, 2025 11:50
optimising-unifi-performance

optimising-unifi-performance

NOTE: Content below is written by Adrian Mace. Click here for an updated version.

Below are the key settings that I apply on any unifi installation for optimal performance.

Settings

Settings > Site

  • Ensure Enable Advanced Features is enabled
    This allows you to follow along with the guide in it's entirety.
@JCotton1123
JCotton1123 / Jenkinsfile
Last active August 30, 2024 12:06
Sample Jenkinsfile for Python project
pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '10')) // Retain history on the last 10 builds
ansiColor('xterm') // Enable colors in terminal
timestamps() // Append timestamps to each line
timeout(time: 20, unit: 'MINUTES') // Set a timeout on the total execution time of the job
}
agent {
// Run this job within a Docker container built using Dockerfile.build
// contained within your projects repository. This image should include
#!/usr/bin/python3
def main():
print("This is the main function")
test()
def test():
print("This is a test")
if __name__ == "__main__": main()
@thiagorider
thiagorider / bash_scripting_correct_number_of_parameters.sh
Created September 12, 2016 20:55
Bash script snippets - Correct number of parameters
#!/bin/sh
E_WRONG_ARGS=85
script_parameters="-a -h -m -z"
# -a = all, -h = help, etc.
if [ $# -ne $Number_of_expected_args ]
then
echo "Usage: `basename $0` $script_parameters"
# `basename $0` is the script's filename.
@derhuerst
derhuerst / output.js
Created May 10, 2016 10:22
how fetch a GitHub user's stars
[
{
owner: 'bcoe',
repo: 'top-npm-users',
description: ':star: Generate a list of top npm users by based on monthly downloads.',
language: 'JavaScript',
isFork: false,
stargazers: 27,
watchers: 27
}
@niklv
niklv / docker-compose.yml
Last active August 11, 2021 07:12
docker redmine postgresql
services:
web:
image: 'redmine:passenger'
container_name: 'redmine_web'
restart: always
ports:
- '3000:3000'
links:
- postgres
environment: