Skip to content

Instantly share code, notes, and snippets.

View t-book's full-sized avatar
💭
reading

Toni t-book

💭
reading
View GitHub Profile
@t-book
t-book / Vagrantfile
Created February 16, 2018 08:05
Ubuntu 16.04 Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.network "private_network", ip: "192.168.33.11"
config.vm.provider "virtualbox" do |vb|
@t-book
t-book / noticetypes.sql
Created February 22, 2018 08:29
A PG-Dump of geonode notification_noticetype table
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.3.15
-- Dumped by pg_dump version 9.5.1
-- Started on 2018-02-21 20:48:10 CET
SET statement_timeout = 0;
# Install geonode OSX 10.14.1
mkdir -p ~/pyenv
virtualenv ~/pyenv/geonode
source ~/pyenv/geonode/bin/activate
git clone https://github.com/GeoNode/geonode
cd geonode
pip install GDAL==2.3.2 lxml==4.2.5 paver celery==4.1.0
@t-book
t-book / Vagrantfile
Last active November 1, 2019 08:34
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "private_network", ip: "192.168.33.13"
config.vm.provider "virtualbox" do |vb|
@t-book
t-book / geonode-requirements.sh
Last active April 15, 2018 15:40
alternative pip install for geonode 2.8
$ cd my_geonode
# install pip requirements line by line and exclude pygdal
$ cat requirements.txt | grep -v "pygdal" | xargs -n 1 pip install
# install geonode project
$ pip install -e git://github.com/GeoNode/[email protected]#egg=geonode
$ pip install -e .
# install the correct pygdal version
@t-book
t-book / Footer.html
Created April 23, 2018 11:24
accept_cookie.js
@t-book
t-book / backupRestoreGeonode.sh
Created May 16, 2018 10:52 — forked from jailbirt/backupRestoreGeonode.sh
backup and restore geonode
#!/bin/bash
option=$1
geonodeBackup='/home/geonode_backups'
mkdir $geonodeBackup
date=$(date +%Y-%m-%d-%H)
function stopServices
{
echo "Stopping services"
sudo service apache2 stop
@t-book
t-book / Vagrantfile
Created July 1, 2018 15:39
Demo Base Box for Vagrant which shows an Instance of geonode project 2.8 in production
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "t-book/geonode-project_2.8"
config.vm.network "private_network", ip: "192.168.33.13"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4024"
@t-book
t-book / Vagrantfile
Created July 2, 2018 14:05
A vagrantfile for a geonode 2.8 demo installation.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "t-book/geonode_28_base"
config.vm.box_version = "1.0.0"
config.vm.network "private_network", ip: "192.168.33.14"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4024"
@t-book
t-book / Vagrant
Last active July 30, 2018 12:52
GeoNode14.04 on Ubuntu Trusty
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
#config.vm.provision :shell, path: "bootstrap.sh"
config.vm.network "private_network", ip: "192.168.33.10"