Skip to content

Instantly share code, notes, and snippets.

View willemvb's full-sized avatar

Willem Van Bockstal willemvb

  • Antwerpen, Belgium
View GitHub Profile
@willemvb
willemvb / startup kiosk
Last active February 23, 2016 17:34
Startup item to open Chrome as kiosk
# Save as app from Script Editor with option "stay open after run handler"
# Set Chrome to open a specific page
on idle
tell application "Google Chrome"
# No app window
try
if not (exists first window) then
reopen
set URL of active tab of first window to "https://spatie.be"
@willemvb
willemvb / pikaday-nl.js
Created August 25, 2016 12:51
Pikaday Dutch/Nederlands i18n
let i18n = {
previousMonth : 'Vorige maand',
nextMonth : 'Volgende maand',
months : ['Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','December'],
weekdays : ['Zondag','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag'],
weekdaysShort : ['Zo','Ma','Di','Wo','Do','Vr','Za'],
}
@willemvb
willemvb / hexagon.css
Last active July 25, 2017 16:05
CSS hexagon calculation
:root {
--hex-width: 150px;
--hex-background: #007593;
--hex-color: white;
--hex-height: calc(var(--hex-width) * 0.576923);
--hex-small-border: calc(.5 * var(--hex-height));
--hex-large-border: calc(.5 * var(--hex-width));
}
.hex {
@willemvb
willemvb / .aliases
Created December 14, 2017 14:06
Blender installation alias
blender-init() {
database=${1:-blender};
echo "";
echo "Database";
echo "------------";
echo "Trying to create database '"$database"'"
echo "create database "$database";" | mysql -u root -p;
echo "";
echo "Laravel";
echo "------------";
@willemvb
willemvb / php-version-switch.md
Last active June 29, 2018 09:21
Switch PHP versions with Valet and Homebrew ^1.5

Install latest

Uninstall older formula

brew uninstall php
brew uninstall php70
brew uninstall php56

Install php versions with recent Homebrew ^1.5

@willemvb
willemvb / git-better-rebase-merge
Created December 4, 2018 13:48
git better rebase/merge settings
git config --global pull.rebase true
git config --global branch.develop.mergeoptions "--no-ff"