Skip to content

Instantly share code, notes, and snippets.

Matthew Garrett mjg59

Block or report user

Report or block mjg59

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3446f9265c2643b550e9e4db0d1bfce1
#!/usr/bin/python
import os
import socket
def encode_packet(data):
output = bytearray()
for i in range(0, len(data)):
tmpoutput = bytearray([0, data[i]])
output.extend(tmpoutput)
View gist:106150c29256830b62f06bf38b68fafd
#!/usr/bin/python
import os
import socket
def encode_packet(data):
output = bytearray()
for i in range(0, len(data)):
tmpoutput = bytearray([0, data[i]])
output.extend(tmpoutput)
View gist:c753a7cb868fbbfa83e6060c4e4d0f9d
Package | Core | CPU 0 CPU 2
| | C0 active 4.5% 8.9%
| | POLL 0.5% 2.4 ms 0.0% 0.8 ms
| | C1E-SKL 0.9% 0.4 ms 0.2% 0.5 ms
C2 (pc2) 34.2% | |
C3 (pc3) 17.6% | C3 (cc3) 0.3% | C3-SKL 0.3% 0.4 ms 0.2% 0.6 ms
C6 (pc6) 0.0% | C6 (cc6) 1.2% | C6-SKL 1.2% 0.4 ms 0.8% 1.0 ms
C7 (pc7) 0.0% | C7 (cc7) 58.7% | C7s-SKL 0.1% 2.1 ms 0.0% 0.0 ms
C8 (pc8) 0.0% | | C8-SKL 18.6% 3.3 ms 31.3% 3.6 ms
View gist:8d9d494da56fbe6d8992
commit 3f5e3bdbb45bc2cd9ae95972420eb11b0340f120
Author: Matthew Garrett <mjg59@coreos.com>
Date: Mon Feb 1 13:31:00 2016 +1100
Block most UEFI variable deletions
Some systems appear to become upset if certain UEFI non-volatile variables
are delted, to the point of no longer POSTing successfully. For a short-term
fix, let's just block deletion of most variables while we figure out a
better approach.
View gist:90446866a96e5aa5ecbf
Copyright (c) <YEAR>, <OWNER>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice
and this list of conditions.
2. Redistributions in binary form must reproduce the above copyright
notice and this list of conditions in the documentation and/or other
materials provided with the distribution.
View keybase.md

Keybase proof

I hereby claim:

  • I am mjg59 on github.
  • I am mjg59 (https://keybase.io/mjg59) on keybase.
  • I have a public key whose fingerprint is 3453 B5A2 F406 03D7 FF9F FAF0 7E0A 399D B24B 3B15

To claim this, I am signing this object:

View gist:5b6b122a042ccf3dc3f8
<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
<report_metadata>
<org_name>google.com</org_name>
<email>noreply-dmarc-support@google.com</email>
<extra_contact_info>http://support.google.com/a/bin/answer.py?answer=2466580</extra_contact_info>
<report_id>9543506933766744640</report_id>
<date_range>
<begin>1424476800</begin>
<end>1424563199</end>
View gist:b4126a1152af236882b8
<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
<report_metadata>
<org_name>google.com</org_name>
<email>noreply-dmarc-support@google.com</email>
<extra_contact_info>http://support.google.com/a/bin/answer.py?answer=2466580</extra_contact_info>
<report_id>9045660581431307587</report_id>
<date_range>
<begin>1424563200</begin>
<end>1424649599</end>
You can’t perform that action at this time.