➜ ssh-add -l
256 SHA256:DpDdSJhFYZAa1jz4cE9PMAevia1C/yb4Gi5nW7dMqmw i@example.com (ED25519)
This file contains hidden or 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 bash | |
| locale1=${1:-uk_UA.UTF-8} | |
| locale2=${2:-ru_UA.UTF-8} | |
| shopt -s nocasematch | |
| if [[ $locale1 != POSIX ]] \ | |
| && [[ ! $locale1 =~ ' '$ ]] \ | |
| && [[ ! $locale1 =~ @.+$ ]] \ |
This file contains hidden or 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/sh | |
| # Create repository in Github with correct escaping in repo name | |
| # Requires {@code GITHUB_TOKEN} env var. | |
| # @return ssh url to created repository which can be used in git clone command | |
| jq --null-input --compact-output \ | |
| --arg repo 'my-awesome-project' \ | |
| '{name: $repo}' \ | |
| | curl \ |
ace-editor (1.1) => [ bouncycastle-api (2.16.0) optional, command-launcher (1.0) optional, jdk-tool (1.0) optional, trilead-api (1.0.4) optional ]
analysis-core (1.96) => [ maven-plugin (2.17), antisamy-markup-formatter (1.5),
This file contains hidden or 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 bash | |
| # shellcheck disable=SC1090,SC1110,SC2086 | |
| if [ -z "$BASH_VERSION" ]; then | |
| echo This file should be executed or sourced by Bash shell | |
| exit 2 | |
| fi | |
| perl -pe 's/\\\n/ /' ~/.pam_environment \ | |
| | sed --regexp-extended $' |
This file contains hidden or 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/sh | |
| /usr/bin/shuf --head-count "${1:-5}" /usr/share/dict/words \ | |
| | awk '{printf "%s ", $0} END{print}' |
This file contains hidden or 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 java.io.PrintWriter; | |
| import java.io.Writer; | |
| import org.codehaus.groovy.tools.Utilities; | |
| public class IndentWriter extends PrintWriter | |
| { | |
| protected boolean needIndent = true; | |
| protected String indentString; | |
| protected int indentLevel = 0; | |
This file contains hidden or 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
| enum PatchLevel { | |
| MAJOR, MINOR, PATCH | |
| } | |
| class SemVer implements Serializable { | |
| private int major, minor, patch | |
| SemVer(String version) { | |
| def versionParts = version.tokenize('.') |