I hereby claim:
- I am fishi0x01 on github.
- I am fishi0x01 (https://keybase.io/fishi0x01) on keybase.
- I have a public key ASBC98LoqVmGXqBk9o2PyofHRZ7Ee5d2Yi5C09wcQsxuzAo
To claim this, I am signing this object:
| While running, Terraform sometimes tests experimental features in the | |
| background. These features cannot affect real state and never touch | |
| real infrastructure. If the features work properly, you see nothing. | |
| If the features fail, this message appears. | |
| The following failures happened while running experimental features. | |
| Please report a Terraform bug so that future Terraform versions that | |
| enable these features can be improved! | |
| You can report an issue at: https://github.com/hashicorp/terraform/issues |
| projects = [ | |
| [name: "serviceA", cron: "@daily"], | |
| [name: "serviceB", cron: "@hourly"], | |
| [name: "serviceC", cron: "@daily"], | |
| ] | |
| for(project in projects) { | |
| folder("${project.name}") |
| --- | |
| jenkins: | |
| systemMessage: "Powered automagically by Groovy and Configuration-as-Code Plugin\n\n" | |
| numExecutors: 5 | |
| crumbIssuer: | |
| standard: | |
| excludeClientIPFromCrumb: false | |
| remotingSecurity: |
I hereby claim:
To claim this, I am signing this object:
| node('master') { | |
| stage('Checkout') { | |
| // Clean workspace and checkout shared library repository on the jenkins master | |
| cleanWs() | |
| checkout scm | |
| } | |
| stage('Configuration') { | |
| // set CasC config in master | |
| sh('cp /var/jenkins_home/workspace/Admin/Configure/resources/config/configuration-as-code-plugin/jenkins.yaml /var/jenkins_home/jenkins.yaml') |
| sshd_port: 5133 | |
| sshd_groups: | |
| - name: devops | |
| ssh: | |
| allow_tcp_fwd: True | |
| allow_agent_fwd: True | |
| x11_fwd: True | |
| - name: developers | |
| ssh: |
| #!/bin/bash | |
| SENSITIVE_FILES="roles/ssh/templates/sshd_config.j2.enc" | |
| if [ "$1" != "clean" ] && [ "$1" != "decrypt" ] | |
| then | |
| echo "only 'clean' or 'decrypt' are allowed" | |
| exit 1 | |
| fi |
| #!/usr/bin/env python3 | |
| """ | |
| A simple python(3) bf interpreter. | |
| First argument is .bf file with code to execute. | |
| Optionally a file with input arguments can be specified as second argument. | |
| """ | |
| import sys | |
| import re |
| #!/usr/bin/env python3 | |
| """ | |
| Iterate over each subset of any size (Power set) | |
| """ | |
| def power_set(A): | |
| subsets = [] | |
| N = len(A) | |
| # iterate over each subset |
| #!/usr/bin/env python3 | |
| """ | |
| Using Fermat's little theorem to calculate nCk mod m, for k < m and m is prime | |
| Two versions: | |
| 1. Pre-Compute factorials and multiplicative inverses in O(n*logn) --> later lookup in O(1) | |
| 2. Compute directly --> no lookup --> each time O(n) | |
| """ |