Skip to content

Instantly share code, notes, and snippets.

View thomas15v's full-sized avatar

Thomas Vanmellaerts thomas15v

View GitHub Profile
@thomas15v
thomas15v / gist:d4b30aa3eee3b7866e54
Created November 30, 2014 09:12
C4 exploding block
package apoc.c4.tileentity;
import net.minecraft.client.Minecraft;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
plugins {
id "com.qixalite.spongestart" version "1.4.6"
id "java"
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
@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
---- 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)
/*
* 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
@thomas15v
thomas15v / scripts.txt
Last active December 2, 2016 08:10 — forked from anonymous/scripts.txt
0 3 * * * ~restart
0 13 * * * ~restart
version: '2'
services:
odoo:
image: odoo:10
restart: always
links:
- db
volumes:
- ./extra-addons:/mnt/extra-addons
db:
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'
@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:
@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