Thursday, December 26, 2013

Windows Powershell IDE

Windows has built in IDE for creating Powershell scripts.
Under Control Panel/Administrative Tools -> Windows Powershell ISE

Sunday, December 8, 2013

Ruby Devkit initialization error "unknown encoding name - CP720 (ArgumentError)"

Arabic codepage CP720 is unknown to Ruby. However 1256 is known.

To fix, run dos command to change active codepage
chcp 1256

Sunday, November 17, 2013

Monday, September 2, 2013

Fedora 19 start/enable services

systemctl start
systemctl enable

Thursday, July 25, 2013

Disable/Enable internet via Windows 8 command line

Disable-NetAdapter –Name * –Confirm:$false

List Network interfaces in Windows

netsh interface ipv4 show interfaces

Sunday, July 14, 2013

Monday, May 6, 2013

Sunday, February 10, 2013

Linux file find command


find / -name foo
find . -name '*.php'

SVN setup

Quick reference:

http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/

SNV port: 3690

You are going to need to type fast but I think you can do it in 4 minutes. :) These are my notes on what worked for me on my Fedora core 6 with svn lib already installed by the package manager:

1. Create a Repository

svnadmin create /svnrepos

2. Create a SVN User

vi /svnrepos/conf/svnserve.conf
In that file add these three lines:
anon-access = none
auth-access = write
password-db = passwd
Create a password file:
vi /svnrepos/conf/passwd
In that file add a line for your user:
# add users in the format : user = password
tony = mypassword

3. Import Your Project

(assuming you’ve put your project files in /projects/myrailsproject)
svn import /projects/myrailsproject file:///svnrepos/myrailsproject

4. Start the SVN Server as Daemon

svnserve -d
Done! You should now have a svn server running with one project named myrailsproject.
Try checking it out of the repository:
svn co svn://192.168.0.2/svnrepos/myyrailsproject
Since we set anon-access to none you should be prompted for username and password which you created in the file /svnrepos/conf/passwd.