Skip to content

Instantly share code, notes, and snippets.

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

Alex Lopes alexlopes

🏠
Working from home
View GitHub Profile
@Solido
Solido / script.js
Created February 15, 2024 12:38 — forked from gd3kr/script.js
Download a JSON List of twitter bookmarks
/*
the twitter api is stupid. it is stupid and bad and expensive. hence, this.
Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes.
When finished, it downloads a JSON file containing the raw text content of every bookmark.
for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please?
*/
# Source: https://gist.github.com/vfarcic/c2927af7318bbdccdec62bf6577e0840
##############################################################
# How to Apply GitOps on GitHub With Argo CD And Crossplane? #
# https://youtu.be/81IJYTWZAfM #
##############################################################
# Additional Info:
# - How To Create A Complete Internal Developer Platform (IDP)?: https://youtu.be/Rg98GoEHBd4
@emilong
emilong / process_graph.sh
Created August 26, 2021 18:49 — forked from bisrael8191/process_graph.sh
Log and graph peformance metrics on a single process
#!/bin/bash
# Log and graph peformance metrics on a single process
# Based on: http://brunogirin.blogspot.com.au/2010/09/memory-usage-graphs-with-ps-and-gnuplot.html
#
# Requires gnuplot to be installed and on your path.
#
# Run: ./process_graph [process name] [pid]
DEFAULT_PROCNAME="Xorg"
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active April 24, 2025 13:33
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@avoidik
avoidik / curl.sh
Last active August 10, 2024 17:12
Use curl instead of kubectl
#!/bin/bash
#
# download yq
#
curl -fsSL https://github.com/mikefarah/yq/releases/download/v4.43.1/yq_linux_amd64 -o /usr/local/bin/yq
chmod +x /usr/local/bin/yq
#
####################################################################
# Cloud-Native Apps With Open Application Model (OAM) And Kubevela #
# https://youtu.be/2CBu6sOTtwk #
####################################################################
# Referenced videos:
# - K3d - How to run Kubernetes cluster locally using Rancher k3s: https://youtu.be/mCesuGk-Fks
# - Kustomize - How to Simplify Kubernetes Configuration Management: https://youtu.be/Twtbg6LFnAg
# - Crossplane - GitOps-based Infrastructure as Code through Kubernetes API: https://youtu.be/n8KjVmuHm7A
# - What Is GitOps And Why Do We Want It?: https://youtu.be/qwyRJlmG5ew
# Source: https://gist.github.com/84324e2d6eb1e62e3569846a741cedea
####################
# Create a Cluster #
####################
minikube start
#############################
# Deploy Ingress Controller #
@jworkmanjc
jworkmanjc / get_username_add_user_to_system.sh
Last active May 18, 2022 19:36
Get userID by searching JC by username and add that user to current system
#!/bin/bash
# example script to check existence of a user
## This value should be encrypted but test with an API Key
APIKEY="YOURAPIKEY"
id_type='"username"'
## This value would have to be scripted
# something like this: stat -f%Su /dev/console
# should get the current logged in user if someone is indeed logged in
username="CurrentLoggedInUserName"
@trisberg
trisberg / local-registry.md
Last active April 15, 2025 17:01
Using a Local Registry with Minikube

Using a Local Registry with Minikube

Install a local Registry

These instructions include running a local registry accessible from Kubernetes as well as from the host development machine at registry.dev.svc.cluster.local:5000.

  1. Use the docker CLI to run the registry:2 container from Docker, listening on port 5000, and persisting images in the ~/.registry/storage directory.