I hereby claim:
- I am antojoseph on github.
- I am antojoseph (https://keybase.io/antojoseph) on keybase.
- I have a public key ASBvXJXLbmmvr3CEbfyqvz8dmwcU9moILRp0nuM1B9ihZAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import sys | |
import re | |
import urllib2 | |
import base64 | |
print(sys.version) | |
print(sys.path) | |
pattern = r"content-type:.application/json" | |
import tensorflow as tf | |
print(tf.__version__) | |
class myCallback(tf.keras.callbacks.Callback): | |
def on_epoch_end(self, epoch, logs={}): | |
if(logs.get('loss')<0.25): | |
print("\nReached 75% accuracy so cancelling training!") | |
self.model.stop_training = True | |
callbacks = myCallback() |
#import tensorflow 1.x as this is required for older codebases,don't forget to restart the runtime | |
%tensorflow_version 1.x | |
print('Tensorflow version: {}'.format(tf.__version__) ) | |
#sometimes, you need a specific version of tensorflow,for eg: stylegan | |
%tensorflow_version 2.x | |
!pip uninstall -y tensorflow | |
!pip install tensorflow-gpu==1.14.0 | |
#Select GPU as the accelarator for this to work! |
export burpsuite/proxy certificate | |
install cert on android device | |
su and remount system as rw : mount -o rw,remount,rw /system | |
find installed cert here /data/misc/keystore/user_0 | |
verify with openssl x509 -in cert.cer -inform der -text | |
copy cert from /data/misc/user/0/cacerts-added/cert.0 to /system/etc/security/cacerts/ | |
Tip : null out /data/misc/keychain/pins to remove any ssl pins made by Android |
var bip39 = require('bip39'); | |
var HDKey = require('hdkey'); | |
var ethhdkey = require('ethereumjs-wallet/hdkey'); | |
const mnemonic = bip39.generateMnemonic(); | |
const seed = bip39.mnemonicToSeedSync(mnemonic).toString('hex'); | |
var hdkey = HDKey.fromMasterSeed(Buffer.from(seed, 'hex')) | |
console.log(hdkey.publicExtendedKey) |
var util = require('ethereumjs-util'); | |
const privateKey = 'your_private_key_here; | |
const privatKeyBuffer =new Buffer.from(privateKey,'hex'); | |
var publicKey = util.privateToPublic(privatKeyBuffer); | |
console.log(util.bufferToHex(publicKey)); | |
console.log("address:",util.bufferToHex(util.publicToAddress(public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 | |
import json | |
# Set up RPC providers for both chains | |
rpc_url = 'https://rpc.mantle.xyz/' | |
mainnet_rpc_url = 'https://rpc.ankr.com/eth' | |
# Initialize Web3 connections | |
web3 = Web3(Web3.HTTPProvider(rpc_url)) | |
mainnet_web3 = Web3(Web3.HTTPProvider(mainnet_rpc_url)) |
❯ docker login | |
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one. | |
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/ | |
Username: blocksek | |
Password: | |
Login Succeeded | |
❯ docker push blocksek/test |