Skip to content

Instantly share code, notes, and snippets.

View patricmutwiri's full-sized avatar
:octocat:
Have a Octotastic one

Patrick Mutwiri patricmutwiri

:octocat:
Have a Octotastic one
View GitHub Profile
@patricmutwiri
patricmutwiri / git.txt
Last active January 4, 2019 13:04
GIT v2.*
## Git install to 2.* cent os
sudo yum groupinstall "Development Tools"
sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
# select your release from github
wget https://github.com/git/git/archive/v2.1.2.tar.gz -O git.tar.gz
# as per Jan 4th 2019
wget https://github.com/git/git/archive/v2.20.1.tar.gz -O git.tar.gz
@patricmutwiri
patricmutwiri / robots.txt
Last active June 4, 2017 03:35
An Optimized opencart's / ecommerce robots.txt file
User-agent: *
Disallow: /*&limit
Disallow: /*?limit
Disallow: /*?sort
Disallow: /*&sort
Disallow: /*?order
Disallow: /*&order
Disallow: /*?price
Disallow: /*&price
Disallow: /*?brand_tabletpc
@patricmutwiri
patricmutwiri / .htaccess.txt
Created June 4, 2017 03:14
Opencart's default htaccess file
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
# 2. In your opencart directory rename htaccess.txt to .htaccess.
# For any support issues please visit: http://www.opencart.com
Options +FollowSymlinks
# Prevent Directory listing
Options -Indexes
@patricmutwiri
patricmutwiri / .gitignore
Created February 14, 2017 09:28
my global .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
(function(a){a.fn.highchartTable=function(){var d=["column","line","area","spline","pie"];var e=function(l,k){var m=a(l).data(k);if(typeof m!="undefined"){var h=m.split(".");var f=window[h[0]];for(var g=1,j=h.length;g<j;g++){f=f[h[g]]}return f}};this.each(function(){var z=a(this);var X=a(z);var U=1;var q=a("caption",z);var S=q.length?a(q[0]).text():"";var Q;if(X.data("graph-container-before")!=1){var V=X.data("graph-container");if(!V){throw"graph-container data attribute is mandatory"}if(V[0]==="#"||V.indexOf("..")===-1){Q=a(V)}else{var B=z;var u=V;while(u.indexOf("..")!==-1){u=u.replace(/^.. /,"");B=B.parent()}Q=a(u,B)}if(Q.length!==1){throw"graph-container is not available in this DOM or available multiple times"}Q=Q[0]}else{X.before("<div></div>");Q=X.prev();Q=Q[0]}var L=X.data("graph-type");if(!L){throw"graph-type data attribute is mandatory"}if(a.inArray(L,d)==-1){throw"graph-container data attribute must be one of "+d.join(", ")}var g=X.data("graph-stacking");if(!g){g="normal"}var o=X.data("graph-datala
@patricmutwiri
patricmutwiri / pdf-thumbnail-php.md
Created August 23, 2016 09:47 — forked from umidjons/pdf-thumbnail-php.md
Creating PDF thumbnails in PHP

Creating PDF thumbnails in PHP

Install Ghostscript

Download and install right version of ghostscript. In my case my PHP was x86 architecture, so I download Ghostscript 9.14 for Windows (32 bit).

Enable ImageMagick

@patricmutwiri
patricmutwiri / Contract Killer 3.md
Last active August 29, 2015 14:25 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

// X-browser yyyy-MM-dd HH:mm:ss TZInfo
// @author noromanba http://flavors.me/noromanba
// @license CC0 Univ PD http://creativecommons.org/publicdomain/zero/1.0
// c.f.
// https://gist.github.com/noromanba/6736822
// http://let.hatelabo.jp/noromanba/let/hJmcrJfO94ka/rev/hJmcruLM2p0H
// http://let.hatelabo.jp/noromanba/let/hJmcrJfO94ka
var toDateTimeTZInfoString = (function () {
// non-standard JS 1.6, Fx only; c.f.

MacOS

Build 3059

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d