Skip to content

Instantly share code, notes, and snippets.

View jgumbley's full-sized avatar

Jim Gumbley jgumbley

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jgumbley on github.
  • I am jgumbley (https://keybase.io/jgumbley) on keybase.
  • I have a public key whose fingerprint is C50D EE5D 7DCA B57B D26A E4AA 0DC2 D5FE 7E45 4AB6

To claim this, I am signing this object:

STDIN.read.split("\n").each_with_index do |data, index|
puts "Room " + index.to_s
end
@jgumbley
jgumbley / silent.xml
Created February 14, 2011 21:39
silent.xml for silent installation of weblogic server
<?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>
@jgumbley
jgumbley / .zshrc_console
Created January 13, 2011 00:00
zshrc file for headless servers.
# 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
@jgumbley
jgumbley / setup_console.sh
Created January 12, 2011 23:40
setup admin console on headless CENTOS 5.* server
# 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"
@jgumbley
jgumbley / .vimrc_console
Created January 12, 2011 23:17
.vimrc file for console, i.e. for headless servers accessed over SSH
map <F2> :NERDTreeToggle<CR>
set nocompatible
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set autoindent
set number
@jgumbley
jgumbley / install_python.sh
Created January 12, 2011 22:04
setup python 2.7.1 on CENTOS 5.* server
# 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"
import logging
logging.basicConfig(level=logging.DEBUG)
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
"""
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