Skip to content

Instantly share code, notes, and snippets.

+ ansible-playbook -i /home/jenkins/agent/workspace/k8s/kubespray/inventory/k8s-02/hosts.ini --private-key /home/jenkins/agent/workspace/k8s/ssh/jenkins.pem --extra-vars registry_username=***** registry_password=**** cluster.yml
[WARNING]: While constructing a mapping from /kubespray/roles/bootstrap-
os/tasks/main.yml, line 29, column 7, found a duplicate dict key (paths). Using
last defined value only.
[WARNING]: Skipping callback plugin 'ara_default', unable to load
PLAY [Check Ansible version] ***************************************************
Wednesday 22 January 2025 21:24:47 +0000 (0:00:00.025) 0:00:00.025 *****
Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
Affected argument(s) used the following variable(s): [REGISTRY_PASSWORD]
See https://jenkins.io/redirect/groovy-string-interpolation for details.
+ CLUSTER=k8s-01
+ cd /kubespray
+ ansible-playbook -i /home/jenkins/agent/workspace/k8s-01/kubespray/inventory/k8s-01/hosts.ini --private-key /home/jenkins/agent/workspace/k8s-01/ssh/<name>.pem --extra-vars registry_username=<user> registry_password=**** cluster.yml
[WARNING]: Skipping callback plugin 'ara_default', unable to load
PLAY [localhost] ***************************************************************
Sunday 18 December 2022 13:10:37 +0000 (0:00:00.057) 0:00:00.057 *******
@c-romeo
c-romeo / Windows Defender Exclusions VS 2017.ps1
Created July 8, 2019 11:57 — forked from dknoodle/Windows Defender Exclusions VS 2017.ps1
Adds Windows Defender exclusions for Visual Studio 2017
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
@c-romeo
c-romeo / clean_code.md
Created October 26, 2018 02:31 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules