First Upate System:
$ sudo apt update
$ sudo apt upgrade -y
Install Apache:
/** | |
* @return bool | |
*/ | |
protected function buildPDF() | |
{ | |
if(class_exists('TCPDF')) | |
{ | |
$template = $this->getTemplate('pdf.html'); // your function to get the html table | |
// convert product object to placeholders | |
$placeholders = array(); |
<?php | |
function randomLetter($size) | |
{ | |
$bag = "A BC DEF G HIJKLL MNOP QRS TUV W XUZ "; | |
$key = array(); | |
$bagsize = strlen($bag) - 1; | |
for ($i = 0; $i < $size; $i++) | |
{ | |
$get = rand(0, $bagsize); |
#!/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. |
<?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 | |
*/ |
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, |
// 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(); |
<?php | |
$surnames = array( | |
"SMITH", | |
"JOHNSON", | |
"WILLIAMS", | |
"BROWN", | |
"JONES", | |
"GARCIA", | |
"MILLER", |
#!/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 | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
/** | |
* The array of dynamic content | |
* | |
* @var array | |
*/ | |
protected static $dynamicContent = array( | |
// The banners by size (width - height) | |
'banner' => array( | |
'728-90' => array( |