Skip to content

Instantly share code, notes, and snippets.

View strund3r's full-sized avatar

Franzwagner Ternus strund3r

View GitHub Profile

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:

@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 {
#!/bin/bash
# Validar sistema operacional
CHECK=`cat /etc/debian_version`
if [ -z "$CHECK" ]
then
OS=centos
GROUP=wheel
LIB=libexec
else
#!/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
@strund3r
strund3r / CS:GO config files
Last active August 14, 2023 17:58
CS:GO config files
.cfg
launch options
aurora json
@strund3r
strund3r / deploy_CI.sh
Last active September 28, 2020 14:51
Deploy script for CI/CD (Docker 4 AWS)
#!/bin/bash
set -eo pipefail
############################ VARIABLES ############################
# ssh key's location #
ssh_key="/home/circleci/example/example.pem" #
# docker-compose for metrics #
metrics="/home/circleci/example/<metrics-docker-compose>.yml" #
# sleep time #
@strund3r
strund3r / docker_swarm_deploy_script.sh
Last active March 26, 2019 19:32
Docker Swarm deploy script (using AWS CLI) (Docker 4 AWS)
#!/bin/bash
################ VARIABLES ################
# Image Repository #
image_name="example/example" #
# #
# .pem key's location #
ssh_key_loc="/home/example/example.pem" #
################ VARIABLES ################
@strund3r
strund3r / iss.desktop
Last active July 25, 2020 04:45
Live ISS stream as wallpaper
[Desktop Entry]
Version=1.0
Type=Application
Name=ISS
Comment=Display ISS live stream as background
Icon=/PATH/TO/YOUR/icon.png
Exec=bash PATH/TO/live-iss-background.sh
NoDisplay=false
StartupNotify=false
Terminal=false
@strund3r
strund3r / docker_swarm_deploy_script.sh
Last active July 11, 2017 13:40
Self-explaining title (using IP) (Docker 4 AWS)
#!/bin/bash
################ VARIABLES ################
# Image Repository #
image_name="example/example" #
# #
# .pem key's location #
ssh_key_loc="/home/example/example.pem" #
# #
# Manager's IP (IPv4 Public IP) #
# System
alias update='sudo apt-get update'
alias upgrade='update; sudo apt-get -y upgrade'
alias install='sudo apt-get -y install'
alias shutdown='sudo /sbin/shutdown -P now'
alias kabum='init 0'
alias checkversions='~/check_versions.sh'
# Docker
alias docker-ip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'"