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 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 119 plays
All Time Low β–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 29 plays
The Black Keys β–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 28 plays
Twenty One Pilots β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 25 plays
Foster the People β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 20 plays
Coldplay β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 18 plays
The Lonely Island β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 18 plays
Of Monsters and Men β–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 17 plays
Hippo Campus β–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 15 plays
Clairo β–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 12 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)
YAML 1 hr 24 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 38.2%
Text 1 hr 9 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 31.5%
Bash 23 mins β–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 10.4%
PowerShell 15 mins β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 6.9%
Markdown 14 mins β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 6.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"