Skip to content

Instantly share code, notes, and snippets.

@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.
@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 
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 / 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):
 ...
@mshonichev
mshonichev / tiden-gatling-run.log
Created June 8, 2020 07:51
Tiden Gatling output
/usr/bin/python3.7 /usr/local/bin/tiden run-tests --ts=gatling --tc=config/artifacts-gatling.yaml --tc=config/artifacts-ai.yaml --tc=config/artifacts-flamegraph.yaml --tc=config/env_mshonichev.yaml --tc=config/plugins-maven.yaml --clean=tests
*** Initialization ***
(c) 2017-2020 GridGain Systems. All Rights Reserved
Tiden 0.6.3
Read configuration from config/default-plugins.yaml, config/artifacts-gatling.yaml, config/artifacts-ai.yaml, config/artifacts-flamegraph.yaml, config/env_mshonichev.yaml, config/plugins-maven.yaml
Clean up tests data in /src/exact/tiden_examples/var
. examples-200608-062825 dir deleted
The configuration stored in /src/exact/tiden_examples/var/gatling-200608-063316/config.yaml
*** Prepare artifacts ***
gatling -> /src/exact/tiden_examples/var/artifacts/gatling-test-1.0-SNAPSHOT-jar-with-dependencies.jar