Skip to content

Instantly share code, notes, and snippets.

View rpendleton's full-sized avatar

Ryan Pendleton rpendleton

View GitHub Profile
@rpendleton
rpendleton / Xcode 12A7208 vs 12A7209.txt
Last active September 16, 2020 06:38
Xcode 12A7208 vs 12A7209
$ shasum Xcode_12_GM_seed_12A720*
bc0a1341ee36d1b19d4657d4f1d084a7cd282d23 Xcode_12_GM_seed_12A7208.xip
1b69c0f8e7b35c1456211143bbb06c671fcfaaec Xcode_12_GM_seed_12A7209.xip
$ duplicacy check -tabular
snap | rev. | | files | bytes | chunks | bytes | uniq | bytes | new | bytes |
xcode | b6 | @ 2020-09-15 22:29 -hash | 424574 | 29,559M | 5621 | 15,522M | 4505 | 11,669M | 5621 | 15,522M |
xcode | gm-12A7208 | @ 2020-09-15 22:43 -hash | 448744 | 29,803M | 5657 | 15,664M | 326 | 734,533K | 4541 | 11,811M |
xcode | gm-12A7209 | @ 2020-09-15 23:58 -hash | 448762 | 29,803M | 5630 | 15,664M | 299 | 734,555K | 299 | 734,555K |
xcode | all. | | | | 10461 | 28,051M | 10461 | 28,051M | | |
@rpendleton
rpendleton / compare.py
Last active April 19, 2020 23:48
finds matching hashes between two Format-List outputs containing Hash and Path columns
#!/usr/bin/env python3
import json
import sys
error_while_reading = False
plaintiff_files = {}
matches = {}
plaintiff_count = 0
#include <iostream>
#include <algorithm>
#include <vector>
template <typename ForwardIterator>
size_t prime_sieve(ForwardIterator start, ForwardIterator end)
{
// clear the buffer with 0
std::fill(start, end, 0);
// mark composites with 1
@rpendleton
rpendleton / rjs-interceptor.js
Last active October 20, 2015 00:44
Allows intercepting require.js define events. This is useful in userscripts that modify sites created using require.js
/* jshint -W097 */
/* global require: true */
'use strict';
// If you want to hide categories from the budget overview, you can put their
// id's here. They will still be visibile on the budgets page.
var hide_budgets = [1404, 506, 204, 103];
//! require.js events