Skip to content

Instantly share code, notes, and snippets.

@mshonichev
mshonichev / numpy_lru_cache.md
Created April 13, 2022 11:29 — forked from Susensio/numpy_lru_cache.md
Make function of numpy array cacheable

How to cache slow functions with numpy.array as function parameter on Python

TL;DR

from numpy_lru_cache_decorator import np_cache

@np_cache()
def function(array):
 ...
1. Setup a project
2. Add groovy SDK support:
https://www.bonusbits.com/wiki/HowTo:Add_Groovy_SDK_to_IntelliJ_IDEA
3. Download http://(yourjenkinsurl)/job/(yourpipelinejob)/pipeline-syntax/gdsl
- this will give you the .gdsl file - download this to the src folder of your project.
4. Finally follow this step - right click on the src folder -> Mark directory as -> Sources Root
@mshonichev
mshonichev / ssh_agent_forwarding_ansible.md
Created May 5, 2023 16:57 — forked from mohanpedala/ssh_agent_forwarding_ansible.md
Ansible with SSH Agent Forwarding Tag: Bastion host
  • Create a “config” file that will be used by SSH-agent to do the forwarding of SSH connection.
$ cd .ssh
$ touch config
$ chmod 600 config
$ sudo vi config
SSH-agent forwarding
Host 
@mshonichev
mshonichev / gist:38a7698ab553c18d967f64b32432696c
Created October 24, 2023 11:39 — forked from abadger/gist:d3d1917cb9cb7b1cf31454f0c726e41b
Documentation on how Ansible modules are made ready to be executed on a remote system.
=======
Modules
=======
This is an in-depth dive into understanding how Ansible makes use of modules.
It will be of use to people working on the portions of the Core Ansible Engine
that execute a module, it may be of interest to people writing Ansible Modules,
and people simply wanting to use Ansible Modules will likely want to read
a different paper.