Category Archives: Scripting/coding

Atom: useful plugins
0 (0)

8 April 2019

Usually, I’m using vim almost for everything excepting big Python projects (which happen rarely last time). In such cases, I have PyCharm, which is also used for AWS CloudFormation templates with the aws-cloudformation plugin. For the  Go lang programmes I have used vim with the vim-go plugin but on last weekend I tried the Atom… Read More: Atom: useful plugins0 (0) »

Loading

Redis: replication, part 3 – redis-py and work with Redis Sentinel from Python
0 (0)

1 April 2019

Still on the subject about Redis replication and Redis Sentinel – a couple of examples using the redis-py library for Python. Previous series posts: Redis: replication, part 1 – an overview. Replication vs Sharding. Sentinel vs Cluster. Redis topology Redis: replication, part 2 – Master-Slave replication, and Redis Sentinel All Redis clients for Python can be… Read More: Redis: replication, part 3 – redis-py and work with Redis… »

Loading

Jenkins: Scripted Pipeline – Production environment job confirmation step
0 (0)

19 March 2019

We have jobs which have to be executed on a Dev and Production environments via a Scripted Pipeline. In such jobs, there are tasks to execute CloudFormation upgrades on an infrastructure or Ansible playbooks to update servers configuration. To avoid an accidental execution of a Production job I want to have some confirmation step before… Read More: Jenkins: Scripted Pipeline – Production environment job confirmation step0 (0) »

Loading

Python: what is the if __name__ == “__main__” ?
0 (0)

3 March 2019

In many Python modules you can find construction like: if __name__ == “__main__”: func() Its main purpose is to dedicate a code which will be executed during calling code as a module, after importing it into another code – and when running module itself as a dedicated script. Let’s take a look at a couple… Read More: Python: what is the if __name__ == “__main__” ?0 (0) »

Loading