git clone https://gist.github.com/d75b0fc8c74b81d9c1a5.git
cd d75b0fc8c74b81d9c1a5
./androidClear <search_text>
# type a number at the prompt to clear an app's data
# warning: this is the same as running "clear data" from the app manager
This file contains 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
/* | |
* Example of handling Reorgs when you don't care about scanning (like lightwalletd). Coroutines and other details have also been removed for simplicity. | |
*/ | |
fun start() { | |
do { | |
// we must increase the number of blocks that we download after each failure in order to handle larger reorgs | |
retryUpTo(config.retries) { | |
val result = processNewBlocks() | |
// immediately process again after failures in order to download new blocks right away | |
if (result > -1) { |
This file contains 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
#! /usr/bin/env python3 | |
import re | |
import requests | |
import json | |
from datetime import datetime | |
link = "http://developer.android.com/about/dashboards/index.html" | |
contents = requests.get(link).text | |
currentYear = datetime.now().year |
This file contains 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
#!/bin/bash | |
folders=$@ | |
echo -e "\nFolders: $folders" | |
read -p "Enter the command you'd like to run in each of these folders: " commands | |
echo | |
for f in $folders | |
do |