<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>localhost.pbcopy</string>
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/sh | |
# Referenced this stackoverflow answer by John1024: https://stackoverflow.com/a/28353785/2372698 | |
uptime -p >/dev/null 2>&1 | |
if [ "$?" -eq 0 ]; then | |
# Supports most Linux distro | |
# when the machine is up for less than '0' minutes then | |
# 'uptime -p' returns ONLY 'up', so we need to set a default value | |
UP_SET_OR_EMPTY=$(uptime -p | awk -F 'up ' '{print $2}') |
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 bash | |
# Author: Ioannis Angelakopoulos <ioagel@gmail.com> | |
# Date: 18/01/2019 | |
########################### | |
# REQUIREMENTS | |
########################### | |
# | |
# * Required commands: |
# Generate a new RSA 4096bit(default is 2048bits) key
# and encrypt it with a passphrase based on AES CBC 256 cipher:
openssl genrsa -aes256 -out private_key.pem 4096
# Generate a new RSA 4096bit(default is 2048bits) key without a passphrase:
openssl genrsa -out private_key.pem 4096