Instructions to change this behavior
http://gregferro.com/osx-lion-library-folder-not-visible/
Open the Terminal and type:
chflags nohidden /Users/[username]/Library/
Open the Terminal and type:
chflags nohidden /Users/[username]/Library/
$ cat .bashrc
export PATH=:/usr/bin:/usr/local/bin:$PATH:
#export PATH=$(git --exec-path):$PATH
export GIT_EXEC_PATH=/usr/libexec/git-core
ssh -l gitosisadmin localhost
$ which python
/usr/bin/python
$ which git
/usr/bin/git
$ pwd
/Users/gitosisadmin
$ git clone git://eagain.net/gitosis.git
$ cd gitosis/
$ sudo python setup.py install
ssh-keygen -t rsa
sudo chmod 755 /Users/git/repositories/gitosis-admin.git/hookspost-update
The following can be done with the osx gui
list users and uid
$ sudo dscl . list /Users kid
list groups and group id
$ sudo dscl . list groups did
delete user username
$ sudo dscl . -delete /Users/username
delete group groupname
$ sudo dscl . -delete /groups/groupname
manually create group commandline
sudo dscl . create groups/git
sudo dscl . create groups/git did 401
manually create user commandline
sudo dscl . create users/git
sudo dscl . create users/git uid 401
sudo dscl . create users/git NFSHomeDirectory /Users/git
sudo dscl . create users/git gid 401
sudo dscl . create users/git UserShell /bin/bash
sudo dscl . create users/git Password '*'
create home directory
sudo mkdir /Users/git
sudo chown git /Users/git
sudo chgrp git /Users/git
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c8.tar.gz#md5=0e9bbe1466f3ee29588cc09d3211a010 tar xfvz setuptools-0.6c8.tar.gz cd setuptools-0.6c8 python setup.py build sudo python setup.py install
OLD Tries side note, gitolite next try use from here: https://github.com/sitaramc/gitolite/blob/pu/doc/1-INSTALL.mkd sudo /usr/bin/python setup.py install had the following error: ImportError: No module named setup tools used solution from: http://www.errorhelp.com/search/details/74034/importerror-no-module-named-setuptools wget wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c8.tar.gz#md5=0e9bbe1466f3ee29588cc09d3211a010 tar xfvz setuptools-0.6c8.tar.gz cd setuptools-0.6c8 python setup.py build sudo python setup.py install
Notes The following can be done with the osx gui list users and uid $ sudo dscl . list /Users kid list groups and group id $ sudo dscl . list groups did delete user username $ sudo dscl . -delete /Users/username delete group groupname $ sudo dscl . -delete /groups/groupname manually create group commandline sudo dscl . create groups/git sudo dscl . create groups/git did 401 manually create user commandline sudo dscl . create users/git sudo dscl . create users/git uid 401 sudo dscl . create users/git NFSHomeDirectory /Users/git sudo dscl . create users/git gid 401 sudo dscl . create users/git UserShell /bin/bash sudo dscl . create users/git Password '*' create home directory sudo mkdir /Users/git sudo chown git /Users/git sudo chgrp git /Users/git
$ sudo gem update rails --version='2.3.12'
git clone git://github.com/chiliproject/chiliproject.git
cd chiliproject
git checkout stable
$ sudo port install postgresql83
$ env ARCHFLAGS="-arch x86_64" bundle install
$ sudo port install postgresql83
http://www.icoretech.org/2009/08/how-to-install-pg-postgresql-gem-on-snow-leopard-64-bit/
Install PostgreSQL from source/port for this, does not currently build against binary package.
PATH should be /usr/local/pgsql.
export PATH=/usr/local/pgsql/bin:${PATH}
env ARCHFLAGS="-arch x86_64" gem install pg
Or if you are using macports:
export PATH=/opt/local/lib/postgresql83/bin:${PATH}
env ARCHFLAGS="-arch x86_64" gem install pg
$ sudo gem install rmagick
Password:
Fetching: rmagick-2.13.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed
Installing ri documentation for rmagick-2.13.1...
Installing RDoc documentation for rmagick-2.13.1...
~ $ irb -rubygems -r RMagick
>> puts Magick::Long_version
This is RMagick 2.13.1 ($Date: 2009/12/20 02:33:33 $) Copyright (C) 2009 by Timothy P. Hunter
Built with ImageMagick 6.6.9-1 2011-05-07 Q16 http://www.imagemagick.org
Built for ruby 1.8.7
Web page: http://rmagick.rubyforge.org
Email: rmagick@rubyforge.org
$ rake db:migrate RAILS_ENV="production"
fix for generate session store problem.
$ rake generate_session_store
git clone ssh://git@SERVER:gitolite-admin
gitolite-admin/conf/gitolite.conf
git status from within the gitolite-admin directory on my machine, showed the modifed file
git add .
git commit -m "added repo ericnotes"
git push
this modified the file, added the changes and committed them to the local git repo, then pushed them to my remote repository.
repo gitolite-admin
RW+ = eabolden
repo testing
RW+ = @all
repo ericnotes
RW+ = eabolden
git clone git@yourserveraddress:ericnotes
git push --all
added the following to the gitolite.conf file
repo playarea
RW+ = eabolden
~/work $ cd gitolite-admin/
~/work/gitolite-admin(master) $ ls
conf keydir
~/work/gitolite-admin(master) $ git status
# On branch master
# Changes not staged for commit:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
#
# modified: conf/gitolite.conf
#
no changes added to commit (use "git add" and/or "git commit -a")
~/work/gitolite-admin(master) $ git add .
~/work/gitolite-admin(master) $ git commit -m "added playarea repo"
[master 06adde2] added playarea repo
1 files changed, 3 insertions(+), 0 deletions(-)
~/work/gitolite-admin(master) $ git push
Warning: No xauth data; using fake authentication data for X11 forwarding.
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 369 bytes, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: creating playarea...
remote: Initialized empty Git repository in /Users/git/repositories/playarea.git/
To git@yourserver:gitolite-admin
29e077c..06adde2 master -> master
$ git status
# On branch master
nothing to commit (working directory clean)
~/work $ git clone git@yourserver:playarea
Cloning into playarea...
Warning: No xauth data; using fake authentication data for X11 forwarding.
warning: You appear to have cloned an empty repository.
~/work $
$ touch testdoc.txt
~/work/playarea $ git add .
~/work/playarea $ git commit -m "initial commit"
[master (root-commit) 8a7328b] initial commit
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 testdoc.txt
~/work/playarea(master) $ git status
# On branch master
nothing to commit (working directory clean)
~/work/playarea(master) $ git push --all
Warning: No xauth data; using fake authentication data for X11 forwarding.
Counting objects: 3, done.
Writing objects: 100% (3/3), 214 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@yourserver:playarea
* [new branch] master -> master
~/work/playarea(master) $ touch document2.txt
~/work/playarea(master) $ git add .
~/work/playarea(master) $ git commit -m "added second doc"
[master c8cf756] added second doc
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 document2.txt
~/work/playarea(master) $ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
~/work/playarea(master) $ git push
Warning: No xauth data; using fake authentication data for X11 forwarding.
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 246 bytes, done.
Total 2 (delta 0), reused 0 (delta 0)
To git@yourserver:playarea
8a7328b..c8cf756 master -> master
javascript:void(0)
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
sudo gem update --system
gem -v 2>&1 |grep called
$ sudo gem pristine rcov -- -build-arg
~ $ gem -v 2>&1 |grep called
Gem::Specification#has_rdoc= called from /Library/Ruby/Gems/1.8/specifications/actionmailer-2.3.5.gemspec:14.
$ sudo gem pristine actionmailer -- -build-arg
...
Restored actionmailer-3.0.7
#!/usr/bin/env bash
#
brew install gnu-sed
sudo gem pristine --all --no-extensions
gems=$(gem -v 2>&1 | grep called | gsed -r -e 's#^.*specifications/##' -e 's/-[0-9].*$//')
for gem in $gems
do
echo Fixing $gem...
sudo gem pristine $gem -- -build-arg
done
gem install rake --version=0.8.7
>> data
=> [1, 2, 3, 4, 5, 6]
>> data.class
=> Array
# Add methods to Enumerable, which makes them available to Array
module Enumerable
# sum of an array of numbers
def sum
return self.inject(0){|acc,i|acc +i}
end
# average of an array of numbers
def average
return self.sum/self.length.to_f
end
# variance of an array of numbers
def sample_variance
avg=self.average
sum=self.inject(0){|acc,i|acc +(i-avg)**2}
return(1/self.length.to_f*sum)
end
# standard deviation of an array of numbers
def standard_deviation
return Math.sqrt(self.sample_variance)
end
end # module Enumerable
# enter an interpreted ruby session to play with this:
$ irb
# create a new array called data with six numbers in it
>> data = [1, 2, 3, 4, 5, 6]
=> [1, 2, 3, 4, 5, 6]
>> data.class
=> Array
# try running the following commands. Some will work, some require the module from above.
>> data.sum
=> 21
>> data.size
=> 6
>> data.min
=> 1
>> data.max
=> 6
>> data.average
=> 3.5
>> data.sample_variance
=> 2.91666666666667
>> data.standard_deviation
=> 1.70782512765993
mysqldump -u root study_manager_development > study_manager_development.sql
gzip -v study_manager_development.sql
select id,sku, from line_items where sku LIKE '%u123%' into outfile '/tmp/u123.txt';