Skip to content

Instantly share code, notes, and snippets.

View dipankardas011's full-sized avatar
:octocat:
Hustling

Dipankar Das dipankardas011

:octocat:
Hustling
View GitHub Profile
@shaneutt
shaneutt / LICENSE
Last active June 25, 2024 11:48
Golang: Demonstrate creating a CA Certificate, and Creating and Signing Certs with the CA
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit

useful command for debugging.

tail -f <filename>
tail -f -n <number-of-tailing-lines> <filename>

#example to tail from last 1000 files
tail -f -n 1000 <filename>
@dipankardas011
dipankardas011 / copy.c
Created January 13, 2022 11:07
Linux system utility commands in C programming language E.g. cp, mv
/***
* @author Dipankar Das
* cc -o util copy.c
*
* ./util cp <source> <destination>
*
* ./util mv <source> <destination>
*/
#include <stdio.h>
@dipankardas011
dipankardas011 / HuggingFace Dockerfile
Last active June 10, 2023 11:44
kubesimplify-hugging-face
# Use the official Python 3.9 image
FROM python:3.9
# Set the working directory to /code
WORKDIR /code
# Copy the current directory contents into the container at /code
COPY ./requirements.txt /code/requirements.txt
# Install requirements.txt
###########################
# IT IS ONLY
# INSTRUCTIONS (NOT MENT TO BE EXECUTABLE DIRECTLY)
###########################
# reference: https://gist.github.com/saiyam1814/c3e91322441fdb53bbf5958b943a41f3
# 192.168.1.6 kubeadm-cp-1-5db6-f1562d
# 192.168.1.7 kubeadm-cp-2-11ce-f1562d
# 192.168.1.8 kubeadm-cp-3-16c3-f1562d
@dipankardas011
dipankardas011 / configuration for nix.md
Last active June 19, 2024 14:30
nixos configuration for i3 basic /etc/nixos/configuration.nix
@dipankardas011
dipankardas011 / README.md
Created September 26, 2023 06:09
Avoid Null pointer issues in go

used a interface called Option[T any] which helps in defining the types

image

@dipankardas011
dipankardas011 / README.md
Last active December 21, 2023 17:19
Simple example of using go channels with context and having graceful termination

This gist provides a simple way to try out graceful termination

If any errors are there feel free to comment down below, I happy to fix them 👍