Skip to content

Instantly share code, notes, and snippets.

View StryKaizer's full-sized avatar

Jimmy Henderickx StryKaizer

View GitHub Profile
@schnell18
schnell18 / macosx_remove_java9.sh
Created October 8, 2016 13:26
MacOS X remove Java 9
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
@marcvangend
marcvangend / mymodule.install
Created July 21, 2016 10:30
Drupal 8: Custom path aliases exported to code.
<?php
/**
* @file
* Install, update and uninstall functions for my module.
*/
use Drupal\Core\Database\Database;
use Drupal\Core\Language\LanguageInterface;
/**
@tvlooy
tvlooy / phpstorm.txt
Last active October 13, 2021 03:22
PhpStorm cheat sheet
ctrl + alt + shift + t = refactor this
alt + enter = allerlei shortcuts
ctrl + alt + l = reformat code
shift + f11 = show bookmarks
f11 = insert bookmark
alt + insert = file new
ctrl + n = navigate class
ctrl + shift + n = navigate file
ctrl + shift + f = find in path
ctrl + alt + shift + insert = commit file (eigen shortcut)
@netsensei
netsensei / drupal-ajax.php
Created November 7, 2012 11:14
Minimal Drupal Bootstrap for AJAX requests
<?php
/**
* @file
*
* Minimal AJAX page. Call like this:
* $.ajax({
* type: 'GET',
* url: '/drupal-ajax.php?param1=...
* data: {},
@sprice
sprice / default_images.php
Created March 8, 2012 19:54
Provide image field default images in Drupal 7
<?php
// General function in base feature or custom module.
/**
* Return a file object after saving a default image and storing the fid
* in a variable.
*
* @param $default_image
* An associative array containing: