Skip to content

Instantly share code, notes, and snippets.

View soham2008xyz's full-sized avatar
👨‍💻
Sprint-mode ON!

Soham Banerjee soham2008xyz

👨‍💻
Sprint-mode ON!
View GitHub Profile
@soham2008xyz
soham2008xyz / react-developer-exercise.md
Created November 8, 2023 09:35
React.js developer onboarding hands-on exercise simulating a real-world app development scenario (demo)

React Developer Onboarding Exercise

Problem Statement

You are tasked with developing a web application that allows users to search for and view information about movies. The application should be built using React and should simulate a real-world app development environment. The application should have the following features:

  1. A search bar that allows users to search for movies by title or keyword.
  2. A results page that displays a list of movies matching the user's search criteria.
  3. A movie details page that displays detailed information about a selected movie, including its title, release date, rating, and synopsis.
  4. A responsive design that works well on both desktop and mobile devices.
@soham2008xyz
soham2008xyz / react-junior-developer-problem-statement.md
Created November 8, 2023 09:30
React Junior Developer Onboarding Problem Statement

Problem Statement: React.js Developer Onboarding Hands-on Exercise

E-Shopify - Your Online Fashion Store (Demo)

Background

As part of the onboarding process for our React.js developers, we want to simulate a real-world development scenario. Consider the following scenario - Renderbit Technologies is collaborating with a new e-commerce startup, "E-Shopify," to build a modern online fashion store.

Project Description

@soham2008xyz
soham2008xyz / qodana.yml
Created October 31, 2023 13:16
JetBrains Qodana code inspection config for Laravel/PHP projects
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
# Specify inspection profile for code analysis
profile:
name: qodana.starter
# Enable inspections
# include:
@soham2008xyz
soham2008xyz / cs_launch_options.txt
Last active October 20, 2023 15:43
CS2/CS:GO Launch Options
CS:GO Launch Options
-language bananagaming -tickrate 64 +fps_max 0 -novid -nojoy -nothreadedsockets -console -fullscreen -limitvsconst -forcenovsync -softparticlesdefaultoff +mat_queue_mode 2 +r_dynamic 0 -width 1600 -height 900
CS2 Launch Options
-console -novid -nojoy -nothreadedsockets -language bananagaming -fullscreen -width 1280 -height 720 +exec autoexec
@soham2008xyz
soham2008xyz / doOnlineProcess.kt
Created October 6, 2023 13:44
doOnlineProcess.kt
private fun doOnlineProcess(): String {
val onlineResult = StringBuffer()
val rEMVCardData: CardData = rEMV.uSDKprocessCardRecord(null)
cardDataBundle = Bundle()
cardDataBundle?.putParcelable(Flags.CARD_DATA_PARCEL, rEMVCardData)
// TODO: 5A33 to be set in case the transaction is not completed from the server end
// All the responses received from the server is to be converted to HEX
@soham2008xyz
soham2008xyz / react-native-developer-exercise.md
Last active June 5, 2023 07:10
React Native developer exercise

React Native developer exercise

© 2023 Renderbit Technologies LLP.

Prerequisites

You should be familiar with JavaScript (ES6), React, React Native, Git, GitHub and Figma.

Getting Started

@soham2008xyz
soham2008xyz / build.gradle
Created March 12, 2023 19:23
Gradle build script for Javadoc generation
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
@soham2008xyz
soham2008xyz / keybase.md
Created August 8, 2022 16:18
Keybase identity verification

Keybase proof

I hereby claim:

  • I am soham2008xyz on github.
  • I am soham2008xyz (https://keybase.io/soham2008xyz) on keybase.
  • I have a public key whose fingerprint is AF32 C2E6 50D7 9C13 5A03 B829 8B1C AFB4 C56F 8E12

To claim this, I am signing this object:

@soham2008xyz
soham2008xyz / SecureHeadersMiddleware.php
Created October 28, 2021 06:09 — forked from chetans9/SecureHeadersMiddleware.php
Laravel Secure Headers Middleware
<?php
namespace App\Http\Middleware;
use Closure;
class SecureHeadersMiddleware
{
// Enumerate headers which you do not want in your application's responses.
// Great starting point would be to go check out @Scott_Helme's:
// https://securityheaders.com/
@soham2008xyz
soham2008xyz / php-memory-limits.sh
Last active August 5, 2021 07:26
Configure memory limits dynamically for PHP-FPM on Bitnami GCP VMs
#!/bin/bash
# Set the max processes and spare processes according to the details provided by this machine instance
# Set some sensible defaults
DEFAULT_PROCESS_MEMORY="120"
MAX_REQUESTS="120"
PM_TYPE="dynamic"
# Calculate avg. memory usage per PHP-FPM process per request so far