Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Ontspan! en gebruik oop bron sagteware.

<<ewe>>yn Llewellynvdm

:octocat:
Ontspan! en gebruik oop bron sagteware.
View GitHub Profile
@Llewellynvdm
Llewellynvdm / Apache-proxy-setup.md
Last active Jul 2, 2021
Easy Joomla! 3.9.27 Docker Composer File
View Apache-proxy-setup.md

Apache Proxy Setup Instructions for Ubuntu 20.04

First Upate System:

$ sudo apt update
$ sudo apt upgrade -y

Install Apache:

@Llewellynvdm
Llewellynvdm / .bash_prompt.sh
Last active Jul 17, 2021 — forked from milyord/.bash_prompt.sh
Pretty Colored Bash Prompt
View .bash_prompt.sh
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@Llewellynvdm
Llewellynvdm / vdmInstallExtension.php
Last active Oct 30, 2020
Install Extension (via CLI) for Joomla 3.9
View vdmInstallExtension.php
<?php
/**
* @package VDM Install Extension (via CLI)
*
* @author Llewellyn van der Merwe <https://www.vdm.io>
* @gitHub https://gist.github.com/Llewellynvdm/fb2a8bcd24c42a955b67ec3154aa7b54
* @copyright Copyright (C) 2020 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later
*/
@Llewellynvdm
Llewellynvdm / CollegeSystem.sql
Created Jun 17, 2020
Students at XYZ College
View CollegeSystem.sql
USE [CollegeSystem]
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Students](
[ID] [int] IDENTITY(1,1) NOT NULL,
View Fix_Categories_Issue.php
// load the helper class
JLoader::register('[[[Component]]]Helper', JPATH_ADMINISTRATOR . '/components/com_[[[component]]]/helpers/[[[component]]].php');
// check the version of JCB
$manifest = [[[Component]]]Helper::manifest();
if (isset($manifest->version) && strpos($manifest->version, '.') !== false)
{
// get the version
$this->JCBversion = explode('.', $manifest->version);
// Get a db connection.
$db = JFactory::getDbo();
@Llewellynvdm
Llewellynvdm / generator.php
Last active May 28, 2020
Little SQL generator in PHP
View generator.php
<?php
$surnames = array(
"SMITH",
"JOHNSON",
"WILLIAMS",
"BROWN",
"JONES",
"GARCIA",
"MILLER",
View caeser_cypher_hack.py
#!/usr/bin/python3
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Caesar Cypher Hack
#
# @author Llewellyn van der Merwe <https://www.vdm.io/>
# @copyright Copyright (C) 2019 Vast Development Method. All rights reserved.
# @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@Llewellynvdm
Llewellynvdm / getDynamicContent.php
Last active Mar 8, 2021
Little dynamic content script of JCB
View getDynamicContent.php
/**
* The array of dynamic content
*
* @var array
*/
protected static $dynamicContent = array(
// The banners by size (width - height)
'banner' => array(
'728-90' => array(
@Llewellynvdm
Llewellynvdm / conky_orange_4k.lua
Last active Oct 17, 2018 — forked from anonymous/conky_orange_4k.lua
conky orange 4k resolution config files
View conky_orange_4k.lua
--==============================================================================
-- conky_orange.lua
--
-- author : SLK
-- version : v2011062101
-- license : Distributed under the terms of GNU GPL version 2 or later
--
-- modified: me
-- version : v20171027
-- notes : works on 4k screen. uses conky conf newer >v1.1
View JCB Transition to InnoDB
ALTER TABLE `#__componentbuilder_joomla_component` ENGINE = InnoDB;
ALTER TABLE `#__componentbuilder_joomla_component` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__componentbuilder_admin_view` ENGINE = InnoDB;
ALTER TABLE `#__componentbuilder_admin_view` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__componentbuilder_custom_admin_view` ENGINE = InnoDB;
ALTER TABLE `#__componentbuilder_custom_admin_view` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__componentbuilder_site_view` ENGINE = InnoDB;