Skip to content

Instantly share code, notes, and snippets.

View k4mrul's full-sized avatar
😎
Keep smiling ;)

Abdul Hannan Kamrul k4mrul

😎
Keep smiling ;)
View GitHub Profile
@k4mrul
k4mrul / restore.sh
Last active August 6, 2025 10:42
Restore wordpress (uploads directory) and db (for flywp)
#!/bin/bash
# Parse command-line arguments
for ARG in "$@"; do
case $ARG in
--domain=*)
DOMAIN="${ARG#*=}"
;;
*)
echo "Unknown argument: $ARG"; exit 1
;;
@k4mrul
k4mrul / backup.sh
Last active August 6, 2025 10:42
Backup wordpress (uploads directory) and db (for flywp)
#!/bin/bash
# Parse command-line arguments
for ARG in "$@"; do
case $ARG in
--domain=*)
DOMAIN="${ARG#*=}"
;;
*)
echo "Unknown argument: $ARG"; exit 1
;;
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: "basic-pool"
spec:
blocks:
- cidr: "10.42.42.0/24"
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumL2AnnouncementPolicy
##k8sServicePort: 6443
ipam:
mode: cluster-pool
operator:
clusterPoolIPv4PodCIDRList: "10.42.0.0/16" # Pods CIDR
clusterPoolIPv4MaskSize: 24
ipv4NativeRoutingCIDR: "10.42.0.0/16" # Pods CIDR
@k4mrul
k4mrul / cloud-init.yaml
Last active August 6, 2025 07:24
cloud init script with kubernetes, helm, kubectl
#cloud-config
package_update: true
packages:
- bash-completion
- make
- vim
- iptables
- g++
- jq
- fzf
@k4mrul
k4mrul / nekro
Created November 26, 2024 11:18
nekroray
#profile-title: base64:8J+GkyBCYXJyeS1mYXIgfCBUcm9qYW7wn6W3
#profile-update-interval: 1
#subscription-userinfo: upload=0; download=0; total=10737418240000000; expire=2546249531
#support-url: https://github.com/barry-far/V2ray-Configs
#profile-web-page-url: https://github.com/barry-far/V2ray-Configs
trojan://[email protected]:8443?path=%2F&security=tls&type=ws&sni=e9464f45.trauma-2r4.pages.dev#All-%40V2ray_Alpha-08
trojan://[email protected]:15296?security=reality&encryption=none&pbk=qfd99L4hzJxX32eZBwVSDrGWZsWSSfFmtMIKiZi97VE&headerType=none&fp=firefox&type=tcp&sni=sourceforge.net&sid=313f5cba#All-%40V2ray_Alpha-09
trojan://[email protected]:80?path=%2F%3Fed%3D2048&security=none&encryption=none&host=uni.fi&type=ws#All-%40V2ray_Alpha-10
trojan://[email protected]:2083?path=%2FTelegram%40V2ray_Alpha%2F%3Fed%3D2560&security=tls&alpn=h2%2Chttp%2F1.1&encryption=none&host=argodev11222.pages.dev&fp=ran
@k4mrul
k4mrul / Ubuntu_Vagrant_libvirt.md
Created August 6, 2024 11:32 — forked from PaulNeumann/Ubuntu_Vagrant_libvirt.md
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.

All of the commands shown should be run in a terminal window or SSH session.

Before You Start

Verify That Your CPU Supports Hardware Virtualization

@k4mrul
k4mrul / nfs-ganesha-server.yaml
Last active December 19, 2023 09:31
nfs-ganesha-server
######## Source: https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner/tree/master
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nfs-provisioner
---
kind: Service
apiVersion: v1
metadata:
@k4mrul
k4mrul / README.md
Created August 8, 2023 05:30 — forked from mukeshmodiindia/README.md
Deploy Percona Server for MongoDB Replica set with Ansible

Deploy the MongoDB Replica set using Ansible.

Pre-requisite:

Make sure to add hosts entries in /etc/hosts in all mongod instance. Verify whether it's reachable, i.e within network. Check it with ping or telnet. ping hostname/ip telnet hostname/ip mongo_port Quick guide

Adjust the hosts details in inventory. Adjust the global variables in group_vars/all

@k4mrul
k4mrul / k8s-php.json
Created June 9, 2023 14:31
Nginx PHP FPM
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,