Git: Prepare a repository for your project

  Follow these steps to manage your project using GIT:   1. create an empty folder:   $ mkdir menospior.com && cd menospior.com       2. Create an empty repository:   $ git init Initialized empty Git repository in /home/httpd/domains/menospior.com/.git/   3. Create a standard .gitignore file:   $… Continue reading

ArchLinuxARM: Install PECL_HTTP

First install autoconf, php pear and curl pacman -Syu autoconf php-pear curl   Then install pecl_http and iconv pear install pecl.php.net/pecl_iconv pear install pecl.php.net/pecl_http, iconv   Edit your php.ini nano /etc/php/php.ini   Add  extension=http.so   Restart apache rc.d restart httpd  

ArchLinux: imagick

Install Imagick # pacman -S imagemagick libpng librsvg libwmf ghostscript libxml2 jasper openexr   #sudo pear install pecl.php.net/imagick    

Git branch in Mac OSX bash prompt

I tried using the same changes for my linux boxes on my macbook air and they didn't work, so I googled around and stumbled upon using this instead:     c_cyan=`tput setaf 6` c_red=`tput setaf 1` c_green=`tput setaf 2` c_sgr0=`tput sgr0` parse_git_branch (){ if git rev-parse –git-dir >/dev/null 2>&1 then… Continue reading

Hosting: Backing up your MediaTemple using rsync and a linux box

Follow these steps to setup a decent backup solution for your MT hosting (you can adapt this to any other hosting that offers SSH and RSYNC access). First you'll want your linux box to be able to SSH into your hosting without a password using a SSH key instead. Then,… Continue reading

Kohana: core, adding submodules, customization

After cloning the repository, let's add the Kohana core, a few modules and customize the installation: 1.  git submodule add git://github.com/kohana/core.git modules/system git submodule add git://github.com/kohana/database.git modules/database git submodule add git://github.com/kohana/cache.git modules/cache git submodule add git://github.com/kohana/image.git modules/image git submodule add git://github.com/kohana/pagination.git modules/pagination   2. Initialize the modules   $ git… Continue reading

Intranet: [ArchLinux] Setup a DNSCACHE for your network using DJBDNS

This is a version of this post http://blog.portnumber53.com/2012/01/15/intranet-setup-a-dnscache-for-your-network-using-djbdns/ for the ArchLinuxARM:   Essentials: # pacman -Syu fakeroot patch make gcc dnsutils   Daemontools installation $ wget https://aur.archlinux.org/packages/da/daemontools/daemontools.tar.gz $ tar -xvzf daemontools.tar.gz $ cd daemontools $ nano PKGBUILD ——————– arch=('arm') ——————– $ makepkg $ sudo pacman -U daemontools-0.76-5-arm.pkg.tar.xz   You shoould… Continue reading

Kohana 3.2.0: Version Control your application with GIT

Follow these steps to manage your kohana application using GIT:   1. Create an empty directory $ mkdir insertcoin.local && cd insertcoin.local   2. run git init to create the bare structure for a git repository $ git init   3. create a folder for the core $ mkdir vendor  … Continue reading

Kohana 3.2.x: How to install taking advantage of submodules

I have improved my Kohana 3.2.x installation steps. This new way takes advantages of submodules with Git thus making your life easier when upgrading to a new version, assuming it's backwards compatible. This guide will assume you have the following structure for your website:   root/html   <!– public html folder… Continue reading

Linux Hardware Compatibility: W311MI

This is just to let others know what piece of hardware worked during my linux experiments:     dmesg output <5>[    0.000000] Linux version 2.6.31.6_SMP_820 (bdietrich@brad-ux) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #96 SMP Tue                Feb 8 12:08:54 PST 2011 <4>[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5… Continue reading