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 | |
URL_GOOGLE_CHROME="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" | |
URL_VSCODE="https://vscode.download.prss.microsoft.com/dbazure/download/stable/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/code_1.92.2-1723660989_amd64.deb" | |
URL_INTELLIJ="https://download-cdn.jetbrains.com/idea/ideaIC-2024.2.1.tar.gz?_gl=1*gy2jsc*_gcl_au*MTcxMzYwOTY5OS4xNzI1MjAzODgy*_ga*NDI3Nzg3MzI5LjE3MjUyMDM4ODA.*_ga_9J976DJZ68*MTcyNTIwMzg3OS4xLjEuMTcyNTIwMzg5OC40NC4wLjA." | |
cd ~/Downloads | |
wget $URL_GOOGLE_CHROME | |
wget $URL_VSCODE |
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 | |
cd ~/Downloads | |
##################################################################### | |
# Update System | |
##################################################################### | |
sudo apt-get update -y && sudo apt-get upgrade -y | |
##################################################################### |
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 | |
cd ~/Downloads | |
##################################################################### | |
# Update System | |
##################################################################### | |
sudo apt-get update && sudo apt-get upgrade -y | |
##################################################################### |
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
cd ~/Downloads | |
sudo apt-get update && sudo apt-get upgrade | |
##################################################################### | |
# Clean-up System | |
##################################################################### | |
sudo apt-get purge epiphany-browser epiphany-browser-data | |
sudo apt-get purge noise | |
sudo apt-get purge scratch-text-editor |
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 -x | |
kill -9 $(ps aux | grep PROCESS_NAME | grep -v grep | awk '{print $2}') |
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
@reboot <application> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
IDTEAMVIEWER=$(/usr/bin/teamviewer --info) | |
echo $IDTEAMVIEWER | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
config.vm.define ENV['app_name'] do |app| |
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 +x | |
DIRECTORY=/root/jenkins-war/ | |
#realiza o download do arquivo | |
mkdir -p $DIRECTORY | |
cd $DIRECTORY | |
mv jenkins.war jenkins.war.`date +"%Y%m%d"` | |
wget http://updates.jenkins-ci.org/latest/jenkins.war |
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 | |
#recupera a informacao de consumo de cpu em % | |
cpunode=$(top -b -n 2 |grep Cpu |tail -n 1 |awk '{printf "cpu.node=%.2f", $4}') | |
#recupera a informação de memoria total da maquina em MB (este item pode variar o valor da expressao NR entre 'NR==4' e 'NR==5') | |
memorytotalnode=$(free -mt | awk 'NR==5 {printf "memory.total.node=%.2f", $4}') | |
#recupera a informação de memoria utilizada da maquina em MB (este item pode variar o valor da expressao NR entre 'NR==4' e 'NR==5') | |
memoryusagenode=$(free -mt | awk 'NR==5 {printf "memory.usage.node=%.2f", $3}') | |
#recupera o espaço total do disco em GB | |
disktotalnode=$(df -BG / | awk 'NR==2 {printf "disk.total.node=%.2f", $4}') |
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
# First you update your system | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y | |
# Cleanup system | |
sudo apt-get purge account-plugin-facebook | |
sudo apt-get purge account-plugin-flickr | |
sudo apt-get purge account-plugin-google | |
sudo apt-get purge aisleriot | |
sudo apt-get purge fonts-opensymbol libreoffice libreoffice-\* openoffice.org-dtd-officedocument1.0 python\*-uno uno-libs3-\* ure ure-dbg | |
sudo apt-get purge gnome-terminal |
NewerOlder