This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
import git # gitpython | |
import semver | |
import click | |
@click.group() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://gist.github.com/perewall/9234b7fd3cb270bba1f926ed8bef0b34 | |
set -eux | |
# establish variables | |
projectName=$(git config --local remote.origin.url | sed -n 's#.*/\([^.]*\)\.git#\1#p') | |
currentBranch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
devBranch="dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, ldap | |
# DN = username@example.com, secret = password, un = username | |
DN, secret, un = sys.argv[1:4] | |
server = "ldap://server.com" | |
port = 389 | |
base = "dc=example,dc=com" | |
scope = ldap.SCOPE_SUBTREE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use LWP::UserAgent; | |
use JSON; | |
use DateTime::Duration; | |
use DateTime::Format::Strptime; | |
my $token = "xNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxNxN"; # Request token in https://dev.hh.ru/admin | |
my $userAgent = "Perl Resume Updater <art@pwmedia.ru>"; |