Skip to content

Instantly share code, notes, and snippets.

Janw Oostendorp janw-me

Block or report user

Report or block janw-me

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
@janw-me
janw-me / Install_Phpstorm.sh
Last active Sep 2, 2016 — forked from theodorosploumis/Install_Phpstorm.sh
Update phpstorm on Ubuntu linux.
View Install_Phpstorm.sh
#!/bin/bash -e
# IMPORTANT. My phpstom installation exists on /opt/phpstorm.
# Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
# SUDO? @source http://stackoverflow.com/a/18216122
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
View vagrant plugin install vagrant-bindfs --debug
22:30 MATE ~ $ vagrant plugin install vagrant-bindfs --debug
INFO global: Vagrant version: 1.8.7
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_LC_NUMERIC="nl_NL.UTF-8"
INFO global: VAGRANT_OLD_ENV_LC_TELEPHONE="nl_NL.UTF-8"
INFO global: VAGRANT_OLD_ENV_CLUTTER_BACKEND="x11"
INFO global: VAGRANT_OLD_ENV_LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.j
@janw-me
janw-me / gist:3d9b00b437dbb6a6dcd4e1823f227461
Created Mar 27, 2019
Debug: vagrant ssh -c'head -n2 /etc/hosts' --debug
View gist:3d9b00b437dbb6a6dcd4e1823f227461
INFO global: Vagrant version: 2.2.4
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/communicators/winrm/plugin.rb
@janw-me
janw-me / looptest.php
Last active May 23, 2019
Foreach & for performance test
View looptest.php
<?php
echo '<pre>';
$test_array = array();
for ( $i = 0; $i <= 10000; $i ++ ) {
$test_array[] = [
'index' => $i,
'include' => ( $i % 3 === 0 ) ? true : false,
];
}
@janw-me
janw-me / gform-iban.php
Created Sep 19, 2019
Gravity Forms IBAN
View gform-iban.php
<?php
/*
Plugin Name: Gravity Forms IBAN
Plugin URI: https://wordpress.org/plugins/gravity-forms-iban/
Description: Adds an IBAN mask and IBAN validation to Gravity Forms.
Author: Admium and Jeroen Schmit, Slim & Dapper
Version: 1.0
Author URI: www.admium.nl
GitHub Plugin URI: AdmiumNL/adm-gravity-iban
*/
You can’t perform that action at this time.