Skip to content

Instantly share code, notes, and snippets.

Avatar
🐕
feed strays around you

Palash Nigam palash25

🐕
feed strays around you
View GitHub Profile
@palash25
palash25 / jobs.md
Created Oct 27, 2021
Lesser known job opportunities
View jobs.md

This is a list of companies that I know of and want to share with others. As undergrads or early career devs we are not even aware of the various opportunities that exist out there. You mostly here about large companies like FAANG or really old and established ones like IBM or mass recruiting consultancies like Accenture or some popular mid-large scale startups that usually end up being a ride hailing or food delivery service.

But other companies with diverse fields of work exists out there, they can be of different sizes, they could be working on OS development and systems programming instead of building the next "unicorn" app. Be it dev tools companies or companies that pay you to work on open source projects I will try to compile as many as I know.

TODO

View keybase.md

Keybase proof

I hereby claim:

  • I am palash25 on github.
  • I am palashnigam (https://keybase.io/palashnigam) on keybase.
  • I have a public key ASBlmLCiCex81LEbUq_0iq9AKOQEXg20d-E0EXGqaHk95Ao

To claim this, I am signing this object:

View sumo-mmap-p1-h1.md

add this at the top of your code

extern crate libc;

View haskell-dev-en
install ghc-up https://www.haskell.org/ghcup/
follow the instructions up until the last one, don't let the insatller make changes to your shell config and add the path manually to the config
`export PATH=/home/palash25/.ghcup/bin/:$PATH`
View pmm-tensoon-log
palash@teensoon:~/dev/go/src/github.com/percona/pmm-managed$ make env-up
docker-compose pull
WARNING: The TRAVIS_REPO_SLUG variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_PULL_REQUEST_SHA variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_COMMIT variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_PULL_REQUEST_BRANCH variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_PULL_REQUEST variable is not set. Defaulting to a blank string.
WARNING: The REVIEWDOG_GITHUB_API_TOKEN variable is not set. Defaulting to a blank string.
Pulling pmm-managed-server ... done
@palash25
palash25 / lein-repl-traceback
Created May 27, 2020
Discovered after installing Calva vscode plugin
View lein-repl-traceback
#error {
:cause Wrong number of args (1) passed to: clojure.core/cons--5376
:via
[{:type clojure.lang.Compiler$CompilerException
:message Syntax error compiling at (scratch/core.clj:26:1).
:data #:clojure.error{:phase :compile-syntax-check, :line 26, :column 1, :source scratch/core.clj}
:at [clojure.lang.Compiler load Compiler.java 7648]}
{:type clojure.lang.ArityException
:message Wrong number of args (1) passed to: clojure.core/cons--5376
:at [clojure.lang.AFn throwArity AFn.java 429]}]
View elixir-ls.log
00:08:56.037 [info] Application elixir_ls_utils exited: :stopped
Started ElixirLS Fork v0.3.2
00:08:56.039 [info] Application erl2ex exited: :stopped
00:08:56.039 [info] Application forms exited: :stopped
[Info - 12:08:56 am] Connection to server got closed. Server will restart.
Elixir version: "1.10.2 (compiled with Erlang/OTP 21)"
Erlang version: "22"
[Warn - 12:08:56 am] ** (exit) exited in: GenServer.call(ElixirLS.LanguageServer.JsonRpc, {:packet, %{"id" => 0, "jsonrpc" => "2.0", "method" => "initialize", "params" => %{"capabilities" => %{"textDocument" => %{"codeAction" => %{"codeActionLiteralSupport" => %{"codeActionKind" => %{"valueSet" => ["", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports"]}}, "dynamicRegistration" => true}, "codeLens" => %{"dynamicRegistration" => true}, "colorProvider" => %{"dynamicRegistration" => true}, "completion" => %{"completionItem" => %{"commitCharactersSupport" => true, "deprecatedSupport" => true
@palash25
palash25 / benchmark+go+nginx.md
Created Dec 30, 2019 — forked from hgfischer/benchmark+go+nginx.md
Benchmarking Nginx with Go
View benchmark+go+nginx.md

Benchmarking Nginx with Go

There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.

So, these are the different settings we are going to compare:

  • Go HTTP standalone (as the control group)
  • Nginx proxy to Go HTTP
  • Nginx fastcgi to Go TCP FastCGI
  • Nginx fastcgi to Go Unix Socket FastCGI
View time-tests-wc
palash25@Lenovo-G50  ~/Dev/Projects/wc   master ?  \time --format "\n real %E\t user %U\t sys %S\t mem %K\t ssize %p" wc ../../small-file-*
48414 81402 556859 ../../small-file-1
48414 81402 556859 ../../small-file-2
48414 81402 556859 ../../small-file-3
145242 244206 1670577 total
real 0:00.05 user 0.05 sys 0.00 mem 0 ssize 0
palash25@Lenovo-G50  ~/Dev/Projects/wc   master ?  \time --format "\n real %E\t user %U\t sys %S\t mem %K\t ssize %p" ./target/release/wc ../../small-file-*
48414 81402 556859 ../../small-file-1
48414 81402 556859 ../../small-file-2