Using adb, create a backup of the app using the following command:
adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp| # | |
| # Copyright (C) 2013-2020 Vinay Sajip. New BSD License. | |
| # | |
| import os | |
| import os.path | |
| from subprocess import Popen, PIPE | |
| import sys | |
| from threading import Thread | |
| from urllib.parse import urlparse | |
| from urllib.request import urlretrieve |
| #![feature(macro_rules)] | |
| /// MIT license etc. etc. | |
| /// | |
| /// Experimenting with Python-like list comprehensions. | |
| /// | |
| /// An attempt to explore the possibility space for ergonomic improvements | |
| /// in Rust that can come post v1.0. Notice that there are not type declerations. | |
| /// Aside from the "c!" macro invocation, Rust allows for an exact copy of the | |
| /// Python comprehension syntax. |
| #!/bin/bash | |
| # by Andy Maloney | |
| # http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/ | |
| # make sure we are in the correct dir when we double-click a .command file | |
| dir=${0%/*} | |
| if [ -d "$dir" ]; then | |
| cd "$dir" | |
| fi |
| # vim: ft=gdb | |
| add-auto-load-safe-path /home/moshev/Projects/tools/moshev/gdb | |
| set non-stop on | |
| set print address on | |
| set print array on | |
| set pagination on | |
| set print pretty on | |
| set print object on | |
| set print vtbl on | |
| set breakpoint pending on |
| #include <stdio.h> | |
| #include <ctype.h> | |
| #ifndef HEXDUMP_COLS | |
| #define HEXDUMP_COLS 16 | |
| #endif | |
| void hexdump(void *mem, unsigned int len) | |
| { | |
| unsigned int i, j; |
Using adb, create a backup of the app using the following command:
adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp| package logging | |
| import ( | |
| "github.com/rs/zerolog" | |
| "github.com/rs/zerolog/log" | |
| "gopkg.in/natefinch/lumberjack.v2" | |
| "os" | |
| "path" | |
| "io" | |
| ) |
| ## Create the virtual environment | |
| conda create -n 'environment_name' | |
| ## Activate the virtual environment | |
| conda activate 'environment_name' | |
| ## Make sure that ipykernel is installed | |
| pip install --user ipykernel | |
| ## Add the new virtual environment to Jupyter |
| // ethers.js v5 | |
| import { ethers, network } from "hardhat"; | |
| import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; | |
| async function impersonate( | |
| who: string, | |
| f: (signer: SignerWithAddress) => Promise<void> | |
| ): Promise<void> { | |
| await network.provider.request({ |