Skip to content

Instantly share code, notes, and snippets.

Install 'Vanilla cookie manager' extension.
Check 'Protect whitelisted cookies' checkbox. And register URLs which will not be deleted.
Enable 'Keep local data only until I quit my browser' option in Chromium.

#!/bin/sh
# Check usage for AMobile, a.k.a. AnnexTelecom.
show_usage ()
{
local name=`basename "$0"`
cat << EOF
Usage: $name [OPTIONS] -i ID -p PASSWORD
import argparse
import requests
from lxml import html
import sys
def main():
ap = argparse.ArgumentParser(description="Get cell phone usage from AMobile.")
ap.add_argument("-i", required=True, help="User ID", dest="id")
ap.add_argument("-p", required=True, help="User Password", dest="pw")
# -*- coding: utf-8 -*-
# Extract sprites
import argparse
import struct
import os
# mode 13h resolution
MONITOR_WIDTH = 320
# -*- coding: utf-8 -*-
import argparse
import struct
import os
parser = argparse.ArgumentParser(description='Check integrity of a sprite file.')
parser.add_argument('-f', required=True, help='sprite file', dest='spr')
args = parser.parse_args()
# -*- coding: utf-8 -*-
import argparse
import struct
import os
parser = argparse.ArgumentParser(description='Check integrity of a sprite file.')
parser.add_argument('-f', required=True, help='sprite file', dest='spr')
args = parser.parse_args()
# -*- coding: utf-8 -*-
# Extract sprites
import argparse
import struct
import os
# mode 13h resolution
MONITOR_WIDTH = 320
# -*- coding: utf-8 -*-
# Extract sprites
import argparse
import struct
import os
# mode 13h resolution
MONITOR_WIDTH = 320
# -*- coding: utf-8 -*-
# Extract sprites
import argparse
import struct
import os
# mode 13h resolution
MONITOR_WIDTH = 320