Skip to content

Instantly share code, notes, and snippets.

In coffee we trust

Arnab Kumar Shil ruddra

In coffee we trust
View GitHub Profile
ruddra / alacritty.yml
Last active May 31, 2021
Alacritty configuration
View alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Setup term for programs to be able to use it
TERM: xterm-256color-italic # adding this because of italic support:
# Spread additional padding evenly around the terminal content.
dynamic_padding: false
ruddra / gist:3f8a465572a4877932f0dd3fff0396bf
Last active Jul 18, 2021
Salary Negociation techniques
View gist:3f8a465572a4877932f0dd3fff0396bf
Pre Interview:
1. Ask to recruiter about their salary range.
2. If it does not match, then let them know about your range.
Durning Interview:
1. Do not share salary expectation other than HR.
2. Dodge the the question.
Before Offer:
ruddra /
Last active Dec 11, 2019
String to Epoch using Python
import datetime
def convert_to_epoch(date_string, format="%Y-%m-%dT%H:%M:%SZ"):
dt = datetime.datetime.strptime(date_string, format)
return int(str(dt.timestamp())[:-2])
ruddra / Dockerfile
Created Oct 28, 2019
Docker with Django, Numpy, Scipy, Gensim and Pandas
View Dockerfile
# pull official python alpine image
FROM python:3.7-alpine
# Set Environment Variable
# Making source and static directory
RUN mkdir /src
RUN mkdir /static
ruddra / search simple
Created Oct 25, 2019
Simple Search hugo
View search simple
const posts = {{ $p }};
const query = new URLSearchParams(;
const searchString = query.get('q');
document.querySelector('.search-content').innerHTML = searchString;
const $target = document.querySelector('.search-items');
let matchPosts = [];{
ruddra /
Created Oct 9, 2019
Manjaro Commands So far
sudo pacman -S git
sudo pacman -S pulseaudio
sudo pacman -S libldac
sudo pacman -S pulseaudio-modules
sudo pacman -S bluez
sudo pacman -S bluez-tools
sudo pacman -S bluez-utils
sudo pacman -S pulseaudio-bluetooth
sudo pacman -S gnome-bluetooth
sudo pacman -S bluez-utils
View gist:6f316aec61a5f503f4d5d30da21f2ed0
Step 0.
xcode-select --install
Step 1.
brew install openssl
Step 2.
import boto3
from django.conf import settings
session = boto3.session.Session()
s3 = session.resource(
ruddra / router.js
Last active Oct 13, 2018
View router.js
import React from 'react'
import { Switch, Route } from 'react-router-dom'
import HelloWorld from './HelloWorld'
const Route = () => (
<Route exact path='/hello-world/:id' component={HelloWorld}/>
<Route path='/not-found' component={NotFound}/>
View gist:642b5aa4d36500c923e885831930e593
#!/usr/bin/env bash
# Bootstrap script for setting up a new OSX machine
# This should be idempotent so it can be run multiple times.
# Notes:
# - If installing full Xcode, it's better to install that first from the app
# store before running the bootstrap script. Otherwise, Homebrew can't access