Skip to content

Instantly share code, notes, and snippets.

View gptshubham595's full-sized avatar
:octocat:
Sorry, Important ones are Private.

Shubham gupta Ggps gptshubham595

:octocat:
Sorry, Important ones are Private.
View GitHub Profile
@gptshubham595
gptshubham595 / AudioPitch.kt
Last active May 7, 2023 21:57
Change pitch android
import java.lang.Math.cos
import kotlin.math.cos
import kotlin.math.floor
import kotlin.math.roundToInt
object AudioPitch {
//region Private Static Memebers
private const val MAX_FRAME_LENGTH = 8192
private const val M_PI = 3.14159265358979323846
google dork -> site:.co.uk inurl:"responsible disclosure"
https://registry.internetnz.nz/about/vulnerability-disclosure-policy/
http://www.123contactform.com/security-acknowledgements.htm
https://18f.gsa.gov/vulnerability-disclosure-policy/
https://support.1password.com/security-assessments/
https://www.23andme.com/security-report/
https://www.abnamro.com/en/footer/responsible-disclosure.html
https://www.accenture.com/us-en/company-accenture-responsible-disclosure
https://www.accredible.com/white_hat/
https://www.acquia.com/how-report-security-issue
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File sharing Azure</title>
</head>
<body>
<!--
@gptshubham595
gptshubham595 / HTTPTrigger1.js
Last active January 26, 2022 19:02
Azure Storage Portal Function
const {
Aborter,
BlobURL,
BlockBlobURL,
BlobServiceClient,
ContainerURL,
ServiceURL,
StorageURL,
SharedKeyCredential,
AnonymousCredential,
@gptshubham595
gptshubham595 / flume-conf.properties
Last active January 16, 2022 20:16
Twitter Crypto Flume
TwitterAgent.sources = Twitter
TwitterAgent.channels = MemChannel
TwitterAgent.sinks = HDFS
TwitterAgent.sources.Twitter.type = org.apache.flume.source.twitter.TwitterSource
TwitterAgent.sources.Twitter.channels = MemChannel
TwitterAgent.sources.Twitter.consumerKey= API_KEY
TwitterAgent.sources.Twitter.consumerSecret= API_SECRET_KEY
TwitterAgent.sources.Twitter.accessToken= ACCESS_TOKEN
TwitterAgent.sources.Twitter.accessTokenSecret= ACCESS_TOKEN_SECRET
TwitterAgent.sources.Twitter.keywords= elon musk, doge, doge coin, bitcoin, crypto, forex, tesla, coin, rocket, ether, mining
@gptshubham595
gptshubham595 / Wordcounter.java
Created January 8, 2022 22:13
WordCounter Hadoop java
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
@gptshubham595
gptshubham595 / transcript
Created July 28, 2021 15:21
IITG Transcript steps
https://www.iitg.ac.in/acad/cert/alumni_duplicate_transcript.php
Account details to pay 100 Rs
Now send mail back to transcript@iitg.ac.in
<blockquote class="imgur-embed-pub" lang="en" data-id="a/9ioyE4H" ><a href="//imgur.com/a/9ioyE4H">transcript iitg</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
@gptshubham595
gptshubham595 / ERRORSOLVE.BAT
Created July 28, 2021 15:11
Windows 11 (10.0.22000.100) (KB5004300) CUMULATIVE ERROR RESOLVE (RUN AS ADMIN)
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*"
rmdir %systemroot%\SoftwareDistribution /S /Q
rmdir %systemroot%\system32\catroot2 /S /Q
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
cd /d %windir%\system32
@gptshubham595
gptshubham595 / DISABLE_DEV_TOOLS.js
Last active August 11, 2022 13:06
DISABLE DEVELOPERS OPTION
! function(e, t) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).hotkeys = t()
}(this, (function() {
"use strict";
function e(t) {
return (e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics.pairwise import cosine_similarity as cos_sim
def get_title_from_index(index):
return df[df.index == index]["title"].values[0]
def get_index_from_title(title):
return df[df.title == title]["index"].values[0]