Skip to content

Instantly share code, notes, and snippets.

View danielnbalasoiu's full-sized avatar
🥷
🛡️

danielnbalasoiu

🥷
🛡️
View GitHub Profile
# Source: https://gist.github.com/vfarcic/78c1d2a87baf31512b87a2254194b11c
###############################################################
# How To Create A Complete Internal Developer Platform (IDP)? #
# https://youtu.be/Rg98GoEHBd4 #
###############################################################
# Additional Info:
# - DevOps MUST Build Internal Developer Platform (IDP): https://youtu.be/j5i00z3QXyU
# - How To Create A "Proper" CLI With Shell And Charm Gum: https://youtu.be/U8zCHA-9VLA
# Source: https://gist.github.com/vfarcic/02bbfaf6cf8f5b03f4267b50f3f3233b
#########################################################
# How To Create A "Proper" CLI With Shell And Charm Gum #
# https://youtu.be/U8zCHA-9VLA #
#########################################################
# Additional Info:
# - Charm Gum: https://github.com/charmbracelet/gum
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@danielnbalasoiu
danielnbalasoiu / jenkins-api.md
Created November 15, 2022 14:21 — forked from justlaputa/jenkins-api.md
Jenkins Json API

jobs

jenkins_url + /api/json?tree=jobs[name,color]

builds

jenkins_url + /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]

last build

@danielnbalasoiu
danielnbalasoiu / proxmox_nvidia.md
Created October 20, 2022 10:42 — forked from egg82/proxmox_nvidia.md
NVidia Proxmox + LXC

Proxmox

Find the proper driver at the NVidia website.

Note: Make sure to select "Linux 64-bit" as your OS

Hit the "Search" button.

@danielnbalasoiu
danielnbalasoiu / sts.sh
Created June 8, 2022 11:11 — forked from adsanz/sts.sh
Script to automatically generate valid MFA authenticated credentials on AWS
#!/bin/bash
# Exit on error
set -e
## COLORS ##
cecho(){
RED="\033[0;31m"
GREEN="\033[0;32m"
fields @timestamp, @message
| sort @userAgent desc
| parse '* (*) - * [*] "* * *" * * "*" "*"' as localIp, realIp, identity, dateTimeString, httpVerb, url, protocol, statusCode, bytes, referer, userAgent
| filter @message like /Googlebot/ and @realIp = '66.249.69.166'
fields @timestamp, @message
| sort @timestamp desc
| parse '* (*) - * [*] "* * *" * * "*" "*"' as localIp, realIp, identity, dateTimeString, httpVerb, url, protocol, statusCode, bytes, referer, userAgent
| filter @message like /Googlebot/
@danielnbalasoiu
danielnbalasoiu / cloudwatch_log_insights_mysql_slow_query_examples.md
Created March 29, 2022 11:17 — forked from grocky/cloudwatch_log_insights_mysql_slow_query_examples.md
CloudWatch Log Insights query examples for MySQL slow query log.

Filtering queries

Find slowest write queries

parse @message /Query_time: (?<queryTime>.*?) Lock_time: (<?lockTime>.*?) Rows_sent: (?<rowsSent>.*?) Rows_examined: (?<rowsExamined>.*?)\s(?<query>.*?)$/
  | filter @message like /(?i)insert/
  | sort queryTime desc
  | limit 10
@danielnbalasoiu
danielnbalasoiu / dl-logseq-nightly.sh
Created March 6, 2022 12:33 — forked from QWxleA/dl-logseq-nightly.sh
Download nightly logseq release
#!/usr/bin/env bash
#
# downloads nightly logseq release
# returns error 3 if up-to-date
set -e
APPLOC="$HOME/Applications"
LOGBIN="$APPLOC/logseq-linux-x64-bin"
@danielnbalasoiu
danielnbalasoiu / sugh.sh
Created February 28, 2022 14:20 — forked from erdincay/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then