kgsl.net Just my Stuff – notes and things I want to remember

26Jun/110

Spicy Meatballs Recipe

Spicy Meatballs

3 tablespoons olive oil
2 large onions, finely chopped
4 garlic cloves, finely chopped
One 28-ounce can crushed tomatoes
One 15-ounce can tomato sauce
1 or 2 canned chipotles in adobo sauce
3/4 cup packed dried bread crumbs
2 large eggs, beaten
1 tablespoon dried oregano
2 teaspoons salt1
1/2 pounds ground round (85 percent lean)
1 1/2 pounds ground pork
( or a your supermarkets pre-made meatball mix )
1/2 teaspoon freshly ground black pepper
3 tablespoons chopped fresh cilantro, for garnish ( I skip this )

The shared part:

Heat the oil in a large saucepan over medium heat. Add the onions and cook, stirring often, until the onions are tender, about 6 minutes. Add the garlic and stir until it gives off its fragrance, about 1 minute. Transfer half of the onion mixture to a large bowl.

The Sauce:

Return the saucepan with the remaining onion mixture to the stove. Add the tomatoes, tomato sauce, and chipotles, and bring to a boil. Cover and reduce the heat to medium-low. Simmer, stirring often, until the sauce is lightly thickened, about 30 minutes.

The Meatballs:

Position a rack in the center of the oven and preheat to 400 degrees F. Lightly oil a large baking sheet
Meanwhile, add the bread crumbs, eggs, oregano, salt, and pepper to the onions in the bowl and mix well. Add the ground round and ground pork, and mix again. Using about 1 tablespoon for each, roll the meat mixture into balls and place on the baking sheet. Bake until the meatballs are browned, about 20 minutes. Transfer the meatballs to the simmering sauce. Cover and simmer until the meatballs are cooked through, about 15 minutes.

The meatballs can be prepared up to 2 days ahead. Cool the meatballs in the sauce. Cover tightly and refrigerate. Or transfer the cooled meatballs and sauce to airtight containers and freeze for up to 1 month; defrost before reheating. To reheat, cook the meatballs and sauce in a large saucepan over medium-low heat, covered, stirring occasionally, until the meatballs are heated through, about 20 minutes.

For the original recipe see: http://www.cbsnews.com/stories/2004/12/02/earlyshow/saturday/chef/main658779.shtml

Tagged as: No Comments
26Jun/110

Bourbon Dogs Recipe

Bourbon Dogs

1 14 oz. bottle of ketchup
1 cup bourbon
1 cup of brown sugar
1 pkg of hot Dogs

In a large saucepan mix all ingredients except the hot dogs.  Cover and simmer stirring occasionally for about an hour.
Add the hot dogs and simmer for another 1/2 a hour.

For best results let the dogs cool down and stick them in the fridge over night and cook them again for 30 to 45 minutes before serving.  This will thicken the sause nicely.

Tagged as: No Comments
7Nov/100

Holloween Stats 2010

Start Time 18:20

Total Trick or Treaters: 76

End time 19:30

Filed under: Uncategorized No Comments
17Nov/090

Halloween Stats

This post is a little late but I wanted to caputre this somewhere.

First Trick or Treater: 6:00

Total: 65

Last: 7:45

Filed under: Uncategorized No Comments
4Oct/090

SSL Troubleshooting

Some openssl commands for troubleshooting SSL connections.

Use openssl to conect to a webserver and download the certificate:

Notes in red.

testsystem:~ testuser$ openssl s_client -connect mail.google.com:443
CONNECTED(00000003)
depth=1 /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain  # CA chain
0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=mail.google.com
i:/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
1 s:/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
i:/C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDIjCCAougAwIBAgIQbt8NlJn9RTPdEpf8Qqk74TANBgkqhkiG9w0BAQUFADBM
MQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg
THRkLjEWMBQGA1UEAxMNVGhhd3RlIFNHQyBDQTAeFw0wOTAzMjUxNjQ5MjlaFw0x
MDAzMjUxNjQ5MjlaMGkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlh
MRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKEwpHb29nbGUgSW5jMRgw
FgYDVQQDEw9tYWlsLmdvb2dsZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ
AoGBAMXW+JL8yvVhSwZBSegKLJWBohjvQew1vXpYElrnb56lTdyJOrvrAp9rc2Fr
8P/YaHkfunr5xK6/Nwa6Puru0nQ1tN3PsVfAXzUdZqqH/uDeBy1m13Ov+9Nqt4vv
CQ4MyGGpA6yQ3Zi1HJxBVmwBfwvuw7/zkQUf+6D1zGhQrSpZAgMBAAGjgecwgeQw
KAYDVR0lBCEwHwYIKwYBBQUHAwEGCCsGAQUFBwMCBglghkgBhvhCBAEwNgYDVR0f
BC8wLTAroCmgJ4YlaHR0cDovL2NybC50aGF3dGUuY29tL1RoYXd0ZVNHQ0NBLmNy
bDByBggrBgEFBQcBAQRmMGQwIgYIKwYBBQUHMAGGFmh0dHA6Ly9vY3NwLnRoYXd0
ZS5jb20wPgYIKwYBBQUHMAKGMmh0dHA6Ly93d3cudGhhd3RlLmNvbS9yZXBvc2l0
b3J5L1RoYXd0ZV9TR0NfQ0EuY3J0MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEF
BQADgYEAYvHzBQ68EF5JfHrt+H4k0vSphrs7g3vRm5HrytmLBlmS9r0rSbfW08su
QnqZ1gbHsdRjUlJ/rDnmqLZybeW/cCEqUsugdjSl4zIBG9GGjnjrXjyTzwMHInZ4
byB0lP6qDtnVOyEQp2Vx+QIJza6IQ4XIglhwMO4V8z12Hi5Fprw=
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=mail.google.com
issuer=/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
---
No client certificate CA names sent
---
SSL handshake has read 1766 bytes and written 313 bytes
---
New, TLSv1/SSLv3, Cipher is RC4-SHA
Server public key is 1024 bit
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol  : TLSv1
Cipher    : RC4-SHA
Session-ID: C2AD2FFD28938F2F2C22DC0F0F967E445B115BF7BB2099837112C0E2B60A1DB3
Session-ID-ctx:
Master-Key: E873EB49C9FE1931B4F3849550E1948F348E0A3E024BDB62A345198C36724D64A1F4B94123B14B19DCE173F8C50F4F08
Key-Arg   : None
Start Time: 1254669146
Timeout   : 300 (sec)
Verify return code: 0 (ok)
---

---------------------------------------

To view the details of the server certificate copy and past the server cert into a text file and use oppenssl.

testserver:~testuser$ openssl x509 -in gmail.cert -text
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
6e:df:0d:94:99:fd:45:33:dd:12:97:fc:42:a9:3b:e1
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=ZA, O=Thawte Consulting (Pty) Ltd., CN=Thawte SGC CA
Validity
Not Before: Mar 25 16:49:29 2009 GMT #  Cert start date
Not After : Mar 25 16:49:29 2010 GMT   # Cert end date
Subject: C=US, ST=California, L=Mountain View, O=Google Inc, CN=mail.google.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:c5:d6:f8:92:fc:ca:f5:61:4b:06:41:49:e8:0a:
2c:95:81:a2:18:ef:41:ec:35:bd:7a:58:12:5a:e7:
6f:9e:a5:4d:dc:89:3a:bb:eb:02:9f:6b:73:61:6b:
f0:ff:d8:68:79:1f:ba:7a:f9:c4:ae:bf:37:06:ba:
3e:ea:ee:d2:74:35:b4:dd:cf:b1:57:c0:5f:35:1d:
66:aa:87:fe:e0:de:07:2d:66:d7:73:af:fb:d3:6a:
b7:8b:ef:09:0e:0c:c8:61:a9:03:ac:90:dd:98:b5:
1c:9c:41:56:6c:01:7f:0b:ee:c3:bf:f3:91:05:1f:
fb:a0:f5:cc:68:50:ad:2a:59
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Extended Key Usage:
TLS Web Server Authentication, TLS Web Client Authentication, Netscape Server Gated Crypto
X509v3 CRL Distribution Points:
URI:http://crl.thawte.com/ThawteSGCCA.crl

