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:
install Android Studio (google it)
configure your shell (considering Linux+Bash):
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
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` |
Install it by following the instructions on the web site.
Make sure your directories and files have the right permissions:
find . -type f -exec chmod 644 {} ; find . -type d -exec chmod 755 {} ;
This is the proper way to have HTML templates and clone them in Javascript.
First add the template to your HTML:
<template id="example-template">
fetch()
pointing to other domains. See this