List files touched:
git diff --stat commit-1 commit-2
List change counts:
git diff --shortstat commit-1 commit-2 | cat
List authors between two commits:
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
/** | |
* Shows how a timer fails to execute when we block the main thread. See `setIntervalDoesNotWorkWithBlockingWait()` for | |
* a solution to this. | |
* @returns {void} | |
*/ |
#!/usr/bin/env node | |
const | |
path = require("path"), | |
fs = require("fs"); | |
/** | |
* List all files in a directory recursively in a synchronous fashion | |
* | |
* @param {String} dir |
class FileDropZone { | |
/** | |
* @param {HTMLElement|String} dropZoneElement | |
*/ | |
constructor (dropZoneElement) { | |
dropZoneElement = typeof dropZoneElement === "string" ? document.getElementById(dropZoneElement) : dropZoneElement; | |
dropZoneElement.addEventListener("drop", this.onDrop.bind(this)); | |
dropZoneElement.addEventListener("dragover", event => event.preventDefault()); |
List files touched:
git diff --stat commit-1 commit-2
List change counts:
git diff --shortstat commit-1 commit-2 | cat
List authors between two commits:
Starting with Android Nougat, Google changed the way apps handle user certificates:
Apps that target API Level 24 and above no longer trust user or admin-added CAs for secure connections, by default.
This means that certificates issued by applications like [Charles][charles] or [mitmproxy][mitmproxy] are no longer accepted, so these proxies won't work for HTTPS traffic.
This tutorial explains what needs to be done to overcome that restriction and be able to sniff any Android app's HTTPS requests.
// @include my-script.js | |
// @include "some other script.js" | |
/* @include third-script.js */ | |
setup(); // `setup` is defined in `my-script.js` |
fetch()
pointing to other domains. See this