This file contains hidden or 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 dist-upgrade | |
# Clean-up System | |
sudo apt-get purge midori-granite #browser | |
sudo apt-get purge noise | |
sudo apt-get purge scratch-text-editor #text-editor | |
sudo apt-get purge modemmanager | |
sudo apt-get purge geary | |
sudo apt-get purge pantheon-terminal #terminal |
This file contains hidden or 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 hidden or 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
## | |
# Script para modificar a exibição do identificador no terminal | |
# Este script deve ser adicionado ao final do arquivo .bashrc do usuario | |
# após modificar executar o "source .bashrc" para que seja atualizada a exibição | |
# O padrão de exibição será: <USUARIO>@<NOME_DA_MAQUINA>:<DIRETORIO_CORRENTE> [<BRANCH_DO_GIT>] | |
## | |
function git_branch_name() { | |
git branch 2>/dev/null | grep -e '^*' | sed -E 's/^\* (.+)$/ [\1] /' | |
} |
This file contains hidden or 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 | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
DIRETORIO_BUSCA=/home/everton/Música/pe_zezinho | |
DIRETORIO_DESTINO=/home/everton/Música/convertido | |
CONTADOR=0; | |
CONTADOR_ARQ=0; |
This file contains hidden or 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 dist-upgrade | |
# Clean-up System | |
sudo apt-get purge epiphany-browser epiphany-browser-data #browser | |
sudo apt-get purge midori-granite #browser | |
sudo apt-get purge noise | |
sudo apt-get purge scratch-text-editor #text-editor | |
sudo apt-get purge modemmanager | |
sudo apt-get purge geary #email |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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> |
OlderNewer