This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use PhpOffice\PhpSpreadsheet\Spreadsheet; | |
use PhpOffice\PhpSpreadsheet\Writer\Xlsx; | |
/** | |
* Implements hook_permission(). | |
*/ | |
function payment_report_permission() { | |
return [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instructions to setup Hortonworks hadoop server and rstudio. | |
## Login as su | |
``` | |
sudo su | |
``` | |
## Setup java |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For ubuntu 16.04, ppa:ondrej/php repository also includes openssl > 1.1.0 which is incompatible with virtuoso. | |
# To build virtuoso, version 1.0.2 is needed which exists in the default ubuntu repos. | |
# Remove the repo above with | |
# sudo add-apt-repository --remove ppa:ondrej/php | |
# and re install openssl 1.0.2. After the compilation of virtuoso, you can upgrade the openssl version without breaking | |
# Virtuoso. | |
sudo apt-get update | |
sudo apt-get install autoconf automake libtool flex bison gperf gawk m4 make openssl libssl-dev | |
sudo apt-get install git wget curl libreadline-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update Drupal core for an existing Drupal 7 installation. | |
# Change directory to the web root and run this through there. | |
# No root rights needed. | |
# | |
# From the update, 'sites' folder and '.htaccess' file are excluded. | |
# | |
# WARNING: There might be security updates to the .htacess file. Make sure that | |
# the security updates are merged in. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Creates a database and a user and grants all previleges | |
# to the user. The name of the database, the user and the | |
# password are all passed as the first argument in the | |
# script. | |
# In order to run the script below, the root user must | |
# be able to login without password or the password | |
# must be set in the ~/.my.cnf file of the user that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ======= Variables ======== | |
# Set the path to your localhost | |
CDPATH=/var/www/html/ | |
apache_config=/etc/apache2/sites-available | |
host_name_suffix=test | |
# ======= /Variables ======== |