View all-crontab.sh
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 | |
for user in $(cut -f1 -d: /etc/passwd); do echo $user; sudo crontab -u $user -l; done |
View openjdk2oracle.sh
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 | |
# Primeiro vamos adicionar o ppa: | |
sudo add-apt-repository ppa:ferramroberto/java | |
sudo apt-get update | |
#Para instalar o Oracle/Sun Java JRE: | |
sudo apt-get install sun-java6-jre sun-java6-plugin | |
#Para instalar o Oracle/Sun Java JDK: |
View dvd2img.sh
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 | |
dd bs=4096 if=/dev/sr0 of=/home/rodrigo/sysimg/iwork.img |
View ssh-sem-senha.sh
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 | |
ssh-keygen | |
# Quando for perguntado a você o local onde salvar o arquivo, | |
# escolha o lugar padrão. | |
# Pressione enter quando solicitado (não entre com passphrases). | |
# Se quiser usar uma senha, melhor. Mas daí não fica mais um SSH sem senha :D | |
# Este programa cria 2 arquivos: | |
# .ssh/id_rsa |
View git-renomear-tag.sh
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 | |
# Primeiro cria um alias da tag antiga com um nome novo | |
git tag nome_novo nome_antigo^{} | |
# | |
# Remove a tag antiga localmente | |
git tag -d nome_antigo | |
# | |
# Depois, remove a tag no repositório remoto: | |
# Checkout da fonte remota | |
git remote -v |
View cache-app-store.sh
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 | |
rm ~/Library/Preferences/com.apple.appstore.plist | |
rm -r ~/Library/Saved\ Application\ State/com.apple.appstore.savedState | |
rm -r ~/Library/Caches/com.apple.appstore | |
rm -r /private/var/folders/*/*/*/com.apple.appstore |
View java-7-ppa.sh
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 | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer oracle-java7-set-default |
View mavericks-usb-disk.sh
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 | |
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/NOME_DA_UNIDADE --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction |
View osx-vnc.sh
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 | |
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers |
View osx-vnc.sh
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 | |
sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false | |
sudo launchctl load /System/Library/LaunchDaemons/com.apple.screensharing.plist |
OlderNewer