Skip to content

Instantly share code, notes, and snippets.

View twicejr's full-sized avatar

twicejr

View GitHub Profile
@twicejr
twicejr / debian-install-zram.sh
Created February 1, 2017 20:47 — forked from rbary/debian-install-zram.sh
Install zRAM on Debian(8)
#!/bin/bash
#
not_root() {
echo "ERROR: You have to be root to execute this script"
exit 1
}
zram_exists() {
echo "ERROR: /etc/init.d/zram already exists"
export class MyApp {
_initDb() {
var promised = [];
promised.push(new Promise((resolve, reject) => {
alert('wait 1.....');
return resolve(true);
}));
promised.push(new Promise((resolve, reject) => {

Guide

Note The extension Imagick is now included in Ondrej's PPA. All you need to do now is $ sudo apt-get install php-imagick, and you're done. I'll keep the guide here because a lot of it is still true for other extensions

======

I've installed PHP7 via Ondrej's PPA. He maintains these PPA's on his free time, consider donating

Install dependencies

@twicejr
twicejr / compile-php-thread-safe-and-pthreads.sh
Created March 20, 2016 09:49 — forked from bipinu/compile-php-thread-safe-and-pthreads.sh
Linux: Build Thread Safe PHP with PHP5-FPM
#!/usr/bin/env bash
# PARAMETERS
# ----------
# PHP
# ---
PHP_TIMEZONE="UTC"
PHP_DIRECTORY="/etc/php5ts"
PHP_VERSION="5.6.5"
@twicejr
twicejr / compile-php-thread-safe-and-pthreads.sh
Created March 20, 2016 09:49 — forked from Divi/compile-php-thread-safe-and-pthreads.sh
Compile PHP Thread Safe & pthreads extension
#!/usr/bin/env bash
# PARAMETERS
# ----------
# PHP
# ---
PHP_TIMEZONE="UTC"
PHP_DIRECTORY="/etc/php5ts"