Skip to content

Instantly share code, notes, and snippets.

View karthicraghupathi's full-sized avatar

Karthic Raghupathi karthicraghupathi

View GitHub Profile
@karthicraghupathi
karthicraghupathi / backup-opnsense-via-api.sh
Last active December 30, 2024 02:01
Backup OPNsense Configuration via API
#!/bin/bash
# #
# ███████╗██╗ ██╗███████╗███████╗████████╗ ██████╗ ██████╗ ██████╗ ██████╗ #
# ██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝██╔════╝ ██╔═══██╗██╔═══██╗██╔══██╗ #
# ███████╗██║ █╗ ██║█████╗ █████╗ ██║ ██║ ███╗██║ ██║██║ ██║██║ ██║ #
# ╚════██║██║███╗██║██╔══╝ ██╔══╝ ██║ ██║ ██║██║ ██║██║ ██║██║ ██║ #
# ███████║╚███╔███╔╝███████╗███████╗ ██║ ╚██████╔╝╚██████╔╝╚██████╔╝██████╔╝ #
# ╚══════╝ ╚══╝╚══╝ ╚══════╝╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ #
# #
# IT-Beratung mit Fokus auf Datensicherheit #
@karthicraghupathi
karthicraghupathi / emails_from_ubuntu.md
Created December 27, 2024 06:13 — forked from movd/emails_from_ubuntu.md
Set up msmtp to send emails emails from Ubuntu/Debian Servers

Setting up email with SMTP on Ubuntu/Debian Servers

I used to sift trough my shell history and bookmarks every time I set up a new testing server in order to be able to send mails. So this should help...

Be aware don't use ssmtp anymore. It's unmaintained and has been removed from Debian and Ubuntu will most definitely follow suit.

Install msmtp

@karthicraghupathi
karthicraghupathi / readme.md
Last active April 1, 2025 13:40
Installing ansible ansible-galaxy ansible-lint and molecule on macOS using pipx

Here is how to use pipx to install ansible and related tools.

pipx install --include-deps ansible

pipx inject --include-apps ansible ansible-lint

pipx inject --include-apps ansible molecule

pipx inject ansible 'molecule-plugins[podman,vagrant]'
@karthicraghupathi
karthicraghupathi / certbot.sh
Created July 11, 2024 19:05 — forked from fideloper/certbot.sh
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here: https://certbot.eff.org/instructions
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok

Vagrant and VMWare Fusion 13 Player on Apple M1 Pro

This document summarizes notes taken to make VMWare Fusion 13 Player work on Apple M1 Pro. It builds upon a previous (deprecated) document based on VMWare Tech Preview 21H1

VMWare Fusion 13 was released on November 17, 2022 and Fusion 13.5 on October 19, 2023

Created on: November 20, 2022

Updated on: June 1, 2024

@karthicraghupathi
karthicraghupathi / utf8-in-mariadb.md
Created June 12, 2024 19:13
UTF8 in MariaDB / MySQL
@karthicraghupathi
karthicraghupathi / Outbound setup for freeswitch.md
Created April 3, 2024 18:52 — forked from govind0229/Outbound setup for freeswitch.md
Free-switch outbound calling through Asterisk setup

Freeswitch outbound calling through Asterisk

[cloud]
type=peer
host=X.X.X.X
port=5080
allow=all
;allow=ulaw
;allow=alaw
trustrpid=yes

Setup nut and netdata on Ubuntu

In this document, I will explain how to setup nut (Network UPS Tools) on Ubuntu 18.04 and 20.04.

It is basically the next chapter of my previous gist, Upgrade nut on Ubuntu 18.04.

I'll only document USB connected UPS and not the other supported connection modes.

Install required dependencies

@karthicraghupathi
karthicraghupathi / gunicorn.md
Created February 28, 2024 22:16 — forked from zpoint/gunicorn.md
difference bwtween gunicorn workers(sync/eventlet/gevent/thread/tornado)

gunicorn workersimage title

We've learned SyncWorker for gunicorn in part1, now let's see how other workers work

workers

contents

@karthicraghupathi
karthicraghupathi / github_bitbucket_multiple_ssh_keys.md
Created February 21, 2024 17:24 — forked from yinzara/github_bitbucket_multiple_ssh_keys.md
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.