Assuming php5-mysqlnd is already installed.
apt-get download phpmyadmin| #!/bin/sh | |
| cd /temp | |
| //Download libtiff4 - http://packages.ubuntu.com/saucy/libtiff4 | |
| wget http://mirrors.kernel.org/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_amd64.deb | |
| sudo dpkg -i libtiff4_3.9.7-2ubuntu1_amd64.deb | |
| //Download canon's sotfwares - http://www.canon.fr/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MP_series/PIXMA_MP230.aspx?type=download&language=EN&os=Linux |
| <?php | |
| //https://github.com/laravel/framework/issues/2093#issuecomment-39154456 | |
| use Illuminate\Database\Eloquent\Model as Eloquent; | |
| use Illuminate\Database\Eloquent\Relations\Pivot; | |
| class User extends Eloquent { | |
| public function groups() { | |
| return $this->belongsToMany('Group'); |
| <?php | |
| // we suppose that sellsyconnect, sellsytools and boot files are created.. | |
| /*******Code to create client*******/ | |
| //We configure parameters for new client | |
| $create_client_request = array ( | |
| 'method' => 'Client.create', |
| # Android development environment for ubuntu precise (12.04 LTS). | |
| # version 0.0.1 | |
| # Start with ubuntu precise (LTS). | |
| FROM ubuntu:12.04 | |
| MAINTAINER Aurel <lighta971@live.fr> | |
| # Never ask for confirmations | |
| ENV DEBIAN_FRONTEND noninteractive |
| #subdomain name | |
| echo -n "Name of your subdomain ?" | |
| read -e subdomain | |
| if [[ $subdomain != "" ]] | |
| then | |
| mkdir ~/$subdomain | |
| sudo touch /etc/apache2/sites-available/$subdomain | |
| sudo echo "<Virtualhost *:80>" >> /etc/apache2/sites-available/$subdomain | |
| sudo echo " ServerName $subdomain.username.kd.io" >> /etc/apache2/sites-available/$subdomain |
| try { | |
| if( new ActiveXObject('ShockwaveFlash.ShockwaveFlash') ) flash = true; | |
| }catch(e){ | |
| if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) flash = true; | |
| } |
| function _pop(url) { | |
| var e = {}; | |
| e.width = e.width || screen.width; | |
| e.height = e.height || screen.height; | |
| var t = "width=" + e.width + "px,height=" + e.height + "px,top=" + (screen.height - e.height) / 2 + ",left=" + (screen.width - e.width) / 2 + ",resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no"; | |
| var n = window.open("about:blank", "_blank", t, false); | |
| n.document.location.href = url; | |
| } |
| // helper | |
| function set_active($path, $active = 'active') { | |
| return call_user_func_array('Request::is', (array)$path) ? $active : ''; | |
| } | |
| // usage in view | |
| <li class="{{ set_active(['admin/institutes*','admin/courses*']) }}"> |
| #------------------Set tinker config for Boris (Laravel 4.1>=) | |
| #Go to cli php.ini (php --ini) | |
| #remove all disable_functions | |
| #reload apache "servce apache2 reload" | |
| #-----------------Install clockwork for debugging | |
| # https://github.com/itsgoingd/clockwork | |