| by Scott Kilroy

Basic MySQL Security

After installing MySQL Set the root passwoord using mysqladmin -u root password new-password login as root and run the following comands drop database test; use mysql; delete from db; delete from user where not (host=”localhost” and user=”root”); flush privileges;

Share Button
Read More
| by Scott Kilroy

Configuring git

git config –global user.name “USER_NAME” git config –global user.email “USER_EMAIL” and if you work with Windows files git config –global core.autocrlf false

Share Button
Read More
| by Scott Kilroy

Git – A better way to manage git with multi-users

Create a directory to store all your repos.  I like putting them in /var/git-repos cd into /var/git-repos (or whatever you called it) mkdir PROJECT_NAME.git cd PROJECT_NAME.git git init –bare Then Each user works locally (could be on their own system or could be in a personal directory on the same server). Run the following: mkdir PROJECT_NAME cd PROJECT_NAME git init if working on the same server you could use git remote add origin /var/git-repos/PROJECT_NAME.git if working remotely you could use […]

Share Button
Read More
| by Scott Kilroy

Git – problems with first push

No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as ‘master’. fatal: The remote end hung up unexpectedly Just run git push origin master Or if you get error: src refspec master does not match any. just do git commit -m “initial commit” git push origin master

Share Button
Read More
| by Scott Kilroy

Moving from Subversion to Git

Follow this guys instructions http://daneomatic.com/2010/11/01/svn-to-multiple-git-repos/

Share Button
Read More
| by Scott Kilroy

Subversion – Remove all .svn directories recursively

rm -rf `find . -type d -name .svn`

Share Button
Read More
| by Scott Kilroy

Installing Zend the easiest way

Go to http://framework.zend.com/download/current/ download the minimal version extract to a directory that makes sense to you add to your .htaccess file RewriteEngine on RewriteBase / RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d php_value include_path “.:REPLACE_WITH_LOCATION_OF_LIBRARY_DIRECTORY”

Share Button
Read More
| by Scott Kilroy

Get started with Zend

Rob Allen has created a simple 18 page tutorial on using Zend that is a great place to get started.  You can find the tutorial at http://akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework.pdf  

Share Button
Read More