Skip to content

Instantly share code, notes, and snippets.

Jeroen Desloovere jeroendesloovere

Block or report user

Report or block jeroendesloovere

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dockerfile
FROM php:7.1-apache
MAINTAINER Tijs Verkoyen <>
# Install unzip
RUN apt-get update && apt-get install -y \
# Install git
RUN apt-get update && apt-get install -y \
Thijzer / clean_install_fork
Last active Jun 22, 2018
a simple script for fork CMS clean installing & testing
View clean_install_fork
# This script will remove everything and pull in the new version
# @version 1.0.0
# @author <>
# mySQL settings
Thijzer / fork-converter.php
Last active Aug 29, 2015
Fork: spoon 2 twig converter
View fork-converter.php
#!/usr/bin/php -q
// declaring some vars
(!empty($argv[1])) ? $inputFile = $argv[1] : exit('no input file given as parameter' . PHP_EOL);
$selection = false;
$method = false;
$fh = fopen('php://stdin', 'r');
scottjehl / anchorinclude.js
Created May 20, 2011
Anchor-include Pattern
View anchorinclude.js
* anchor-include pattern for already-functional links that work as a client-side include
* Copyright 2011, Scott Jehl,
* Dual licensed under the MIT
* Idea from Scott Gonzalez
* to use, place attributes on an already-functional anchor pointing to content
* that should either replace, or insert before or after that anchor
* after the page has loaded
* Replace: <a href="..." data-replace="articles/latest/fragment">Latest Articles</a>
* Before: <a href="..." data-before="articles/latest/fragment">Latest Articles</a>
alexdunae /
Created Oct 15, 2009
Image optimization with a home-rolled
# Home-rolled, by Alex Dunae (
# N.B. This script works for me; it may not work for you.
# Since it overwrites your images with the optimized version, you should
# backup your files before running this script and do a trial run before
# getting too excited. This is your disclaimer.
# Uses jpegtran (, part of libjpeg,
justintv / .bashrc
Created Aug 17, 2009
Display git branch in bash prompt
View .bashrc
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer!
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty!
# ~/code/web:beta_directory$ git checkout master
# Switched to branch "master"
# ~/code/web:master$ git checkout beta_directory
# Switched to branch "beta_directory"
You can’t perform that action at this time.