This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| try: | |
| from BeautifulSoup import BeautifulSoup | |
| except ImportError: | |
| from bs4 import BeautifulSoup | |
| def html_to_json(content, indent=None): | |
| soup = BeautifulSoup(content, "html.parser") | |
| rows = soup.find_all("tr") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Connect to GCP Compute engine via SSH locally in Ubuntu | |
| 1. Generate ssh public private key-pair *you can skip everything just enter to create with default without pass | |
| ssh-keygen -t rsa | |
| 2. show public key | |
| cat ~/.ssh/id_rsa.pub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb help // List all comands | |
| == Adb Server | |
| adb kill-server | |
| adb start-server | |
| == Adb Reboot | |
| adb reboot | |
| adb reboot recovery | |
| adb reboot-bootloader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.google.samples.smartlock.sms_verify; | |
| import android.content.Context; | |
| import android.content.ContextWrapper; | |
| import android.content.pm.PackageManager; | |
| import android.content.pm.Signature; | |
| import android.util.Base64; | |
| import android.util.Log; | |
| import java.nio.charset.StandardCharsets; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package `in`.test.app.util | |
| import android.app.AlertDialog | |
| import android.content.Context | |
| import android.graphics.Color | |
| import android.graphics.drawable.ColorDrawable | |
| import android.util.Log | |
| import android.view.Window | |
| import android.widget.ProgressBar |