Install the OpenSSL on Debian based systems
sudo apt-get install openssl| -- @module Mailer | |
| -- requires 30log luarock install | |
| local class = require '30log' | |
| -- defaults with exchange server | |
| local Mailer = class("Mailer", | |
| { server = "outlook.office365.com", | |
| port = 993, | |
| mailbox = "Inbox", | |
| protocol = "tlsv1_2", |
| ### Script originally based on https://gist.github.com/kydouglas/1f68d69e856fd6d7dc223f8e1f5ae3b3 | |
| #!/bin/bash | |
| #ONE LINE | |
| #sudo wget -Nnv 'https://gist.githubusercontent.com/kydouglas/1f68d69e856fd6d7dc223f8e1f5ae3b3/raw/f8c3b22b9d9c41093150b96c815776956b523d9d/elk.sh' && bash elk.sh && rm -f elk.sh | |
| # Checking whether user has enough permission to run this script | |
| sudo -n true | |
| if [ $? -ne 0 ] | |
| then |
| #!/bin/bash | |
| # PHP 7.4 | |
| sudo apt install software-properties-common | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt update | |
| sudo apt install zip unzip | |
| sudo apt install php7.4 php7.4-common php7.4-opcache php7.4-cli php7.4-gd php7.4-curl php7.4-mysql php7.4-xml php7.4-zip | |
| php -v |
| #!/bin/bash | |
| #### Functions ### | |
| display_usage() { | |
| echo "This script must be run with Docker capable privileges and you should login to your registry before pushing!" | |
| echo -e "\nUsage:\n$0 <saved_image> [--push]\n" | |
| echo -e " <saved_image>\t\t\tThe image file to load and push" | |
| echo -e " [--push]\t\t\tPush to registry" | |
| echo -e "\nExample: $0 /mydir/ubuntu.tar --push " | |
| } |
sudo curl -o /usr/local/bin/docker-load-and-push https://gist.githubusercontent.com/rluvaton/ef6415c79c35c5b11c535040e79ab43b/raw/19cb82651a10d5256f512331b484dee8a19a8058/docker-load-and-push.sh && sudo chmod +x /usr/local/bin/docker-load-and-pushTo setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| version: '3.5' | |
| services: | |
| vault-compose: | |
| image: vault:0.9.6 | |
| build: | |
| context: ./vault | |
| ports: | |
| - 8200:8200 |
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist