Skip to content

Instantly share code, notes, and snippets.

View sumanth-lingappa's full-sized avatar
👋
How is your day going?

Sumanth Lingappa sumanth-lingappa

👋
How is your day going?
View GitHub Profile
@sumanth-lingappa
sumanth-lingappa / ansible-ssh-connection-plugin-error.log
Created January 20, 2024 13:29
ansible ssh connection plugin error
1041081 1705573397.75587: starting run
ansible-playbook [core 2.11.12]
config file = /home/sumanthl/workspace/upgrade-netscalers/ansible.cfg
configured module search path = ['/home/sumanthl/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/sumanthl/.local/lib/python3.10/site-packages/ansible
ansible collection location = /home/sumanthl/.ansible/collections:/usr/share/ansible/collections
executable location = /home/sumanthl/.local/bin//ansible-playbook
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
jinja version = 3.0.3
libyaml = True
@sumanth-lingappa
sumanth-lingappa / figlet_all_fontfiles.md
Last active September 30, 2022 17:26
Figlet all supported fontfiles

All supported figlet fontfiles showing the test Sumanth

figlet command usage:

figlet -f <font-file> "Sumanth"

3-d

@sumanth-lingappa
sumanth-lingappa / delete_git_submodule.md
Created February 7, 2022 13:47 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@sumanth-lingappa
sumanth-lingappa / flames.py
Created November 1, 2020 06:17
FLAMES game implementation in Python
def strike_common_chars(partner1, partner2):
partner1_char_count = {}
for c in partner1:
partner1_char_count[c] = partner1_char_count.setdefault(c, 0) + 1
partner2_char_count = {}
for c in partner2:
partner2_char_count[c] = partner2_char_count.setdefault(c, 0) + 1
for c in partner1_char_count.keys():