Skip to content

Instantly share code, notes, and snippets.

View carlessanagustin's full-sized avatar

carles san agustin carlessanagustin

View GitHub Profile
@carlessanagustin
carlessanagustin / win2ix.md
Last active April 14, 2026 20:39
Windows and Unix command line equivalents
Windows command Unix command Notes
set env Set on Windows prints a list of all environment variables. For individual environment variables, set is the same as echo $ on Unix.
set Path export $PATH Print the value of the environment variable using set in Windows.
set PROJ -- result: PROJ=c:\project
echo %PROJ% echo $PROJ result: c:\project

|

@carlessanagustin
carlessanagustin / Nginx_Cheat_Sheet.md
Last active December 18, 2025 19:19
Nginx Cheat Sheet
@carlessanagustin
carlessanagustin / lists-dictionary.yml.md
Last active December 5, 2025 12:21
Lists & Dictionary YAML Syntax by example
@carlessanagustin
carlessanagustin / node_mgmt.sh
Created February 21, 2020 12:20
Enable/disable nodes from Kubernetes
# ENABLE NODE
kc uncordon $NODE
kubectl taint nodes $NODE dedicated-
# NODE ID
export NODE=
# DISABLE NODE
kc drain $NODE --ignore-daemonsets
kubectl taint nodes $NODE dedicated=special-user:NoExecute
@carlessanagustin
carlessanagustin / functions.tf
Created January 20, 2021 16:34
Terraform functions by example
##--------------------------
## Terraform: Functions ##
##--------------------------
## Open terraform console
terraform console
#######################
## Numeric Functions ##
#######################
@carlessanagustin
carlessanagustin / jenkins-plugins.md
Last active September 5, 2025 13:31
This is a list of interesting plugins to use with Jenkins

Jenkins plugins

You can read more about each plugin using the SEARCH box at Jenkins homepage.

  • ChuckNorris Plugin: Displays a picture of Chuck Norris (instead of Jenkins the butler) and a random Chuck Norris 'The Programmer' fact on each build page.

Maintenance

  • thinBackup: This plugin simply backs up the global and job specific configurations (not the archive or the workspace).
  • JobConfigHistory Plugin: Saves copies of all job and system configurations.
@carlessanagustin
carlessanagustin / AWSPro.md
Created July 25, 2025 13:36 — forked from cpatry-poly/AWSPro.md
AWS Certified Solutions Architect Professional Cheat Cheets for Senior Engineer - August 2023
@carlessanagustin
carlessanagustin / VAGRANT-Cheat-Sheet.md
Last active September 27, 2024 12:43
This is a VAGRANT cheat sheet

Vagrant Cheat Sheet

add image

local

$ vagrant box add {title} {url}
$ vagrant init {title}
$ vagrant up
@carlessanagustin
carlessanagustin / troubleshooting-memory.md
Created November 17, 2015 11:33
Troubleshooting linux MEMORY usage

Troubleshooting linux MEMORY usage

This entry will hopefully show you how to troubleshoot memory used by Linux and application.

Linux System Memory usage

Display amount of free and used memory in the system (-m = in megas)

$ free -m

total used free shared buffers cached

@carlessanagustin
carlessanagustin / statuscake_ips.php
Last active July 12, 2024 08:44
Generate a list of StatusCake IP addresses to allow in firewall
<?php
/**
* Generate a list of Status Cake Ip addresses
* To add allowed IPs to Nginx or Firewall
* from: https://www.statuscake.com/kb/knowledge-base/what-are-your-ips/
*/
$statuscake_locations_json = "https://app.statuscake.com/Workfloor/Locations.php?format=json";
$locations = json_decode(file_get_contents($statuscake_locations_json));
$output = "#STATUS CAKE IPs" . "\n";