Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* @version 4.7.0
* @package AllVideos (plugin)
* @author JoomlaWorks - http://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2015 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
@malles
malles / output.txt
Created January 16, 2016 13:22
Vagrant up output
vagrant up
Bringing machine 'local' up with 'virtualbox' provider...
==> local: Importing base box 'puphpet/ubuntu1404-x64'...
==> local: Matching MAC address for NAT networking...
==> local: Checking if box 'puphpet/ubuntu1404-x64' is up to date...
==> local: Setting the name of the VM: YOO-develop_local_1452949267092_45295
==> local: Clearing any previously set network interfaces...
==> local: Preparing network interfaces based on configuration...
local: Adapter 1: nat
local: Adapter 2: hostonly
// ==UserScript==
// @name Dark
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://github.com/
// @match https://*.facebook.com/*
// @grant none
// ==/UserScript==
@malles
malles / config.php
Created September 21, 2015 11:36
Pagekit Config File
<?php return array (
'database' =>
array (
'default' => 'mysql',
'connections' =>
array (
'mysql' =>
array (
'host' => 'localhost',
'user' => 'pagekit',
@malles
malles / config.yaml
Created September 20, 2015 10:10
Pagekit local puPHPet server
vagrantfile:
target: local
vm:
box: puphpet/debian75-x64
box_url: puphpet/debian75-x64
hostname: local.puphpet
memory: '1024'
cpus: '1'
chosen_provider: virtualbox
network:
@malles
malles / uikit_lightbox_iframe.js
Last active May 24, 2016 15:50
UIkit lightbox Iframe plugin
(function () {
"use strict";
UIkit.on('beforeready.uk.dom', function () {
UIkit.plugin("lightbox", "iframe", {
init: function (lightbox) {
@malles
malles / Autocomplete-callback-function.markdown
Created March 4, 2015 00:32
Autocomplete callback function
@malles
malles / UIkit-sortable-javascript.markdown
Created February 19, 2015 22:13
UIkit sortable javascript
SELECT p.prijsID
FROM bbroch_bps_prijs AS p
INNER JOIN bbroch_bps_prijsoption AS table_formaat ON table_formaat.prijsID = p.prijsID AND table_formaat.attribName = 'formaat'
INNER JOIN bbroch_bps_prijsoption AS table_afwerking ON table_afwerking.prijsID = p.prijsID AND table_afwerking.attribName = 'afwerking'
INNER JOIN bbroch_bps_prijsoption AS table_papiersoort ON table_papiersoort.prijsID = p.prijsID AND table_papiersoort.attribName = 'papiersoort'
INNER JOIN bbroch_bps_prijsoption AS table_omvang ON table_omvang.prijsID = p.prijsID AND table_omvang.attribName = 'omvang'
INNER JOIN bbroch_bps_prijsoption AS table_multikleur ON table_multikleur.prijsID = p.prijsID AND table_multikleur.attribName = 'multikleur'
WHERE p.productID = 2 AND p.state = 1 AND (p.prijsEind > NOW() OR p.prijsEind = '0000-00-00')
AND p.prijsStart <= NOW()
@malles
malles / stripdocs.php
Created January 24, 2015 12:49
strip Joomla docs
//strip out jui jquery
foreach ($this->doc->_scripts as $url => $docInfo) {
if ($this->isAdmin || !preg_match('#jui/js/jquery|\?jquery.min|\?jquery-noconflict|\?jquery-migrate#', $url)) {
$newOrder[$url] = array(
'mime' => 'text/javascript',
'defer' => false,
'async' => false
);
}
}