Skip to content

Instantly share code, notes, and snippets.

View todditron's full-sized avatar

Todd Dumas todditron

View GitHub Profile
@todditron
todditron / Git post-receive hook for webfaction
Last active October 10, 2019 21:02 — forked from negatronGister/Git post-receive hook for webfaction
Git post-receive hook for deploying on webfaction
# *** INSTRUCTIONS ********
# $ cd repo.git/hooks
# $ vi post-receive
# paste this and fix formatting since things always get funky pasting into VI
# ESC
# :wq
# $ chmod +x post-receive
# ***************************
#!/bin/sh
@todditron
todditron / php.ini
Created January 7, 2019 17:58
Increase PHP defaults
max_execution_time=1200
max_input_time=1200
memory_limit=1024M
post_max_size=256M
upload_max_filesize=256M
/**
* Function will convert all the QUESIONS_ANSWERS variable into appropriate data
*
* @since 7.1.3
*
* @param array $mlw_quiz_array
* @param string $qmn_question_answer_template
* @param string $answer
* @param int $qsm_question_cnt
* @param int $total_question_cnt