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"?> | |
<bea-installer> | |
<input-fields> | |
<data-value name="BEAHOME" value="/opt/Middleware" /> | |
<data-value name="WLS_INSTALL_DIR" value="/opt/Middleware/wlserver_10.3" /> | |
<data-value name="COMPONENT_PATHS" value="WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support" /> | |
</input-fields> | |
</bea-installer> |
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
# Skip all this for non-interactive shells | |
[[ -z "$PS1" ]] && return | |
# enable colors | |
autoload colors; colors | |
# Zsh settings for history | |
export HISTIGNORE="&:ls:[bf]g:exit:reset:clear:cd:cd ..:cd.." | |
export HISTSIZE=25000 | |
export HISTFILE=~/.zsh_history |
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
map <F2> :NERDTreeToggle<CR> | |
set nocompatible | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set softtabstop=4 | |
set autoindent | |
set number |
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
# wget -O install_python.sh https://gist.github.com/raw/777001/install_python.sh | |
# chmod +x install_python.sh | |
# ./install_python.sh | |
#!/bin/sh | |
echo "******************************************" | |
echo "Configure Centos box with a recent version" | |
echo "of Python. " | |
echo " - jgumbley 12/jan/11" |
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
# wget -O setup_console.sh https://gist.github.com/raw/777119/setup_console.sh | |
# chmod +x setup_console.sh | |
# ./setup_console.sh | |
#!/bin/sh | |
echo "******************************************" | |
echo "Setup console on headless CENTOS server" | |
echo "basically vim and zsh setup " | |
echo " - jgumbley 12/jan/11" |
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
import logging | |
logging.basicConfig(level=logging.DEBUG) |
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
import urllib, md5, datetime | |
from cgi import parse_qs | |
class PayPal: | |
"""PayPal Utility Class | |
* blog url | |
* http://djangosnippets.org/snippets/1181/ | |
* https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_NVPAPIOverview | |
""" | |
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
set nocompatible | |
colors wombat | |
map <F2> :NERDTreeToggle<CR> | |
set guioptions-=T | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set softtabstop=4 | |
set autoindent | |
set number |
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
import os, sys | |
sys.path.append('/path/to/djangoapp/') | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'djangoapp.settings' | |
import django.core.handlers.wsgi | |
application = django.core.handlers.wsgi.WSGIHandler() | |
import djangoapp.monitor | |
djangoapp.monitor.start(interval=1.0) | |
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
# for the deamon behavoir | |
WSGIDaemonProcess appname-django processes=2 threads=15 | |
WSGIProcessGroup appname-django | |
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName www.client1.net | |
# to mount the application from the wsgi script (see next gist) | |
WSGIScriptAlias / /path/to/your/dev.wsgi |
NewerOlder