Skip to content

Instantly share code, notes, and snippets.

View samiulsami's full-sized avatar

Samiul Islam samiulsami

  • AppsCode Inc.
  • 04:24 (UTC +06:00)
  • LinkedIn in/sami7786
View GitHub Profile
@samiulsami
samiulsami / try-ssh.bash
Last active June 26, 2025 20:00
Try ssh-ing into all harvester ips
#!/bin/bash
TIMEOUT="$1" # timeout per ssh attempt in seconds. e.g. 30, 60, etc.
SSHPREFIX="$2" # ssh prefix to try (ssh <prefix>@<ip>) e.g. ubuntu, root, etc.
if [ -z "$TIMEOUT" ]; then
TIMEOUT=30
fi
if [ -z "$SSHPREFIX" ]; then
SSHPREFIX="ubuntu"
@samiulsami
samiulsami / cassandra-diagnostics.md
Last active June 4, 2025 06:51
Cassandra queries

How do we perform the following checks?

1. Check for network issues or misconfigurations.

  • Any particular fields of the CR we could check for misconfigurations?

2. Investigate Cassandra node status.


3. Verify connectivity to other nodes in the cluster.


4. Describe the CR and check the reason for message drops.

@samiulsami
samiulsami / dunstrc
Last active May 5, 2025 08:40
~/.config/dunst
[global]
dmenu = /usr/bin/rofi -dmenu -p dunst
mouse_left_click = do_action
mouse_middle_click = close_current
mouse_right_click = close_all
font = Monospace 11
[urgency_low]
background = "#1e1e2e"
foreground = "#cdd6f4"
@samiulsami
samiulsami / conf
Last active May 7, 2025 17:37
~/.config/i3
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@samiulsami
samiulsami / .vimrc
Last active February 13, 2025 12:00
~/
nnoremap Q gq
let mapleader = " "
let maplocalleader = " "
set scrolloff=5
set hlsearch
set incsearch
set smartindent
@samiulsami
samiulsami / .ideavimrc
Last active February 13, 2025 12:01
~/
set clipboard+=unnamedplus
map Q gq
let mapleader = " "
let maplocalleader = " "
set scrolloff=5
set hls is
set smartindent
set autoindent
set expandtab
set-option -g default-terminal "tmux-256color"
set-option -g status-style bg=default,fg=white
set-option -g window-style bg=default
set-option -g window-active-style bg=default
set -g status-left "[#S]: "
set -g status-left-style bg=#000000,fg=grey,bold
set -g status-left-length 50
@samiulsami
samiulsami / config
Last active May 7, 2025 20:08
~/.config/ghostty/
background = #000000
foreground = #CECECE
window-padding-x = 0
window-padding-y = 0
window-decoration = none
background-opacity = 0.88
font-size = 11
confirm-close-surface = false
scrollback-limit = 268435456