Skip to content

Instantly share code, notes, and snippets.

View oikonomopo-k's full-sized avatar

Kostas Oikonomopoulos oikonomopo-k

View GitHub Profile
@Hakky54
Hakky54 / openssl_commands.md
Last active June 17, 2024 14:32 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@jiffle
jiffle / Spock Cheatsheet.md
Last active May 9, 2024 14:19
Spock Useful Patterns Cheatsheet

Spock Useful Patterns Cheatsheet

Adding sequences of behaviour to Mocks and Stubs

The >>> operator allows a sequence of values to be returned:

myMock.someCall() >>> ['first value', 'second value', 'third value', 'etc']

This returns each string in turn. Behaviour (such as throwing exceptions) in closures cannot be used by this operator.

The >> operator allows value or behaviour (closures) to be returned

@neatshell
neatshell / myscript
Last active May 31, 2024 14:19
simple bash template that handles mandatory and optional arguments
#!/bin/bash
script="myscript"
#Declare the number of mandatory args
margs=2
# Common functions - BEGIN
function example {
echo -e "example: $script -m0 VAL -m1 VAL -o1 -o2 VAL"
}