Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
#!/bin/bash | |
IPT="/sbin/iptables" | |
# Server IP | |
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="8.8.4.4 8.8.8.8" | |
# Allow connections to this package servers |
<?php | |
class A | |
{ | |
private $ab = 5; | |
public $ac = 6; | |
} | |
/** | |
* WARNING: This https://bugs.php.net/bug.php?id=45937 seems not yet solved |
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
rsync (Everyone seems to like -z, but it is much slower for me)
<?php | |
/** | |
* Recursively converts nested array into a flat one with keys preserving. | |
* @param array $result Resulting array | |
* @param array $array Source array | |
* @param string $prefix Key's prefix | |
* @param string $connector Levels connector | |
*/ | |
function flatArray(array &$result, array $array, $prefix = null, $connector = '.') { | |
foreach ($array as $key => $value) { |
<?php | |
/** | |
* Single level, Case Insensitive File Exists. | |
* | |
* Only searches one level deep. Based on | |
* https://gist.github.com/hubgit/456028 | |
* | |
* @param string $file The file path to search for. | |
* | |
* @return string The path if found, FALSE otherwise. |
This is a tutorial for building and installing the latest release version (0.7.3 as of writing) of "ZFS on Linux" on a Raspberry Pi 3 running Raspbian Stretch. Specifically, we'll be building the dkms
version of ZoL, which saves you the hassle of re-compiling the kernel modules after every kernel update. Even though ZoL added support for building dkms packages for debian in version 0.7.3, the build process on a Raspberry Pi 3 is not quite straight-forward. Hopefully, these instructions will make it easier.
$ sudo apt-get update
$ sudo apt-get install build-essential autoconf libtool gawk alien fakeroot
$ sudo apt-get install dkms zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libssl-dev parted lsscsi wget ksh
<?php | |
namespace Krbu\Utility\ViewHelpers; | |
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | |
/** | |
* Copyright note: Some parts are copied from the Fluid package. | |
* Usage example: | |
* <f:if condition="{krbu:PartialExists(partial: 'Category/{item.category.id}/DetailCol1')}"> |