Skip to content

Instantly share code, notes, and snippets.

View zemliany's full-sized avatar

Maksym Zemlianyi zemliany

  • Intellias Global Limited
View GitHub Profile
import subprocess
import sys
import time
REDIS_KEY = 'current_timestamp'
homework_descripion = '''
SET University
Course: Introduction into NoRelational Database Management Systems
Course tutors:
@zemliany
zemliany / MaskPassWorodsConfigRegex.groovy
Last active December 22, 2022 15:17
Configure Regexs for Jenkins Mask Password Plugin via groovy
import com.michelin.cio.hudson.plugins.maskpasswords.*;
import com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsConfig.*;
MaskPasswordsConfig config = MaskPasswordsConfig.getInstance();
List<String> allRegexes = new ArrayList<String>();
Map<String, String>RegexMasks = [
'EnvironmentsRegex': '(?<=MASTER_TOKEN=|TOKEN=|CREDENTIAL=|SECRET=|PASSWORD=|CREDENTIALS=|--token\\s).*',
'CliRegex': '((?<=--password\\s)[^.\\s]*)|((?<=--target-password\\s)[^.\\s]*)'
]
@zemliany
zemliany / GNU-Make.md
Created October 4, 2022 13:21 — forked from rueycheng/GNU-Make.md
GNU Make cheatsheet
#!groovy
import jenkins.model.*
import hudson.security.*
import hudson.util.Secret
import jenkins.model.IdStrategy
import net.sf.json.JSONObject
import jenkins.security.plugins.ldap.*
import jenkins.security.plugins.ldap.FromGroupSearchLDAPGroupMembershipStrategy
import java.util.logging.Logger
import hudson.model.*
import jenkins.model.Jenkins
import java.io.File;
import groovy.xml.XmlUtil
import static javax.xml.xpath.XPathConstants.*
import groovy.xml.DOMBuilder
import groovy.xml.dom.DOMCategory
import java.io.InputStream;
import java.io.FileInputStream
import javax.xml.transform.stream.StreamSource
import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
def jenkinsCredentials = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(
com.cloudbees.plugins.credentials.Credentials.class,
Jenkins.instance,
null,
null
);
@zemliany
zemliany / iterm2.md
Last active June 21, 2020 09:18 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@zemliany
zemliany / ansible_variable_precedence.md
Created April 26, 2020 09:26 — forked from ekreutz/ansible_variable_precedence.md
Ansible variable precedence (order, hierarchy)