Skip to content

Instantly share code, notes, and snippets.

View HinchK's full-sized avatar

.: HinchK :. HinchK

View GitHub Profile
<?php
require('../functions.php');
function retrieveRegionDatabases() {
$db = connect_to_local_snipe_db();
$show_dbs_results = $db->query('SHOW DATABASES');
<?php
require('../functions.php');
function retrieveRegionDatabases() {
$db = connect_to_local_snipe_db();
$show_dbs_results = $db->query('SHOW DATABASES');
@HinchK
HinchK / install-php-71.sh
Last active January 31, 2018 07:50 — forked from mavieth/install-php-7.sh
Upgrade from PHP 5.X.X to PHP 7 on an AWS EC2 Linux Server
#!/bin/bash
echo "==============================="
echo "Installing PHP 7.1"
echo "==============================="
yum install -y php71
echo "==============================="
echo "Installing PHP 7.1 additional commonly used php packages"
echo "==============================="
yum install -y php71-gd
@HinchK
HinchK / README
Created June 13, 2016 19:01 — forked from diemuzi/README
Apache 2.2.x / 2.4.x FPM Configuration
This configuration is a working copy which I have tested on Apache 2.2.x and 2.4.x
I highly recommend you use this version of mod_fastcgi as it works with Apache 2.4.x, fastcgi.com version does not!
https://github.com/ByteInternet/libapache-mod-fastcgi
The fastcgi.com version is 2.4.6, the version I am recommending registers as 2.4.7
To patch mod_fastcgi for use with Apache 2.4.x look at the debian/patches folder. It's not specific to Debian OS so don't let that fool you. I personally use Archlinux.
Of course to compile mod_fastcgi:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
@if (count($records))
@foreach ($records as $record)
@include('record.item', $record)
@endforeach
@else
@include('record.no-items')
@endif
/*
*
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated for Laravel 4.2.8 on 2014-08-26.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
@HinchK
HinchK / CleanDirs.php
Last active August 29, 2015 14:08 — forked from msurguy/CleanDirs.php
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class CleanDirs extends Command {
protected $name = 'cleandirs';
@HinchK
HinchK / List.md
Last active August 29, 2015 14:08 — forked from msurguy/List.md

Other people's projects:

Maxoffsky projects (tutorials are on my blog at http://maxoffsky.com):