Skip to content

Instantly share code, notes, and snippets.

View mheesters's full-sized avatar

Martijn Heesters mheesters

View GitHub Profile
@mheesters
mheesters / dmng.php
Created October 16, 2023 10:23
Drupal module name generator
<?php
echo '<h2>Drupal module name generator</h2>';
$aFirst = array('better','menu','path','auto','views','services','rich','advanced','simple','responsive');
$aSecond = array('exposed','media','token','node','feed','menu','views','image','style','core');
$aThird = array('filters','features','fields','context','feeds','nodes','style');
echo 'Please install the: <strong>'.$aFirst[rand(0,count($aFirst)-1)].' '.$aSecond[rand(0,count($aSecond)-1)].' '.$aThird[rand(0,count($aThird)-1)].' </strong>module.';
@mheesters
mheesters / ufc-check.sh
Created October 14, 2023 19:27
Check UFC shorts Sale/availability script
#!/bin/bash
declare -a KLEUR=(rood wit blauw groen geel)
declare -a MAAT=(S M L)
for kleur in "${KLEUR[@]}"
do
date
ufchtml=`wget --quiet -O ufc-tmp.html https://nl.venum.com/products/ufc-venum-authentic-fight-night-herenshort-long-fit-$kleur`
for maat in "${MAAT[@]}"
do
@mheesters
mheesters / provision-custom-vvv.sh
Created January 31, 2016 22:21
Provision only websites in a VVV
#!/bin/bash
#
# provision-custom-vvv.sh
#
# function below taken from the VVV provision.sh file (/vagrant/provision/provision.sh)
custom_vvv(){
# Find new sites to setup.
# Kill previously symlinked Nginx configs
# We can't know what sites have been removed, so we have to remove all