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 | |
GIT_BRANCH='<the_branch>' | |
SERVER_IP='<remote_server_ip>' | |
SERVER_USER='<remote_user>' | |
DEFAULT_COPY_PATH='<remote_path_where_to_copy_the_bundle>' | |
INSTALL_SCRIPT="install.sh" | |
# you can specify a custom git branch if you want | |
if [ $# -gt 0 ]; then |
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 | |
TARGET_FOLDER='<target_folder_for_django_deployment>' | |
SYNCDB_COMMAND="$TARGET_FOLDER/<path_to_manage.py>" | |
# fetching the newest tar archive so we can deploy it | |
LATEST_TAR=`ls -t *.tar.gz | head -1` | |
echo "Cleaning up the target folder..." |
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
add-apt-repository main | |
add-apt-repository universe | |
add-apt-repository restricted | |
add-apt-repository multiverse | |
apt update | |
apt install -y lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings i3 wicd ubuntu-drivers-common mesa-utils mesa-utils-extra compton xorg xserver-xorg nautilus gnome-terminal git git-core zsh fonts-powerline xfe xfe-i18n xfe-themes | |
mkdir /tmp/debs/ |
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
general { | |
output_format = "i3bar" | |
} | |
order += "load" | |
order += "disk /" | |
order += "cpu_usage" | |
order += "volume master" | |
order += "tztime local" |
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 | |
if [ $# -lt 1 ]; then | |
echo -e "\nNeed file name as first parameter!\n\nExample:\n$ ./generate_certificate.sh server\n" | |
exit 0 | |
fi | |
FILE_NAME="$1" | |
openssl genrsa -des3 -out $FILE_NAME.key 1024 && |
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 | |
usage() { | |
echo -e "Usage: $0 <repo_name>" | |
} | |
if [[ $# -lt 1 ]]; then | |
usage | |
exit 0 | |
fi |