Skip to content

Instantly share code, notes, and snippets.

5
" egrep -v '^#|^$' /etc/sysconfig/prelink"
PRELINKING=yes
PRELINK_OPTS=-mR
PRELINK_FULL_TIME_INTERVAL=14
PRELINK_NONRPM_CHECK_INTERVAL=7
4
" egrep -v '^#|^$' /etc/sysconfig/prelink"
PRELINKING=yes
@colemanjp
colemanjp / gist:892309
Created March 29, 2011 13:03
imap pop login over telnet
IMAP:
telnet localhost 143
a01 login "username" "password"
a01 list "imap directory" "*"
a01 logout
POP:
telnet localhost 110
user "username"
pass "password"
@colemanjp
colemanjp / gist:1226835
Created September 19, 2011 16:02
static 2.2.3 for esx
Procedure to build statically compiled cfengine 2.2.3 for ESX.
Built on MR1, since it's RHEL3
RHEL3 host:
cd /usr/local/src/cfengine
mkdir esx
chown user1:user1 esx
su - user1
cd /usr/local/src/cfengine/esx
@colemanjp
colemanjp / gist:1600504
Created January 12, 2012 13:25
powercli scratch
PowerCLI> GetStatType -Entity CLUSTERNAME
cpu.reservedCapacity.average
mem.reservedCapacity.average
mem.granted.average
mem.active.average
mem.shared.average
mem.zero.average
mem.swapused.average
mem.vmmemctl.average
mem.compressed.average
@colemanjp
colemanjp / gist:1653096
Created January 21, 2012 15:39
cf-serverd memory leak?
bash-2.03# pmap 7184
7184: /var/cfengine/bin/cf-serverd
00010000 3528K read/exec /var/cfengine/bin/cf-serverd
00390000 528K read/write/exec /var/cfengine/bin/cf-serverd
00414000 784824K read/write/exec [ heap ]
FD002000 8K read/write [ anon ]
FD104000 8K read/write [ anon ]
FD206000 8K read/write [ anon ]
FD308000 8K read/write [ anon ]
FD40A000 8K read/write [ anon ]
@colemanjp
colemanjp / gist:1653170
Created January 21, 2012 16:09
cf3 rpm upgrade borked
[root@example.com cfengine]# cat /etc/redhat-release
CentOS release 5.7 (Final)
Current
[root@example.com cfengine]# rpm -q cfengine-community
cfengine-community-3.1.2-1.centos5
[root@example.com cfengine]# ls -l /var/cfengine/bin
total 31600
-rwxr-xr-x 1 root root 1616582 Mar 31 2011 cfagent
-rwxr-xr-x 1 root root 2287325 Jan 21 09:01 cf-agent
@colemanjp
colemanjp / gist:1837439
Created February 15, 2012 17:22
vacation with a 1x per day response
\xxx7
"|/usr/bin/vacation -z -r 1 -a xxx -f /imap/webtool/vacation/xxx7.db -m /imap/webtool/vacation/xxx7.msg xxx7"
@colemanjp
colemanjp / gist:3208296
Created July 30, 2012 16:47
Effect of setting define(`confMAX_RCPTS_PER_MESSAGE',`2')dnl on blacksquarelabs.com
Effect of setting define(`confMAX_RCPTS_PER_MESSAGE',`2')dnl on blacksquarelabs.com
--------------------------------------------------------------------------------------
Try to send to 3 recipients with Thunderbird:
The size of the message you are trying to send exceeds a temporary size limit of the server. The message was not sent; try to reduce the message size or wait some time and try again. The server responded: 4.5.3 Too many recipients.
t/02.keypairs.t ........ 2/11 [SignatureDoesNotMatch] The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details at t/02.keypairs.t line 49
[SignatureDoesNotMatch] The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details at t/02.keypairs.t line 49.
# Failed test 'import key pair'
# at t/02.keypairs.t line 50.
Bailout called. Further testing stopped: [SignatureDoesNotMatch] The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details
FAILED--Further testing stopped: [SignatureDoesNotMatch] The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation
LOCAL_RULESETS
SLocal_check_rcpt
# `nosmtpusers for Proofpoint'
# `Per-user blocking for compromised SMTP auth sessions'
R$* $: $&{auth_authen}
R$* $: $(access yaleblocklist:$1 $)
RBLOCKED $#error $: "553 Sender blocked"
Intuitively, this should go in Local_check_mail, but per