This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
from bs4 import BeautifulSoup | |
with open(sys.argv[1]) as in_f: | |
soup = BeautifulSoup(in_f.read(), 'html.parser') | |
data = json.loads(soup.find('script', {'id': '__NEXT_DATA__'}).text) | |
for entry in data['props']['pageProps']['serverResponse']['data']['linear_conversation']: | |
if msg := entry.get('message'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: Andrew Drake <[email protected]> | |
* Please feel free to email me or comment on this Gist if you have any questions. | |
* | |
* On the SY-T18 MicroSD reader, there is a bug when the following reads occur | |
* back-to-back: | |
* | |
* 1. 129 or more sectors, anywhere | |
* 2. 1 or more sectors, exactly 128 sectors after the end of the previous read | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import Counter | |
from datetime import datetime, timedelta | |
from github import Github | |
API_KEY = '...' | |
CUTOFF = datetime.now() - timedelta(days=5) | |
ORGANIZATION = '...' | |
def analyze_repo(repo): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/package.json b/package.json | |
index 0c19eda2..d2f8d615 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -314,7 +314,7 @@ | |
"node_modules/zkgroup/libzkgroup.*" | |
], | |
"target": [ | |
- "deb" | |
+ "rpm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Only in amzn2/rpmbuild/SOURCES: gnupg-2.0-Fix-CVE-2014-4617.patch | |
diff -ru centos/rpmbuild/SPECS/gnupg2.spec amzn2/rpmbuild/SPECS/gnupg2.spec | |
--- centos/rpmbuild/SPECS/gnupg2.spec 2018-07-13 05:57:37.000000000 -0700 | |
+++ amzn2/rpmbuild/SPECS/gnupg2.spec 2019-04-29 11:20:48.000000000 -0700 | |
@@ -1,7 +1,10 @@ | |
+%define _trivial .0 | |
+%define _buildid .3 | |
+ | |
Summary: Utility for secure communication and data storage | |
Name: gnupg2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fix Paper slides | |
// @namespace https://hax.so/ | |
// @version 0.1 | |
// @description Adjusts the "slide" transition time of Dropbox Paper presentations | |
// @author Andrew Drake <[email protected]> | |
// @match https://paper.dropbox.com/doc/present/* | |
// @run-at document-body | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name De-inspire Paper | |
// @namespace https://hax.so/ | |
// @version 0.2 | |
// @description Remove placeholder text in Dropbox Paper | |
// @author Andrew Drake <[email protected]> | |
// @match https://paper.dropbox.com/doc/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name De-inspire Paper | |
// @namespace https://hax.so/ | |
// @version 0.1 | |
// @description Remove placeholder text in Dropbox Paper | |
// @author Andrew Drake <[email protected]> | |
// @match https://paper.dropbox.com/doc/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am drakedevel on github. | |
* I am drakedevel (https://keybase.io/drakedevel) on keybase. | |
* I have a public key ASCYsg_wR56dMt27Dik62cPLzFOBz9_J72i8h_EXnUFbCQo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import capnp # noqa | |
from bug_capnp import Msg | |
with open('test.bin', 'rb') as f: | |
for m in Msg.read_multiple(f): | |
pass |
NewerOlder