Skip to content

Instantly share code, notes, and snippets.

View ruddra's full-sized avatar
Drifting through the space ...

Arnab Kumar Shil ruddra

Drifting through the space ...
View GitHub Profile
ruddra / docker-compose.yml
Created November 24, 2023 15:50
Kong gRPC
version: "3"
driver: bridge
image: postgres:9.6
restart: always
ruddra / basic commands
Created August 1, 2022 13:53
Git commands
# Git fetch/reset
git fetch origin
git reset --hard origin/master
# Git push
git push origin master
# Git rebase
git rebase origin/master
ruddra / alacritty.yml
Last active April 10, 2023 13:55
Alacritty configuration
# 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 / Salary Negociation techniques.txt
Last active March 2, 2022 13:12
Salary Negociation techniques
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 December 11, 2019 12:16
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 / Docker with Django, Numpy, Scipy, Gensim and Pandas
Last active March 11, 2022 23:38
Docker with Django, Numpy, Scipy, Gensim and Pandas
# 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 October 25, 2019 16:16
Simple Search hugo
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 October 9, 2019 17:46
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
ruddra / pymysql installation macos.txt
Last active March 2, 2022 13:13
pymysql installation macos
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(