Skip to content

Instantly share code, notes, and snippets.

View kalaomer's full-sized avatar
🐎
Focusing

Ömer Kala kalaomer

🐎
Focusing
View GitHub Profile
@kalaomer
kalaomer / byzanz-record-window
Created May 14, 2016 12:49
byzanz-record-window
#!/bin/bash
#byzanz-record-window
#dependency checks
gif-receord()
{
if ! which xwininfo &>/dev/null; then
echo "Dependency xwininfo not met."
deps_ok=NO
fi
./configure \
--prefix=$HOME/php7/usr \
--with-config-file-path=$HOME/php7/usr/etc \
--enable-mbstring \
--enable-zip \
--enable-bcmath \
--enable-pcntl \
--enable-ftp \
--enable-exif \
--enable-calendar \
@kalaomer
kalaomer / install.sh
Last active August 29, 2015 14:02
PHP + MySQL + nginx + HHVM + Composer + mcrypt install for Ubuntu 13 | 14
# First MySql
sudo apt-get install mysql-server php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
# then nginx
sudo apt-get install nginx
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
<?php
set_time_limit(300);
error_reporting(E_ALL);
class test {
function func() {}
}
<?php
set_time_limit(300);
error_reporting(E_ALL);
class test {
function func() {}
}