Skip to content

Instantly share code, notes, and snippets.

View coolnikhilmaurya's full-sized avatar
😎
Building something meaningful...

Nikhil Maurya coolnikhilmaurya

😎
Building something meaningful...
View GitHub Profile
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")
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
@coolnikhilmaurya
coolnikhilmaurya / AdbCommands
Created April 26, 2020 02:33 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
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;
@coolnikhilmaurya
coolnikhilmaurya / ProgressUtils.kt
Created March 29, 2019 11:47
A simple singletons kotlin class containing methods for displaying and hiding ProgressBar with fullscreen transparent background
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