This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://docs.google.com/document/d/1ez-CoBwxVhxPodNQkxvkipEYwyixrpAHavwipovwf8k/edit | |
https://docs.google.com/document/d/1Z35otIj_LK9Sq8xSXku8Fba6PdhYZbgncBHWkVivL6k/edit | |
# Operations - Beginner | |
## Deploying a local registry | |
Erro: Get https://localhost:5000/v1/_ping: http: server gave HTTP response to HTTPS client | |
Solução: 1. Criar ou modificar /etc/docker/daemon.json | |
{ "insecure-registries":["localhost:5000"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# carregando configurações via params | |
for i in $* | |
do | |
if [[ "$i" == '-y' || "$i" == '-Y' ]] ; then | |
all_alowed=true | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
function version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; } | |
function version_le() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" == "$1"; } | |
function version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; } | |
printf "\n\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}}'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################ VARIABLES ################ | |
# Image Repository # | |
image_name="example/example" # | |
# # | |
# .pem key's location # | |
ssh_key_loc="/home/example/example.pem" # | |
################ VARIABLES ################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cfg | |
launch options | |
aurora json |
OlderNewer