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
@dipankardas011
dipankardas011 / README.md
Created February 18, 2024 05:08
Open Build Service By OpenSuse

Open Build Service By OpenSuse (Automation)

@dipankardas011
dipankardas011 / README.md
Last active January 24, 2024 15:27
automate-creation-self-signed-tls-certs
@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 👍

@dipankardas011
dipankardas011 / README.md
Last active July 9, 2024 15:51
Avoid Null pointer issues in go

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

image

here is command to resolve it in fedora

   sudo nmcli connection modify <connection_name> ipv4.dns "8.8.8.8, 8.8.4.4"
   sudo nmcli connection modify <connection_name> ipv4.ignore-auto-dns yes
   
      sudo nmcli connection down <connection_name>
   sudo nmcli connection up <connection_name>
@dipankardas011
dipankardas011 / configuration for nix.md
Last active May 8, 2025 20:29
nixos configuration for i3 basic /etc/nixos/configuration.nix
@dipankardas011
dipankardas011 / Dockerfile-Rust-wasi-wasm
Created June 12, 2023 16:33
Wasi dockerfile for rust
FROM --platform=$BUILDPLATFORM rust:1.64 AS buildbase
WORKDIR /src
RUN <<EOT bash
set -ex
apt-get update
apt-get install -y git clang
rustup target add wasm32-wasi
EOT
FROM buildbase AS build
###########################
# 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
[Watch the video in YouTube<br> ![thumbnail](http://img.youtube.com/vi/6-UJzEXMvGY/0.jpg)](https://youtu.be/6-UJzEXMvGY)