Skip to content

Instantly share code, notes, and snippets.

View thomas15v's full-sized avatar

Thomas Vanmellaerts thomas15v

View GitHub Profile
@thomas15v
thomas15v / gotagofast.sh
Last active August 7, 2018 10:54
Install docker on ubuntu
curl -s https://gist.githubusercontent.com/thomas15v/c42470bf97106c171dcc3ea08461d53b/raw/18597cb816de04350e0266ae5ab7f37cba18aeb7/install.sh | bash
@thomas15v
thomas15v / docker-compose.yml
Created July 26, 2018 09:11
Install odoo with docker-compose
version: '2'
services:
db:
image: postgres:9.4
restart: always
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
odoo:
image: odoo:11
@thomas15v
thomas15v / docker.compose.yml
Last active June 22, 2022 09:41
traefik.io nginx example
version: '2'
services:
nginx:
image: nginx:alpine
restart: always
labels:
- "traefik.enable=true"
- 'traefik.frontend.rule=Host:www.website.com'
- "traefik.port=80"
volumes:
plugins {
id "org.jetbrains.intellij" version "0.2.15"
id "maven"
id "de.undercouch.download" version "3.2.0"
}
task setupPycharm() {
if (!new File('.gradle/ide').exists()){
download {
src 'https://download.jetbrains.com/python/pycharm-professional-2017.2.tar.gz'
dest '.gradle/downloads/py.tar.gz'
version: '2'
services:
odoo:
image: odoo:10
restart: always
links:
- db
volumes:
- ./extra-addons:/mnt/extra-addons
db:
@thomas15v
thomas15v / scripts.txt
Last active December 2, 2016 08:10 — forked from anonymous/scripts.txt
0 3 * * * ~restart
0 13 * * * ~restart
/*
* Copyright (C) 2014 Florian Stober
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
---- Minecraft Crash Report ----
// I just don't know what went wrong :(
Time: 09/10/16 08:50
Description: Exception ticking world entities
java.lang.NullPointerException: Exception ticking world entities
at net.minecraft.item.ItemStack.func_77977_a(ItemStack.java:441)
at net.minecraft.entity.item.EntityItem.func_70005_c_(EntityItem.java:480)
at mcp.mobius.mobiuscore.monitors.MonitoredEntityList.getName(MonitoredEntityList.java:50)
@thomas15v
thomas15v / consul.sh
Last active May 4, 2016 11:31 — forked from ianunruh/consul.sh
Install Consul on Ubuntu 14.04
#!/bin/bash
apt-get install -y curl unzip
mkdir -p /var/lib/consul
mkdir -p /usr/share/consul
mkdir -p /etc/consul/conf.d
wget https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip
unzip consul_0.6.4_linux_amd64.zip
mv consul /usr/local/bin/consul
plugins {
id "com.qixalite.spongestart" version "1.4.6"
id "java"
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {