Skip to content

Instantly share code, notes, and snippets.

import requests
import re,os
import json
import xml.etree.ElementTree as ET
import string
import datetime
import zipfile
# name mapper for mapping pinyin with name
nameMap = {
@taoalpha
taoalpha / deleteKindleItems.js
Last active September 12, 2016 22:50
delete kindle items
// bulk deletion for kindle items
function deleteKindleItems() {
if ($('.contentListIcon_myx').length > 0) {
// select first 10
$('.contentListIcon_myx').map(function(i,v){ if (i < 10) {$(v).click()}else{return}});
// delete
$('#contentAction_delete_myx').click();
// yes to delete
@taoalpha
taoalpha / init.sh
Last active September 28, 2017 13:17
osx initial script
#!/usr/bin/env bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `init.sh` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
###############################################################################
# Step 1: Update the OS and Install Xcode Tools #

Keybase proof

I hereby claim:

  • I am taoalpha on github.
  • I am taoalpha (https://keybase.io/taoalpha) on keybase.
  • I have a public key whose fingerprint is D228 26EC DB47 884B A673 0720 8D87 084B 0EBF 2626

To claim this, I am signing this object:

We couldn’t find that file to show.
{
"last_update": 1593626766189,
"entries": [
{
"country": "China",
"city": "HeNan",
"start_date": "1992",
"end_date": "1993",
"desc": "",
"items": [
name description
antigravity-quota
Check Antigravity API quota status for all configured Google accounts

Antigravity Quota Checker

Check your Antigravity API quota status using curl commands.

Prerequisites

  • Antigravity accounts configured in ~/.config/opencode/antigravity-accounts.json
  • curl and jq installed

Usage