Skip to content

Instantly share code, notes, and snippets.

View karthicraghupathi's full-sized avatar

Karthic Raghupathi karthicraghupathi

View GitHub Profile
@karthicraghupathi
karthicraghupathi / readme.md
Last active July 19, 2024 02:53
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.

@karthicraghupathi
karthicraghupathi / advanced_requests.py
Last active February 7, 2023 07:18
Advanced usage of python requests - timeouts, retries, hooks
import requests
from requests.adapters import HTTPAdapter, Retry
DEFAULT_TIMEOUT = 5
class TimeoutHTTPAdapter(HTTPAdapter):
"""Set a default timeout for all HTTP calls."""

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.