Skip to content

Instantly share code, notes, and snippets.

View shubhamvashisht's full-sized avatar
🌏
working from home

Shubham Vashisht shubhamvashisht

🌏
working from home
View GitHub Profile
package com.radio.pocketfm.app.helpers
import android.content.Context
import android.os.Bundle
import androidx.work.*
import com.radio.pocketfm.app.RadioLyApplication
import com.radio.pocketfm.app.mobile.notifications.NotificationHandler
import com.radio.pocketfm.app.mobile.notifications.NotificationKeys
import com.radio.pocketfm.app.shared.CommonLib
import kotlinx.coroutines.CoroutineScope
import android.content.Context
import com.google.android.gms.ads.AdListener
import com.google.android.gms.ads.AdSize
import com.google.android.gms.ads.LoadAdError
import com.google.android.gms.ads.admanager.AdManagerAdRequest
import com.google.android.gms.ads.admanager.AdManagerAdView
import com.radio.pocketfm.app.ads.models.SizeModel
import com.radio.pocketfm.app.ads.listeners.AdStatusListener
import com.radio.pocketfm.app.helpers.*
from locust import HttpUser, task, between
#globals
hostBaseUrl = "http://13.229.188.140/v2"
showDetailsEndpoint = '/content_api/show.get_details?show_id=286f0228a0151d620929e504844bf3483f442793&curr_ptr=0&info_level=max&override_end_index=false&caller_uid=f0b58f5f38ecf6c665201d828bb576592f791d78&add_combo=false&is_unlocked=true&from_queue=false&last_seq_num=0'
feedDetailsEndpoint = '/feed_api/get_similar_items?entity_id=d4201143a0aeed484b71cee2707f6ebb4ca41188&entity_type=story&recommendation_type=discovery'
class RandomUser(HttpUser):
wait_time = between(0.03,0.05)
host = hostBaseUrl
@shubhamvashisht
shubhamvashisht / GSoC_2018_work_product.md
Last active February 1, 2024 09:36
This is summary of my GSoC project with Jboss by Red hat.

GSOC 2018 Work product submission.

This is summary of my GSoC project with Jboss by Red hat. In this gist i have included some of the major features i implemented during the programe.

Strimzi - Bridging HTTP to Apache Kafka

Strimzi is a project about running Apache Kafka on platforms like kubernetes and openshift. It contains two main modules.
  • Strimzi-Kafka-operator
  • AMQP-Kafka-bridge.
The project idea for GSoC was to add HTTP support to the bridge so that it can listen to http clients and bridge them to Kafka.
private static final int PICK_VIDEO = 0;
public void pickImage() {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("video/*");
startActivityForResult(intent, PICK_VIDEO);
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
@shubhamvashisht
shubhamvashisht / Google_foobar_decrypt.py
Created August 21, 2017 01:56
How to decode Google foo.bar 2017 encrypted key.
#Encrypting Google foo.bar 2017 encrypted message
#Algo-> Decode the message string to base64 bytes.
# and do XOR of decoded bytes with your Google username.
import base64
#The encrypted key
message=''
#Your Google username