Skip to content

Instantly share code, notes, and snippets.

View strund3r's full-sized avatar

Franzwagner Ternus strund3r

View GitHub Profile
#!/bin/bash
clear
RED='\033[0;31m'
BOLDRED='\033[1;31m'
GREEN='\033[0;32m'
BOLDGREEN='\033[1;32m'
YELLOW='\033[1;93m'
#BACKGROUND='\e[0;30;41m' # Black text
#!/bin/bash
# Validar sistema operacional
CHECK=`cat /etc/debian_version`
if [ -z "$CHECK" ]
then
OS=centos
GROUP=wheel
LIB=libexec
else
@strund3r
strund3r / Jenkinsfile
Created September 21, 2019 18:39
Jenkins
pipeline {
agent any
options {
timestamps()
gitLabConnection('GitLab')
gitlabBuilds(builds: ['JUnit Test', 'SonarQube Analysis', 'Quality Gate'])
}
environment {

Keybase proof

I hereby claim:

  • I am strund3r on github.
  • I am strund3r (https://keybase.io/strund3r) on keybase.
  • I have a public key whose fingerprint is 7AC8 0C68 162E 297A 6659 D121 F9A0 082D FEF5 B4E3

To claim this, I am signing this object:

# HashiCorp Learn
https://learn.hashicorp.com/
#
Arctic Monkeys β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 50 plays
Foster the People β–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 19 plays
All Time Low β–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 16 plays
twenty one pilots β–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 15 plays
Of Monsters and Men β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 10 plays
ODESZA β–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 8 plays
The Beatles β–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 8 plays
Green Day β–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7 plays
Red Hot Chili Peppers β–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7 plays
The Lonely Island β–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7 plays

GUI Apps Using X11 Forwarding

Installing VcXsrv

Download the latest version from SourceForge.

After installing it, open XLaunch. It will start the first time configuration wizard and will generate a config file by the end.

  1. Display settings: select β€œMultiple windows” and set the display number to -1. (default)
Other 24 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰β–‘β–‘β–‘ 85.4%
Bash 4 mins β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 14.6%
@strund3r
strund3r / keyboard.sh
Last active December 1, 2020 11:46
Set keyboard layout to US-Intl without dead keys on Ubuntu
#!/bin/bash
#US=$(setxkbmap -layout us -variant intl)
#BR=$(setxkbmap -model abnt2 -layout br -variant abnt2)
PS3="Choose your keyboard layout: "
options=("US-INTL" "BR-ABNT2" "Quit")
select opt in "${options[@]}"
do
case $opt in
@strund3r
strund3r / k8s-decrypt-secret.sh
Created January 25, 2021 11:50
k8s shell functions
help-k8s-decrypt-secret() {
echo ""
echo "Usage"
echo " k8s-decrypt-secret [options] <secret> <namespace>"
echo ""
echo "Options:"
echo " <secret> kubernetes secret"
echo " <namespace> kubernetes namespace"
echo " -v verbose output (show kubectl command)"
echo " -h show this help"