Skip to content

Instantly share code, notes, and snippets.

View abhisekpadhi's full-sized avatar
🧪
Experimenting...

Abhisek Padhi abhisekpadhi

🧪
Experimenting...
View GitHub Profile
@abhisekpadhi
abhisekpadhi / settings-myfilter.txt
Created October 23, 2023 06:18
ublock origin youtube filter - 2023 Oct
youtube.com##+js(set, yt.config_.openPopupConfig.supportedPopups.adBlockMessageViewModel, false)
youtube.com##+js(set, Object.prototype.adBlocksFound, 0)
youtube.com##+js(set, ytplayer.config.args.raw_player_response.adPlacements, [])
youtube.com##+js(set, Object.prototype.hasAllowedInstreamAd, true)
@abhisekpadhi
abhisekpadhi / engineering-philosophy.md
Created August 3, 2023 20:00
Engineering philosophy

Why monorepo?

  • 🚀 Team can move fast: reduced context switching
  • ♥️ Developer experience: Code sharing, consistent tooling

General coding sanity:

  • Do not prematurely optimise. Do not create new file for a function that is not going to be shared by more than 1 file, only to clean up cluttered code. Keep related things together. Don't prematurely break a file into multiple files just because it looks cluttered. The best reason to declutter should be few functions are shared across multiple files. The file is very big 5K-10K lines of code, opening and closing takes time because it may clog up the buffer.

  • Do not group functionality based on the tech requirement. Group them based on business needs. In short term it will seem cool and clean but in longer term it becomes a bottleneck with a large team. The end goal of code organisation is that - when a new engineer joins, he/she must be able to grasp the business functionality just by plain reading the code.

@abhisekpadhi
abhisekpadhi / indian_names.json
Last active July 22, 2023 11:27
Indian names
["barjraj","ramdin verma","sharat chandran","birender mandal","amit","kushal","kasid","shiv prakash","vikram singh","sanjay","abhi","ram dutt gupta","khadak singh","gurmit singh","chanderpal","aman","khursid","rajeev","durgesh","nahar singh","ram kumar","sunder paal","maansingh aswal","rohit","rohit","sparsh","santosh","santosh","punit khandelwal","dinesh","gulshan","arvind kumar yadav","nausad","gurmit singh","md. afsar","shiv shakti singh","moti lal","kausal kumar","rohit","rohit","mohabbat ali","raj kumar","jaswant singh","sevak @ pitambar lal","chotelal","amit","rupesh","midda","dharam singh","manoj yadav @ manoj","ram singh","preetam kumar","ram kumar","sarain","pankaj kumar","sheak shakir","riyasat ali","vinit katariya","sumit","arindra","kali charan","badshya khan","vikash","devinder chadda","aman","mohan singh","hemant","shivam","yash mittal","aakash","chandesh","sumit mitra","supriyal sen","gajender singh @ goldy","pooran chand sharma","irfan","azaruddin","mukul yadav","pooran chand sharma","manoj","
@abhisekpadhi
abhisekpadhi / gist:e0fbabf78e1004a0e261912687289256
Created December 25, 2021 15:00
cloudflare next js static site Failed: an internal error occurred
20:03:07.364 Initializing build environment. This may take up to a few minutes to complete
20:05:31.047 Success: Finished initializing build environment
20:05:31.047 Cloning repository...
20:05:33.574 Success: Finished cloning repository files
20:05:33.731 Installing dependencies
20:05:33.734 Python version set to 2.7
20:05:34.729 Downloading and installing node v14.17.6...
20:05:34.917 Downloading https://nodejs.org/dist/v14.17.6/node-v14.17.6-linux-x64.tar.xz...
20:05:35.158 Computing checksum with sha256sum
20:05:35.302 Checksums matched!
@abhisekpadhi
abhisekpadhi / server_config.json
Created May 13, 2020 07:14
consul server config
{
"server" : true,
"datacenter" : "abhisek-local",
"data_dir" : "/Users/abhisek.padhi/consuldata",
"encrypt" : "2zEv+mV4jJ1SX2DfxqRlIA==",
"log_level" : "INFO",
"enable_syslog" : true,
"disable_update_check": true,
"start_join" : ["127.0.0.1"],
"node_name": "abhisek-macbook",
@abhisekpadhi
abhisekpadhi / Controller.kt
Created April 23, 2020 07:25
Error creating bean with name 'requestMappingHandlerMapping' ... Unsupported suspending handler method detected:
@RestController
@RequestMapping("/account/v1")
class UserAccountResourceV1 {
@GetMapping("/username-taken", produces = [MediaType.TEXT_PLAIN_VALUE])
suspend fun userNameTaken(): String {
return "yes"
}
}
@abhisekpadhi
abhisekpadhi / c_operators.c
Created August 8, 2019 17:54
c_operators
//Learning operators
#include <stdio.h>
float sum(int a, float b){
float sum=0;
sum = a + b;
return sum;
}
@abhisekpadhi
abhisekpadhi / t.cpp
Created November 17, 2018 11:59
testing c++17
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int i;
std::cout << "Enter i:";
std::cin >> i;
int a[i] = i++;
std::cout << "i: " << i << '\n';
@abhisekpadhi
abhisekpadhi / hello.c
Created November 6, 2016 06:01
Sample C Program for Eclipse CDT
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
puts ("Welcome TO ScrollStory Blog !");
return EXIT_SUCCESS;
}
#!/bin/bash
echo "Testing gists..."