Skip to content

Instantly share code, notes, and snippets.

View ElToro1966's full-sized avatar

Eric Eikrem ElToro1966

View GitHub Profile
@ElToro1966
ElToro1966 / provisioning_notes.md
Last active February 16, 2021 22:48
Typical provisioning of a Django setup with Gunicorn and Nginx

Provisioning a new site

An alternative to the provisioning set out in “Test-Driven Development with Python, 2nd edition, by Harry J.W. Percival (O’Reilly). Copyright 2017 Harry Percival, 978-1-491-95870-4.”. Added provisioning via SSH only (including the GitHub repository), a non-root user for provisioning, and some hardening. Replace SITENAME below with your site's url, e.g., staging.mydomain.com. Replace USERNAME with the user added on the web server, e.g., slartibartfast.

Required packages:

  • Python 3.6
@ElToro1966
ElToro1966 / ubuntu-install.sh
Created October 10, 2018 06:40
Post Ubuntu 18.*.* Install Script
#!/bin/sh
# installation of additional software for Ubuntu 18.* #
# tested on Ubuntu Budgie 18.04 #
# TODO: functions for checking network, previous install, working install
# check if a network connection is available #
ping -c 1 8.8.8.8
if [ $? != 0 ]
then
@ElToro1966
ElToro1966 / r_ubuntu_18_04.sh
Last active October 1, 2023 18:29 — forked from pachadotdev/r_ubuntu_17_10.sh
Install R and RStudio on Ubuntu 18.04 with essential libraries for data science. Based on pachamaltese/r_ubuntu_17_10.sh (for Ubuntu 17.10). Note: You need to make sure the default library location - /usr/local/lib/R/site-packages - is writable .
# Install R
sudo apt update
sudo apt install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev
# Install RStudio
cd ~/Downloads
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5001-amd64.deb
sudo gdebi rstudio-1.2.5001-amd64.deb
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile