Skip to content

Instantly share code, notes, and snippets.

View bryanbibat's full-sized avatar

Bryan Bibat bryanbibat

View GitHub Profile
class Node
attr_accessor :value, :next
def initialize(value)
@value = value
end
end
class LinkedList
attr_accessor :head, :tail
def initialize
<div class="field">
<input id="ballot_city_quezon_city" name="ballot[city]" type="radio" value="Quezon City" />
<label for="ballot_city_quezon_city">Quezon City</label>
</div>
<div class="field">
<input id="ballot_city_manila" name="ballot[city]" type="radio" value="Manila" />
<label for="ballot_city_manila">Manila</label>
</div>
...
openssl req -new -sha1 -newkey rsa:1024 -nodes -keyout client.key -out request.pem
mkdir -p demoCA/newcerts
touch demoCA/index.txt
touch demoCA/index.txt.attr
vim demoCA/serial
sudo openssl ca -cert /etc/ssl/certs/ssl-cert-snakeoil.pem -keyfile /etc/ssl/private/ssl-cert-snakeoil.key -policy policy_anything -out signed.pem -infiles request.pem
sudo openssl pkcs12 -export -in signed.pem -inkey client.key -certfile /etc/ssl/certs/ssl-cert-snakeoil.pem -name "testp12" -out test-p12.p12