Skip to content

Instantly share code, notes, and snippets.

View hanscode44's full-sized avatar

Hans hanscode44

  • Weert, the Netherlands
View GitHub Profile
@hanscode44
hanscode44 / add_domain.sh
Created March 12, 2021 07:31 — forked from plasticbrain/add_domain.sh
Bash Script to Add a New Domain
#!/bin/sh
################################################################################
# Bash script to add a new domain (Apache2)
# (c) 2014 Mike Everhart | PlasticBrain Media LLC
#
# Prerequisites:
# Create a vhosts "template" in $APACHEDIR/sites-available. The template should
# include placeholders ($TOKEN) that will be replaced with the new domain name.
# See https://gist.github.com/plasticbrain/9620846 for an example template
#
@hanscode44
hanscode44 / frequency_distribution_table.php
Last active January 30, 2017 09:23 — forked from mberberoglu/PHP - Frequency Distribution Table
Creating an array for histogram
<?php
$data = array(
164, 150, 132, 144, 125, 149, 145, 146,
158, 140, 147, 136, 148, 152, 144, 168,
126, 138, 176, 163, 119, 154, 165, 146,
173, 142, 147, 135, 153, 140, 135, 161,
145, 135, 142, 150, 156, 145, 128, 157
);