Skip to content

Instantly share code, notes, and snippets.

View pzb's full-sized avatar

Peter Bowen pzb

View GitHub Profile
TBSCertificate ::= SEQUENCE {
[0] EXPLICIT INTEGER OPTIONAL,
INTEGER,
SEQUENCE,
SEQUENCE,
SEQUENCE,
SEQUENCE,
SEQUENCE,
[1] IMPLICIT BIT STRING OPTIONAL,
[2] IMPLICIT BIT STRING OPTIONAL,
@pzb
pzb / uc.rb
Created September 23, 2019 22:35
#!/usr/bin/env ruby
def hex_to_bin(s)
[s].pack('H*')
end
def incline_to_bin(s)
# semicolon indicates a commment
# comment can be alone on a line or at the end of the line
l = s.strip.sub(/(^|\s);.*$/,'')
diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
index 64037895b085..d598d65db32c 100644
--- a/arch/x86/boot/compressed/head_64.S
+++ b/arch/x86/boot/compressed/head_64.S
@@ -33,7 +33,6 @@
#include <asm/processor-flags.h>
#include <asm/asm-offsets.h>
#include <asm/bootparam.h>
-#include "pgtable.h"
#!/usr/bin/env ruby
require 'nokogiri'
require 'net/http'
require 'uri'
require 'socket'
# First grab the reachability page and parse it
uri = URI.parse('http://ec2-reachability.amazonaws.com/')
r = Net::HTTP.get_response(uri)
$ devicectl dumpstate
Found localbridge (bridge)
State: connected (connectable)
UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Product Type: iBridge2,5
OS Build: 3.1 (16P1065)
Messaging Protocol Version: 1
Heartbeat:
Last successful heartbeat sent 11.214s ago, received 11.210s ago (took 0.004s)
#!/usr/bin/env ruby
require 'nokogiri'
require 'net/http'
require 'uri'
require 'socket'
# First grab the reachability page and parse it
uri = URI.parse('http://ec2-reachability.amazonaws.com/')
r = Net::HTTP.get_response(uri)
#!/usr/bin/env ruby
require 'nokogiri'
require 'net/http'
require 'uri'
require 'socket'
# First grab the reachability page and parse it
uri = URI.parse('http://ec2-reachability.amazonaws.com/')
r = Net::HTTP.get_response(uri)
@pzb
pzb / keybase.md
Created December 27, 2017 18:06
keybase.md

Keybase proof

I hereby claim:

  • I am pzb on github.
  • I am pzb (https://keybase.io/pzb) on keybase.
  • I have a public key whose fingerprint is AFA1 5E7E 5947 02AF 22E2 1DA8 65F1 2718 A06E 455C

To claim this, I am signing this object:

Cluster #1: 764 unexpired CA certs
Root: CN=AAA Certificate Services,O=Comodo CA Limited,L=Salford,ST=Greater Manchester,C=GB
Root: CN=AddTrust Class 1 CA Root,OU=AddTrust TTP Network,O=AddTrust AB,C=SE
Root: CN=AddTrust External CA Root,OU=AddTrust External TTP Network,O=AddTrust AB,C=SE
Root: CN=AddTrust Qualified CA Root,OU=AddTrust TTP Network,O=AddTrust AB,C=SE
Root: CN=CA 沃通根证书,O=WoSign CA Limited,C=CN
Root: CN=COMODO Certification Authority,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
Root: CN=COMODO ECC Certification Authority,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
Root: CN=COMODO RSA Certification Authority,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
Root: CN=Certification Authority of WoSign G2,O=WoSign CA Limited,C=CN
Cluster #1: 764 unexpired CA certs
Root: CN=AAA Certificate Services,O=Comodo CA Limited,L=Salford,ST=Greater Manchester,C=GB
Root: CN=AddTrust Class 1 CA Root,OU=AddTrust TTP Network,O=AddTrust AB,C=SE
Root: CN=AddTrust External CA Root,OU=AddTrust External TTP Network,O=AddTrust AB,C=SE
Root: CN=AddTrust Qualified CA Root,OU=AddTrust TTP Network,O=AddTrust AB,C=SE
Root: CN=CA 沃通根证书,O=WoSign CA Limited,C=CN
Root: CN=COMODO Certification Authority,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
Root: CN=COMODO ECC Certification Authority,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
Root: CN=COMODO RSA Certification Authority,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
Root: CN=Certification Authority of WoSign G2,O=WoSign CA Limited,C=CN