Skip to content

Instantly share code, notes, and snippets.

@bimal1988
bimal1988 / install_kanata.sh
Last active January 3, 2026 19:35
Install and set up Kanata and Karabiner on MacOS
#!/usr/bin/env bash
# Installs Karabiner DriverKit, Kanata, sets up LaunchDaemons securely,
# and installs the 'kanata-refresh' helper for Fish shell.
set -euo pipefail
# Color variables
MAGENTA='\033[35m'
RED='\033[31m'
GREEN='\033[32m'
@bimal1988
bimal1988 / fish-smart-venv-activator.md
Last active January 2, 2026 16:40
Smart recursive virtual environment activator for Fish shell. Automatically finds venvs in current, parent, or child directories, with Conda fallback and interactive selection menus.

Activate virtual env

function va --description "Smart Recursive Virtual Environment Activator"
    # ==============================================================================
    # va (Virtual Activator)
    # ==============================================================================
    # A smart tool to find and activate Python virtual environments.
    #
    # SEARCH LOGIC:
@bimal1988
bimal1988 / cisco-vpn-automation-toolkit.md
Last active March 17, 2026 17:18
Automate Cisco Secure Client (AnyConnect) connections on macOS via CLI. Includes Bash scripts to connect(with handling 2FA Push notifications, and Keychain password retrieval), disconnect and toggle connection, plus Fish shell functions for easy management (vpn-connect, vpn-disconnect, vpn-toggle, vpn-setup-password, vpn-update-password).

1. Setup Password in Keychain

Run this command once in your terminal to store your VPN password securely. This prevents hardcoding passwords in scripts.

Bash

security add-generic-password -a "YOUR_USERNAME" -s "CiscoVPN" -w "YOUR_PASSWORD"