Using adb, create a backup of the app using the following command:
adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp
Using adb, create a backup of the app using the following command:
adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp
def get_or_create(session, model, defaults=None, **kwargs): | |
""" | |
Get or create a model instance while preserving integrity. | |
""" | |
try: | |
return session.query(model).filter_by(**kwargs).one(), False | |
except NoResultFound: | |
if defaults is not None: | |
kwargs.update(defaults) |
#!/usr/bin/env python | |
import array | |
import blowfish | |
import os | |
import sys | |
import struct | |
from io import BytesIO | |
from itertools import chain | |
# License: CC0 (https://creativecommons.org/share-your-work/public-domain/cc0/) | |
import csv | |
import getpass | |
import sys | |
from pykeepass import PyKeePass | |
class BadData(Exception): | |
pass |
Default patch server:
#!BPY | |
# """ | |
# Name: 'M2 Model (.m2)...' | |
# Blender: 243 | |
# Group: 'Import' | |
# Tooltip: 'Import a M2 Blizzard Model File' | |
# """ | |
__author__ = "Richard Adenling" |
function patchnotes { | |
ua="Battle.net/1.0.8.4217" | |
_baseurl="https://us.battle.net/connect/" | |
usage="usage: $0 <product> [live|ptr|beta] [language]\nproduct is one of wow, s2, d3, heroes, wtcg" | |
hash lynx 2>/dev/null || { | |
>&2 echo "You need to install Lynx first." | |
return 1 | |
} |
class APIKeyMixin: | |
@classmethod | |
def from_env(cls: Type[T], livemode: bool = False) -> T: | |
key_id = os.environ.get("API_KEY_ID", "") | |
secret_key = os.environ.get("API_SECRET_KEY", "") | |
if not key_id or not secret_key: | |
raise RuntimeError( | |
"Environment variables `API_KEY_ID` and `API_SECRET_KEY` need to be defined." |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
from argparse import ArgumentParser | |
from xml.dom import minidom | |
try: | |
from urllib.request import urlopen | |
from urllib.parse import urlencode | |
except ImportError: |
# Generated migration file | |
import django.db.models.constraints | |
import django.db.models.deletion | |
import django.db.models.expressions | |
import financica.contrib.constraints | |
import financica.contrib.pg_functions | |
from django.db import migrations | |