View setup_local_xrdp_ubuntu_18.04.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 | |
set -xuo pipefail | |
# GIST: https://gist.github.com/djravine/88f2b9957a0bef6a6dd4c55aca951a09 | |
# USAGE: curl -sL https://gist.github.com/djravine/88f2b9957a0bef6a6dd4c55aca951a09/raw | bash -s -- | |
# INSTALL SOFTWARE | |
sudo apt-get update | |
sudo apt-get install -y \ | |
ubuntu-desktop \ |
View .bash_aliases
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
# Aliases - PHP | |
alias php.info='php -i' | |
alias php5.6='sudo a2dismod php7.0 && sudo a2dismod php7.1 && sudo a2dismod php7.2 && sudo a2dismod php7.3 && sudo a2dismod php7.4 && sudo a2dismod php8.0 && sudo a2dismod php8.1 && sudo a2enmod php5.6 && sudo update-alternatives --set php /usr/bin/php5.6 && sudo service apache2 restart' | |
alias php7.0='sudo a2dismod php5.6 && sudo a2dismod php7.1 && sudo a2dismod php7.2 && sudo a2dismod php7.3 && sudo a2dismod php7.4 && sudo a2dismod php8.0 && sudo a2dismod php8.1 && sudo a2enmod php7.0 && sudo update-alternatives --set php /usr/bin/php7.0 && sudo service apache2 restart' | |
alias php7.1='sudo a2dismod php5.6 && sudo a2dismod php7.0 && sudo a2dismod php7.2 && sudo a2dismod php7.3 && sudo a2dismod php7.4 && sudo a2dismod php8.0 && sudo a2dismod php8.1 && sudo a2enmod php7.1 && sudo update-alternatives --set php /usr/bin/php7.1 && sudo service apache2 restart' | |
alias php7.2='sudo a2dismod php5.6 && sudo a2dismod php7.0 && sudo a2dismod php7.1 && sudo a2dismod php7.3 && sudo a2 |
View codedeploy_deploy.py
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
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file | |
# except in compliance with the License. A copy of the License is located at | |
# | |
# http://aws.amazon.com/apache2.0/ | |
# | |
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" | |
# BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
# License for the specific language governing permissions and limitations under the License. |
View bash_aliases_docker
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
# DOCKER - System | |
alias d.df='docker system df' | |
alias d.prune='docker system prune' | |
alias d.info='docker system info' | |
# DOCKER - Shortcuts | |
alias d.att='docker attach' | |
alias d.diff='docker diff' | |
alias d.eb='dexbash' | |
alias d.img='docker images' |
View install_virtualbox6.0_ubuntu_18.04.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 | |
set -o pipefail | |
# GIST: https://gist.github.com/djravine/aeaaaf28e7ce9b51188c1403f1db6560 | |
# USAGE: curl -sL https://gist.github.com/djravine/aeaaaf28e7ce9b51188c1403f1db6560/raw | sudo bash -s -- | |
apt-get remove -y --purge virtualbox* | |
apt-get autoremove -y | |
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | apt-key add - | |
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add - |
View setup_xrdp_ubuntu_18.04.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 | |
set -xuo pipefail | |
# GIST: https://gist.github.com/djravine/2479d7f14acb3e4ef155179f155010b2 | |
# USAGE: ssh -t -p 2222 adan@localhost 'curl -sL https://gist.github.com/djravine/2479d7f14acb3e4ef155179f155010b2/raw | sudo bash -s -- USERNAME PASSWORD' | |
# CHECK USERNAME/PASSWORD | |
USERNAME=$1 | |
PASSWORD=$2 |
View setup_laravel_ubuntu_18.04.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 | |
set -xuo pipefail | |
# GIST: https://gist.github.com/djravine/adb8821a49621fb6c8306c4882767018 | |
# USAGE: ssh -i ~/.ssh/${KEYNAME} -t -p 22 ubuntu@${EC2_IP} 'curl -sL https://gist.githubusercontent.com/djravine/adb8821a49621fb6c8306c4882767018/raw | sudo bash -s -- ${GIT_REPO_URL}' | |
# LARAVEL BOOTSTRAP | |
laravel_bootstrap () { | |
# INSTALL MYSQL-SERVER |
View install_vm.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 | |
set -o pipefail | |
# GIST: https://gist.github.com/djravine/e4e225d96269cb0b887ecf4e2281bb74 | |
# USAGE: curl -sL https://gist.github.com/djravine/e4e225d96269cb0b887ecf4e2281bb74/raw | bash -s -- VMNAME USERNAME PASSWORD COUNTRY TIMEZONE LANGUAGE /PATH/TO/ISO "POST_INSTALL_COMMAND" | |
VMNAME="${1}" | |
OSUSERNAME="${2}" | |
OSPASSWORD="${3}" | |
OSCOUNTRY="${4}" |
View setup_virtualbox_ubuntu_18.04.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 | |
set -xuo pipefail | |
# GIST: https://gist.github.com/djravine/19f4d820bce3d716108b3f77d7132275 | |
# USAGE: ssh -t -p 2222 adan@localhost 'curl -sL https://gist.github.com/djravine/19f4d820bce3d716108b3f77d7132275/raw | sudo bash -s -- adan' | |
# CHECK USERNAME | |
USERNAME=$1 | |
# SET LOCALE |
View gist:cbece97e05f09c749b317743a2d6b0c4
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
import sqlite3 | |
import os | |
print('BackupRipper for iOS - v1.0') | |
def dict_factory(cursor, row): | |
d = {} | |
for idx, col in enumerate(cursor.description): | |
d[col[0]] = row[idx] | |
return d |
NewerOlder