Skip to content

Instantly share code, notes, and snippets.

RHEL 6
[jcoleman@gilda Misc]$ rpm -qp --scripts ~/Downloads/httpd-2.2.15-15.el6.x86_64.rpm
warning: /home/jcoleman/Downloads/httpd-2.2.15-15.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
preinstall scriptlet (using /bin/sh):
# Add the "apache" user
getent group apache >/dev/null || groupadd -g 48 -r apache
getent passwd apache >/dev/null || \
useradd -r -u 48 -g apache -s /sbin/nologin \
-d /var/www -c "Apache" apache
exit 0
@colemanjp
colemanjp / gist:3855713
Created October 8, 2012 23:57
sendmail refusing to show dsn or pipelining with no reverse dns
[jcoleman@blacksquarelabs ~]$ telnet vm-emlprdomr-01.its.yale.edu 25
Trying 130.132.50.112...
Connected to vm-emlprdomr-01.its.yale.edu.
Escape character is '^]'.
220 vm-emlprdomr-01.its.yale.edu ESMTP server ready at Mon, 8 Oct 2012 19:54:37 -0400
ehlo foobar
@colemanjp
colemanjp / gist:3914752
Created October 18, 2012 21:08
clamav limits on MRs 20121018
##
## Limits
##
# The options below protect your system against Denial of Service attacks
# using archive bombs.
# This option sets the maximum amount of data to be scanned for each input file.
# Archives and other containers are recursively extracted and scanned up to this
# value.

Get the public key for our selector

[jcoleman@gilda ~]$ dig -t txt googleprd._domainkey.yale.edu

; <<>> DiG 9.9.1-P3-RedHat-9.9.1-9.P3.fc17 <<>> -t txt googleprd._domainkey.yale.edu ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12280 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 5

@colemanjp
colemanjp / gist:3952297
Created October 25, 2012 12:25
Check key length on dkim for our google apps domain

Check key length on dkim for our google apps domain

Get the public key for our selector

$ dig -t txt googleprd._domainkey.yale.edu

; <<>> DiG 9.9.1-P3-RedHat-9.9.1-9.P3.fc17 <<>> -t txt googleprd._domainkey.yale.edu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12280

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 5

Index: dcsunix/drupal7/pub/etc/openldap/ldap.conf.template
===================================================================
--- dcsunix/drupal7/pub/etc/openldap/ldap.conf.template (working copy)
+++ dcsunix/drupal7/pub/etc/openldap/ldap.conf.template (.../https://cf3svn....) (revision 1393)
@@ -14,3 +14,4 @@
#DEREF never
TLS_CACERTDIR /etc/openldap/certs
+TLS_REQCERT never
$ host -t mx yale.edu
yale.edu mail is handled by 9 vm-emlprdimg-06.its.yale.edu.
yale.edu mail is handled by 9 vm-emlprdimg-07.its.yale.edu.
yale.edu mail is handled by 9 vm-emlprdimg-03.its.yale.edu.
yale.edu mail is handled by 9 vm-emlprdimg-04.its.yale.edu.
yale.edu mail is handled by 9 vm-emlprdimg-05.its.yale.edu.
$ host -t mx connect.yale.edu
connect.yale.edu mail is handled by 10 x10-caht4.its.yale.edu.
connect.yale.edu mail is handled by 20 mr1.its.yale.edu.
@colemanjp
colemanjp / gist:5778586
Last active December 18, 2015 11:49
hp-assoc.com illegal MX config references CNAME
$ host -t mx hp-assoc.com
hp-assoc.com mail is handled by 10 mail1g4.mail.pairserver.com.
$ host mail1g4.mail.pairserver.com.
mail1g4.mail.pairserver.com is an alias for mail1.g4.pair.com.
mail1.g4.pair.com has address 66.39.3.119
mail1.g4.pair.com has IPv6 address 2607:f440::4227:377
$ pwd
/opt/cisco/anyconnect/bin
$ ./vpn
Cisco AnyConnect Secure Mobility Client (version 3.1.02043) .
Copyright (c) 2004 - 2013 Cisco Systems, Inc. All Rights Reserved.
@colemanjp
colemanjp / gist:6164332
Created August 6, 2013 13:12
macmillan cas errors
[Tue Aug 06 09:10:53 2013] [error] [client 172.28.186.185] MOD_AUTH_CAS: Certificate CN does not match secure.its.yale.edu, referer: https://macmillan.its.yale.edu/local_doc/
[Tue Aug 06 09:10:53 2013] [error] [client 172.28.186.185] MOD_AUTH_CAS: Certificate CN does not match secure.its.yale.edu, referer: https://macmillan.its.yale.edu/local_doc/
[Tue Aug 06 09:10:53 2013] [error] [client 172.28.186.185] MOD_AUTH_CAS: Certificate CN does not match secure.its.yale.edu, referer: https://macmillan.its.yale.edu/local_doc/
[Tue Aug 06 09:10:53 2013] [error] [client 172.28.186.185] MOD_AUTH_CAS: Certificate CN does not match secure.its.yale.edu, referer: https://macmillan.its.yale.edu/local_doc/
[Tue Aug 06 09:10:53 2013] [error] [client 172.28.186.185] MOD_AUTH_CAS: Certificate CN does not match secure.its.yale.edu, referer: https://macmillan.its.yale.edu/local_doc/
[Tue Aug 06 09:10:54 2013] [error] [client 172.28.186.185] MOD_AUTH_CAS: Certificate CN does not match secure.its.yale.edu, referer: https://macmilla