Skip to content

Instantly share code, notes, and snippets.

View PaulKish's full-sized avatar

Paul Ngumii PaulKish

View GitHub Profile
@PaulKish
PaulKish / Dockerfile
Created September 22, 2023 09:18
Docker File for PHP8.2 with an SQL Server Connection
# Use an official PHP runtime as a parent image
FROM serversideup/php:8.2-cli
# Set the working directory to /app
WORKDIR /app
# Install system dependencies and lsb-release
RUN apt-get update && \
apt-get install -y lsb-release unixodbc-dev && \
apt-get clean && \
@PaulKish
PaulKish / Institutions.txt
Created June 11, 2019 08:44
Education Institutions in Kenya
Adept College of Professional Studies
Adventist University of Africa
Africa College of Social Work
Africa Digital Media Institute
Africa International University
Africa Nazarene University
African Institute of Research and Development Studies
Aga Khan University Teaching Hospital
AirSwiss International College
AirSwiss International College
@PaulKish
PaulKish / agile.md
Last active April 26, 2017 08:27
Agile for Solo Dev

–Create clearly defined, small chunks of work (i.e., user stores)

–Work in short code sprints and have frequent, incremental product releases

–Keep a backlog of user stories and possibly a (Scrum) board to track progress

–Hold daily “standups” before starting work each day (i.e., review what was completed the day before, what issues there were and what needs to be done today)

–Keep track of how long it takes you to do tasks and how many tasks get completed in a sprint (burndown rate/velocity); this is key to accurately estimating how long future tasks will take and future sprint planning

@PaulKish
PaulKish / .htaccess
Last active September 5, 2016 18:07
Redirect http to https
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
// execute process in the background
function execInBackground($cmd,$background=false) {
if($background == false){
exec($cmd);
}else{
if (substr(php_uname(), 0, 7) == "Windows"){
pclose(popen("start /B ". $cmd, "r"));
}else {
exec($cmd . " > /dev/null &");
}
@PaulKish
PaulKish / install-composer.sh
Last active June 24, 2016 12:17 — forked from matthewpizza/install-composer.sh
Install Composer on Webfaction
cd $HOME
ln -s `which php56` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php56
echo -e "\n# Composer\nalias composer=\"php56 \$HOME/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile