Welcome to the pod! Be sure to check out the tutorials and wiki to learn how diaspora works.
Enjoy!
#!/bin/bash | |
# A UNIX / Linux shell script to backup mysql server database using rsnapshot utility. | |
# ------------------------------------------------------------------------- | |
# Copyright (c) 2007 Vivek Gite <vivek@nixcraft.com> | |
# This script is licensed under GNU GPL version 2.0 or above | |
# ------------------------------------------------------------------------- | |
# This script is part of nixCraft shell script collection (NSSC) | |
# Visit http://bash.cyberciti.biz/ for more information. | |
# ------------------------------------------------------------------------- | |
# Tested under RHEL / Debian / CentOS / FreeBSD oses |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
type = cat-file -t | |
dump = cat-file -p | |
undo = reset --hard | |
new = !sh -c 'git log $1@{1}..$1@{0} "$@"' |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^.*koehn\.com$ | |
RewriteRule ^robots\.txt$ /robots-off.txt [L] | |
RewriteCond %{HTTP_HOST} !^.*koehn\.com$ | |
RewriteRule !^robots-off\.txt$ - [L,G] |
#!/bin/bash | |
CHECK_IP=`curl -6 -m 5 http://www.whatismyipv6.com/ 2> /dev/null | awk '/^[0-9a-f:]+<tr><td>/ { sub(/<.*/, "") }; { print $0 }' | egrep '^[0-9a-f:]+$'` | |
if [ $? -ne 0 ] | |
then | |
echo Unable to get current IP address with curl >&2 | |
exit 100 | |
fi | |
echo $CHECK_IP | sed -e 's!.*is \(.*\)</h1>.*!\1!' |
# no semicolons at eol | |
:%s/;[ \t]*$// | |
# no 'public' | |
:%s/public // | |
# convert Java 'bar.getFoo()' to Groovy 'bar.foo' in VIM | |
:%s/\.\(get\|is\)\(\u\)\(\w\+\)()/.\l\2\3/g | |
# convert Java 'foo.setBar(baz)' to Groovy 'foo.bar = baz' |
./configure --with-pam --with-solr --with-sql --with-mysql --with-zlib --with-bzlib |