Skip to content

Instantly share code, notes, and snippets.

View ThiagoGarciaAlves's full-sized avatar

Thiago G. Alves ThiagoGarciaAlves

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpbcKXw9yFUduW6NfKjumfBArvBvLGKgE0FVTJZsn/vokM3H2x4fw6affgLXDCAziCyglYUcYkiTd5NHn6hW2oevdx/mMWX/eL8KAQChNMaXtQfOcExfIQY5ORSGeuiLqh4ZaJUy9CyqRDBzf4NviVSDeX8sUp93w5UAJDTd4INyILaLvoDHzarjad27rgwOw3lABduXYAAbcwpRSi/NCzMJYMOsZGAUH+jSB2YYEYPzLDnpErTZUxB3TtUFRJj/l7Wm9TMjR9hz8FL3e21ybhlb6NUQ0kBkH7RslqYuCWNpgI0ghAAjWKAN3x8xwR5AxNNpJ6ljgzi5UXVN6u/oAj thiago@thiago-G3-3579
@ThiagoGarciaAlves
ThiagoGarciaAlves / startup-example.sh
Last active August 7, 2018 19:17
Startup script example
#!/bin/bash
### BEGIN INIT INFO
# Provides: jenkins_slave
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Jenkins Slave
### END INIT INFO
. /etc/init.d/functions
@ThiagoGarciaAlves
ThiagoGarciaAlves / selfip.sh
Created June 29, 2017 17:51
Command to get the self ip in linux
hostname -I | awk '{print $1}'
@ThiagoGarciaAlves
ThiagoGarciaAlves / docker_stop_all_containers.sh
Last active May 29, 2017 14:12
Stop all containers Docker
docker stop $(docker ps -q)
docker rm $(docker ps -a -q)
@ThiagoGarciaAlves
ThiagoGarciaAlves / docker_remove_untagged_images.sh
Last active May 26, 2017 02:48
Remove all untagged images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
@ThiagoGarciaAlves
ThiagoGarciaAlves / add_intellij_launcer
Created May 4, 2017 01:20 — forked from rob-murray/add_intellij_launcer
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