This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gitosis setup instructions for Fedora | |
# copied from http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way | |
# and modified to work on Fedora | |
# Comment out the next two lines after you've changed this script to match your config | |
echo "This is not meant to be run as a script!" | |
exit 0 | |
# do you have setuptools or distribute? if not, run these commands | |
cd ~/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script creates a git group and user account under Mac OS X | |
# Assumes git was installed via macports (i.e. /opt/local) | |
USERNAME="git" | |
GROUPNAME="$USERNAME" | |
REALNAME="git version control" | |
PASSWORD="*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://repo.or.cz/w/alt-git.git?a=blob_plain;f=gitweb/README | |
# Site name | |
$site_name = "git.cdwilson.us"; | |
# $my_uri = "/"; | |
# $home_link = "/"; | |
# Point to projects.list file generated by gitosis. | |
# Here gitosis manages the user "git", who has a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Virtual Hosts | |
# | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at | |
# <URL:http://httpd.apache.org/docs/2.2/vhosts/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f /opt/local/etc/bash_completion ]; then | |
. /opt/local/etc/bash_completion | |
fi | |
alias la="ls -a" # list all, includes dot files | |
alias ll="ls -l" # long list, excludes dot files | |
alias lla="ls -la" # long list all, includes dot files | |
# Setup some colors to use later in interactive shell or scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.kernel.git.git-daemon</string> | |
<key>UserName</key> | |
<string>git</string> | |
<key>GroupName</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install meld | |
sudo apt-get -y install meld | |
# Install lighttpd so that 'git instaweb' works | |
# sudo apt-get -y install lighttpd | |
# Install git | |
sudo apt-get -y install git-core git-doc git-cvs git-svn git-email git-daemon-run git-gui gitk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find "text" in some /path/to/search | |
find /path/to/search -type f -print0 | xargs -0 grep -l "text" | |
# Restore the deleted files in a git repository | |
git ls-files -d | xargs git checkout -- | |
# Move all files in a directory including .files | |
# http://superuser.com/questions/62141/linux-how-to-move-all-files-from-current-directory-to-upper-directory | |
(shopt -s dotglob; mv -- * /path/to/destination) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName git.server | |
ServerAdmin webmaster@git.server | |
DocumentRoot /usr/share/gitweb | |
<Directory /usr/share/gitweb> | |
Options FollowSymLinks ExecCGI | |
AddHandler cgi-script cgi | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f |
OlderNewer