Authority Information Access:
OCSP - URI:http://ocsp.thawte.com
CA Issuers - URI:http://www.thawte.com/repository/Thawte_SGC_CA.crt

X509v3 Basic Constraints: critical
CA:FALSE
Sign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gJ4YlaHR0cDovL2NybC50aGF3dGUuY29tL1RoYXd0ZVNHQ0NBLmNy
bDByBggrBgEFBQcBAQRmMGQwIgYIKwYBBQUHMAGGFmh0dHA6Ly9vY3NwLnRoYXd0
ZS5jb20wPgYIKwYBBQUHMAKGMmh0dHA6Ly93d3cudGhhd3RlLmNvbS9yZXBvc2l0
b3J5L1RoYXd0ZV9TR0NfQ0EuY3J0MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEF
BQADgYEAYvHzBQ68EF5JfHrt+H4k0vSphrs7g3vRm5HrytmLBlmS9r0rSbfW08su
QnqZ1gbHsdRjUlJ/rDnmqLZybeW/cCEqUsugdjSl4zIBG9GGjnjrXjyTzwMHInZ4
byB0lP6qDtnVOyEQp2Vx+QIJza6IQ4XIglhwMO4V8z12Hi5Fprw=
-----END CERTIFICATE-----

Tagged as: , No Comments
27Sep/090

Redirecting a Webserver Root Documents with F5 BigIP iRules

Use this iRule to redirect the root (/) documents on webserver

when HTTP_REQUEST {
if {[HTTP::uri] equals {/}} {HTTP::uri {/test}
}
}

For more redirect irules usee the iRule Redirection Generator.

Tagged as: , , No Comments
19Sep/090

Configuring Sticky Sessions with Apache/Jboss/Tomcat

Instructions for configuring Apache and Tomcat/Jboss to use sticky (persistent) sessions.

For these tests I used:

  • Apache 2.2
  • mod_jk 1.28
  • jboss 3.2.6

1. Jboss/Tomcat side of the configuration:

Edit the $JBOSS_HOME/server/default/deploy/jbossweb-tomcat50.sar/server.xml file.
Find the line  that starts with "Engine name" and add jvmRoute to the line.

<Engine name="jboss.web" defaultHost="localhost" jvmRoute="test1">

jvmRoute is the key value it needs to be unique for each system you want to add to the load balancer pool and you will need it during the mod_jk configuration.

2. Apache/mod_jk configuration:

Edit the $APACHE_HOME/conf/httpd.conf and add the following:

LoadModule    jk_module  modules/mod_jk.so

JkShmFile     /etc/httpd/logs/mod_jk.shm
JkLogFile     /etc/httpd/logs/mod_jk.log
JkWorkersFile /etc/httpd/conf/workers.properties
# Set the jk log level [debug/error/info]
JkLogLevel    debug  # set this to debug for testing info for production
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JkMount  /app/*  jboss  # jboss is the name of the load balancer pool configured in the workers.properties file

3. Create the /etc/httpd/conf/workers.properties:

worker.list=jboss,test1,test2  # note the worker names are the same as the jvmRoute configured above

worker.test1.port=8009
worker.test1.host=192.168.1.33
worker.test1.type=ajp13
worker.test1.lbfactor=1

worker.test2.port=8009
worker.test2.host=192.168.1.34
worker.test2.type=ajp13
worker.test2.lbfactor=1

worker.jboss.type=lb
worker.jboss.balanced_workers=test1,test2
worker.jboss.sticky_session=1

4. Restart the web server and re-deploy the Tomcat sar

Helpful links:

Yarrr!

Posts

May 2012
M T W T F S S
« Jun    
 123456
78910111213
14151617181920
21222324252627
28293031  

Projects

Tech