Skip to content

Instantly share code, notes, and snippets.

Verifying I am +alexcline on my passcard. https://onename.com/alexcline
@AlexCline
AlexCline / .bash_profile
Created July 3, 2013 18:22
Additional settings to add to .bash_profile. Sets the local TZ and adds auto ssh-agent initialization.
TZ='America/New_York'; export TZ
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
### Keybase proof
I hereby claim:
* I am AlexCline on github.
* I am alexcline (https://keybase.io/alexcline) on keybase.
* I have a public key whose fingerprint is C9E2 F032 BD60 C631 A055 37DE C8D1 D070 F07D 0D53
To claim this, I am signing this object:
@AlexCline
AlexCline / opennms-ssh.xml
Created February 10, 2012 19:21
OpenNMS Configuration for Non-Standard SSH Port
<!-- capsd-configuration.xml -->
<protocol-plugin protocol="SSH-1920" class-name="org.opennms.netmgt.capsd.plugins.SshPlugin" scan="on">
<property key="banner" value="SSH" />
<property key="port" value="1920" />
<property key="timeout" value="3000" />
<property key="retry" value="1" />
</protocol-plugin>
<!-- poller-configuration.xml -->
<service name="SSH-1920" interval="300000" user-defined="false" status="on">