Skip to content

Instantly share code, notes, and snippets.

View fapestniegd's full-sized avatar

James S White fapestniegd

View GitHub Profile
set -g bell-action none
setw -g mode-keys vi
bind " " next-window
bind r source-file ~/.tmux.conf
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H resize-pane -L 10
bind J resize-pane -D 10
"-----------------------------------------------------------------------------
" NERD Tree Plugin Settings
"-----------------------------------------------------------------------------
" Toggle the NERD Tree on an off with F7
nmap <F7> :NERDTreeToggle<CR>
nmap ,m :NERDTreeClose<CR>:NERDTreeToggle<CR>
" Close the NERD Tree with Shift-F7
"nmap <S-F7> :NERDTreeClose<CR>
[jameswhite@tyr templates]$ ls
ahm_scheduler.tpl cardatonce_host.tpl data_retrieval_proxy.tpl hostgroup.tpl prod_ldap_servers.tpl
bna_d_drives.tpl cardworks_console.tpl debian.tpl http_server.tpl remote_print.tpl
bna_dmz.tpl centos.tpl dualsys3.tpl https_server.tpl ship_order_manager.tpl
bna_e_drives.tpl cisco_asa_clustered.tpl dualsys_print_server.tpl lab_ldap_servers.tpl soekris.tpl
bna_f_drives.tpl cisco_asa.tpl eft_logging.tpl ldap_servers.tpl telepin.tpl
bna_i_drives.tpl cisco_ips.tpl esx.tpl machine_environment_locator.tpl tftp_server.tpl
bna_lab.tpl cisco_switch.tpl evolis-active.tpl ms_sql.tpl transmissions_server.tpl
bna_servers.tpl contactgroup.tpl evolis-passive.tpl nfs_server
[jameswhite@tyr templates]$ cat http_server.tpl
define service{
use operations-service
host_name [% FQDN %]
service_description HTTP on port 80
check_command check_tcp!80
}
/var/lib/pkild/o=Websages LLC/ chain
/var/lib/pkild/o=Websages LLC/ou=websages.com/ou=Certificate Authority/cn=Intermediate/chain
CREATE TABLE connections (source_host_id INTEGER, destination_host_id INTEGER, source_port INTEGER, destination_port INTEGER, protocol VARCHAR(8), count INTEGER);
CREATE TABLE hosts (host_id INTEGER PRIMARY KEY AUTOINCREMENT, ipaddress VARCHAR(15), zone VARCHAR(32));
DELETE FROM connections
WHERE source_host_id IN (
SELECT connections.source_host_id
FROM connections
INNER JOIN hosts shosts ON (shosts.host_id = connections.source_host_id)
INNER JOIN hosts dhosts ON (dhosts.host_id = connections.source_host_id)
WHERE shosts.ipaddress='192.168.1.5' and connections.destination_port='161' and connections.protocol='udp')
AND destination_host_id IN (
SELECT connections.destination_host_id
FROM connections
prefs:root=General&amp;path=About
prefs:root=AIRPLANE_MODE
prefs:root=General&amp;path=AUTOLOCK
prefs:root=CASTLE&amp;path=STORAGE_AND_BACKUP
prefs:root=General&amp;path=Bluetooth
prefs:root=Brightness
prefs:root=INTERNET_TETHERING
prefs:root=CASTLE
prefs:root=LOCATION_SERVICES
prefs:root=General&amp;path=Network
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>Icon</key>
<data>
iVBORw0KGgoAAAANSUhEUgAAAHIAAAByCAIAAAAAvxIqAAAAGXRF
WHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0
[ ! -d /opt/local/src/CPAN ] && mkdir -p /opt/local/src/CPAN
cd /opt/local/src/CPAN
wget http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/Test-Simple-0.98.tar.gz
tar xvzf Test-Simple-0.98.tar.gz
(cd Test-Simple-0.98; dh-make-perl && debian/rules binary)
dpkg -i libtest-simple-perl_0.98-1_all.deb
wget http://search.cpan.org/CPAN/authors/id/P/PS/PSCUST/ParseTemplate-3.07.tar.gz
tar xvzf ParseTemplate-3.07.tar.gz