Skip to content

Instantly share code, notes, and snippets.

View tijsverkoyen's full-sized avatar

Tijs Verkoyen tijsverkoyen

View GitHub Profile
FROM php:7.1-apache
MAINTAINER Tijs Verkoyen <tijs@sumocoders.be>
# Install unzip
RUN apt-get update && apt-get install -y \
unzip
# Install git
RUN apt-get update && apt-get install -y \

Deploy PHP apps

Requirements

  • Written in PHP
  • Rollbacks
  • Maintenance
  • Install vendors with Composer
  • Shared folders
  • Migrations (MySQL, PHP, Locale)

Keybase proof

I hereby claim:

  • I am tijsverkoyen on github.
  • I am tijsverkoyen (https://keybase.io/tijsverkoyen) on keybase.
  • I have a public key whose fingerprint is 98F4 11C9 A663 766E 9B95 92F0 5E8E 4608 6547 30E5

To claim this, I am signing this object:

@tijsverkoyen
tijsverkoyen / gist:5300754
Last active December 15, 2015 17:59
Because I hate people why just click/execute anything they read on the internet.
say -v bad You stupid fuck, if I wanted I could have removed some files, by executing rm dash r f slash instead of singing this
@tijsverkoyen
tijsverkoyen / scrollTo
Last active December 11, 2015 11:38
This snippet will animate the anchor links on the current page. Inspired on a script written by @mathiashelin
$(document).on('click', 'a[href*="#"]', function(e) {
var $anchor = $(this),
hash = $anchor.attr('href'),
url = hash.substr(0, hash.indexOf('#'));
hash = hash.substr(hash.indexOf('#'));
// if it is just the hash, we should reset it to body, which will make it scroll to the top of the page.
if(hash == '#') hash = 'body';
// check if we have an url, and if it is on the current page and the element exists
@tijsverkoyen
tijsverkoyen / gist:1903285
Created February 24, 2012 19:52
Argenta bookmarklet
javascript:id='<your id>';url='https://internetbanking.argenta.be/Argenta2/authenticationUCRNL.jsp'; if(location!=url) { location = url; alert('Reopen your bookmark after the page is loaded'); } else { document.getElementsByName('id')[0].value=id; }
@tijsverkoyen
tijsverkoyen / gist:1107856
Created July 26, 2011 20:03
lighttpd-config for Fork-cms
# all credits to Kevin Van Ransbeeck (http://twitter.com/KevinVRansbeeck)
url.rewrite-if-not-file = (
".*?(.*)" => "index.php?$1",
"." => "index.php"
)