- Register for Oracle Cloud Free Tier
- Create compute instance
- change image to
Canonical Ubuntu - confirm that a public IPv4 address is assigned
- upload your public ssh key
- leave everything blank in
Boot volume
- change image to
- Enable Internet Access
- Instances → Instance details → Subnet → Default Security List → Add Ingress Rules
- HTTP: Stateless: Checked
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/bash | |
| ## The following command starts Vault in development mode | |
| ## specifiying a root token value of 'root' | |
| ## | |
| # VAULT_UI=true vault server -dev -dev-root-token-id="root" | |
| ## Login with root token | |
| ## Good for demo mode, should only be used on production cluster | |
| ## during initial configuration |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| # https://toster.ru/q/72866 | |
| # How to | |
| # wget http://gist.github.com/... | |
| # chmod +x ya.py | |
| # ./ya.py download_url path/to/directory | |
| import os, sys, json |
Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
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
| file ..\*\\.(properties|config|conf|cnf|cfg) Java\sFile | |
| include properties.syntax | |
| file ..\*\\.(ya?ml|YML)$ YAML\sFile | |
| include yaml.syntax |
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 | |
| # | |
| # run as current user | |
| # > mkdir ~/.phpenv/init | |
| # > vim 5.3.19 | |
| # | |
| # before, you should edit php-fpm.conf | |
| # and comment out [www] user and group. | |
| PHP_BASE=$HOME/.phpenv/versions/{version} |