Skip to content

Instantly share code, notes, and snippets.

@lspg
lspg / install-pia.sh
Created December 19, 2018 16:03
PIA install script for Debian Stretch
#!/bin/bash
@lspg
lspg / lib.sh
Created January 10, 2018 15:02
#!/bin/bash
# Colors
c1="\e[39m" # Normal
c2="\e[91m" # Red
c3="\e[92m" # Light Green
c4="\e[36m" # Cyan
c5="\e[31m" # Light Red
c6="\e[93m" # Yellow
c7="\e[32m" # Green
#!/bin/bash
# Usage :
# Install a fresh Debian Jessie, then execute following shell command as root user
# wget --no-check-certificate -O - https://gist.githubusercontent.com/lspg/018425712d6d437def68922c2717f8af/raw | bash
############
# Settings #
############
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "deb/jessie-amd64"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
@lspg
lspg / bootstrap.sh
Last active December 21, 2015 15:08
Install ownCloud 8.2 on Debian 8 Jessie (Apache2 + PHP 7 + Redis)
#!/bin/bash
setHostname() {
HOST=`hostname -f` && echo $HOST > /etc/hostname && /etc/init.d/hostname.sh start
}
export DEBIAN_FRONTEND=noninteractive
UH=$USER
if [ $USER != 'root' ]; then
UH="/home/"$USER
@lspg
lspg / ppgdal2tiles-install
Created July 22, 2015 13:15
Install parallelpython + ppgdal2tiles
#!/bin/bash
cd /tmp
wget http://www.parallelpython.com/downloads/pp/pp-1.6.4.zip
unzip -e pp-1.6.4.zip
cd pp-1.6.4
sudo python setup.py install
cd ..
sudo rm -Rf pp-1.6.4*
wget -Nnv https://gist.github.com/loispuig/7882950/raw/ecfd68c2f4aa306c123cb0fde16a7e334a88cdd8/wheezy-install-oc-stable.sh && bash wheezy-install-oc-stable.sh; rm -f wheezy-install-oc-stable.sh
@lspg
lspg / edit_jk_init.sh
Last active December 30, 2015 06:19
Shell commands to add Jekyll to ISPConfig chrooted (with Jailkit) users shells. http://blog.kctus.fr/2013/11/29/ispconfig-jekyll
nano /etc/jailkit/jk_init.ini