See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| To manually dump the database you can run the following one-liner code | |
| mysqldump -u[user] -p[pass] [db] > [file_path] | |
| But what if you want to automate the process, here are the steps: | |
| 1. Setup cron entry to your server | |
| * * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1 | |
| 2. Create a command BackupDatabase by running the following code: |
| #cloud-config | |
| # Option 1 - Full installation using cURL | |
| package_update: true | |
| package_upgrade: true | |
| groups: | |
| - docker | |
| system_info: |
See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| #!/bin/bash | |
| set -e | |
| if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
| echo "JetBrains Toolbox is already installed!" | |
| exit 0 | |
| fi | |
| echo "Start installation..." |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start| # There's a lack of sample code for acme/Let's Encrypt out there, and | |
| # this is an attempt to at least slightly remedy that. It's the result | |
| # of my first day's hacking on this stuff, so almost certainly contains | |
| # errors and oversights. | |
| # | |
| # It's not designed to be specifically useful if what you want is | |
| # just a cert -- certbot or dehydrated are better for that. It is sample | |
| # code for people who are building automated systems to deal with large | |
| # numbers of Let's Encrypt certificates to play with. | |
| # |
| import request from 'request' | |
| const api_endpoint = 'https://api.figma.com/v1' | |
| const personal_access_token = 'FIGMA_ACCESS_TOKEN_HERE' // https://www.figma.com/developers/docs#auth-dev-token | |
| function downloadSvgFromAWS(url) { | |
| return new Promise((resolve, reject) => { | |
| request.get( | |
| url, | |
| { |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| "time" | |
| "github.com/hashicorp/vault/api" | |
| "github.com/hashicorp/vault/builtin/credential/aws" |
| import React from 'react'; | |
| import { Paper, withStyles, Grid, TextField, Button, FormControlLabel, Checkbox } from '@material-ui/core'; | |
| import { Face, Fingerprint } from '@material-ui/icons' | |
| const styles = theme => ({ | |
| margin: { | |
| margin: theme.spacing.unit * 2, | |
| }, | |
| padding: { | |
| padding: theme.spacing.unit | |
| } |
| version: '3.4' | |
| secrets: | |
| # Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token) | |
| # Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN` | |
| GITLAB_REGISTRATION_TOKEN: | |
| external: true | |
| # Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api) | |
| # Register it as `GITLAB_PERSONAL_ACCESS_TOKEN`: `docker secret create GITLAB_PERSONAL_ACCESS_TOKEN <YOUR ACCESS TOKEN>` |