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
# create a local certificate for testing only | |
cd /etc/nginx | |
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/local-cert.key -out /etc/nginx/local-cert.crt |
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 -x | |
# PURPOSE: To ease CHEF DK installation | |
# REFERENCE: https://docs.chef.io/install_dk.html | |
WORKSPACE_DIR='/tmp/synced' | |
# https://downloads.chef.io/chefdk/#ubuntu |
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
clear && kitchen converge && clear && kitchen verify | |
-----> Starting Kitchen (v1.15.0) | |
-----> Converging <default-ubuntu-1404>... | |
Preparing files for transfer | |
Preparing dna.json | |
Resolving cookbook dependencies with Berkshelf 5.6.3... | |
Removing non-cookbook files before transfer | |
Preparing validation.pem | |
Preparing client.rb |
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 -x | |
[ ! -d $HOME/.ssh/ ] && mkdir $HOME/.ssh/ || chmod 750 $HOME/.ssh/ && cd $HOME/.ssh/ && ssh-keygen -t rsa -b 4096 -f vasi -C "valterhenrique85@gmail.com" && ssh-keygen -t rsa -b 4096 -f work -C "valter.silva@work.com" && cd - \ |
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 -x | |
#!/bin/bash | |
set -x | |
sudo sed -i 's,enabled=1,enabled=0,' /etc/default/apport \ | |
&& [ -f $HOME/.config/user-dirs.dirs ] && sed -i 's,Desktop,desktop,' $HOME/.config/user-dirs.dirs \ | |
&& [ -f $HOME/.config/user-dirs.dirs ] && sed -i 's,Downloads,,' $HOME/.config/user-dirs.dirs \ |
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 -x | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y \ | |
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - \ | |
&& sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \ | |
&& sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 \ | |
&& echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list \ | |
&& sudo add-apt-repository -y ppa:videolan/stable-daily \ |
NewerOlder