Skip to content

Instantly share code, notes, and snippets.

@subbu6502
subbu6502 / docker-php-ext-install.md
Created May 21, 2019 12:22 — forked from giansalex/docker-php-ext-install.md
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
@subbu6502
subbu6502 / .htaccess
Created March 6, 2019 06:49 — forked from voku/gist:d958041e7b1c19356e721de1eda1e6f8
.htaccess with many options + description
# [PHP] + Apache Server Configs v2.15 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
# access to the main server configuration file (which is usually called
# `httpd.conf`), you should add this logic there.
#
# https://httpd.apache.org/docs/current/howto/htaccess.html.
# ----------------------------------------------------------------------
@subbu6502
subbu6502 / build-zip-from-s3.php
Created February 13, 2019 11:53 — forked from jeremeamia/build-zip-from-s3.php
Create a zip from objects from S3.
<?php
// These are just the basics for how to do this. Notes:
// - Not fully tested.
// - Not suitable for production.
// - May not work well if large ammounts of data.
// - Requires AWS SDK for PHP and http://php.net/manual/en/book.zip.php
require '/path/to/sdk-or-autoloader';
@subbu6502
subbu6502 / crypt.class.php
Created April 5, 2016 12:55 — forked from joshhartman/crypt.class.php
Rijndael 256-bit Encryption (CBC) Class
<?php
class Crypt {
private $key;
function __construct($key){
$this->setKey($key);
}
@subbu6502
subbu6502 / install_jenkins.sh
Created February 25, 2016 13:03 — forked from michalg/install_jenkins.sh
Build environment for Jenkins under CentOS. This script has been tested with Jenkins + CakePHP 2.2
#!/bin/bash
pear upgrade pear
## Install Phing #######################################
pear channel-discover pear.phing.info
pear install --alldeps phing/phing
## Install PHPUnit #####################################
yum install php-xml