- Unzip the website.zip file provided by BeDrive somewhere
- Replace
docker-compose.ymlwith the following:
version: "3"
services:
web:
build: .
depends_on:
- mariadb
| ## | |
| ## Windows 10 cleanup script. | |
| ## Remove dodgy tracking settings, unneeded services, all apps, and optional features that come with Windows 10. Make it more like Windows 7. | |
| ## NOTE: this was tested on Creators Update (1703) and Fall Creators Update (1709). Some of this may not work as expected on newer versions. | |
| ## | |
| ## Instructions | |
| ## 1. Run this script (under Powershell as Administrator): | |
| ## powershell -ExectionPolicy Bypass .\cleanup-win10.ps1 | |
| ## 2. Let it run through, you may see a few errors, this is normal | |
| ## 3. Reboot |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "os" | |
| "time" | |
| "github.com/pkg/errors" | |
| "storj.io/uplink" |
| <?php | |
| // | |
| // Test script to see if AWS SDK PHP works as expected with Storj gateway. | |
| // | |
| // Assuming a working PHP and Composer setup: | |
| // | |
| // 1. Copy this file to an empty dir. | |
| // 2. Run `composer require aws/aws-sdk-php`. | |
| // 3. Configure credentials: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html |
| #!/usr/bin/php | |
| <?php | |
| ## | |
| ## Extract a zip containing FLAC files, or a directory of FLAC files, | |
| ## and encode them into MP3 using LAME. | |
| ## | |
| ## Requirements (make sure these are in your path): | |
| ## - php (5.3+, required to run this script) | |
| ## - flac (for decoding FLAC to WAV) |
| import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3"; | |
| // generate credentials with: | |
| // uplink share --readonly=false --not-after +1h --register sj://mybucket/7702ec60-62ac-11ec-be04-7d227eabec45/ --auth-service=https://auth.us1.storjshare.io --access MYACCESS | |
| const accessKeyId = "" | |
| const secretAccessKey = "" | |
| const endpoint = "https://gateway.us1.storjshare.io" | |
| const s3Client = new S3Client({ | |
| credentials: { |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "os" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/s3" |
| #!/bin/bash | |
| set -eu | |
| if [ $EUID -ne 0 ]; then | |
| echo "This script must be run as root" | |
| exit 1 | |
| fi | |
| ID="cgroup_$((100 + RANDOM % 1000))" | |
| echo "Generated cgroup name: $ID" |
docker-compose.yml with the following:version: "3"
services:
web:
build: .
depends_on:
- mariadb
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| target=${1:-} | |
| subtarget=${2:-} | |
| profile=${3:-} | |
| release=${4:-snapshot} | |
| target_path=$(readlink -f "${5:-$(pwd)}") | |
| packages="luci luci-base luci-mod-admin-full luci-proto-relay luci-app-statistics" |
| --- /usr/lib/python3/dist-packages/salt/cloud/clouds/digitalocean.py 2020-09-07 11:02:31.000000000 +1200 | |
| +++ /usr/lib/python3/dist-packages/salt/cloud/clouds/digitalocean_new.py 2020-09-07 11:04:47.000000000 +1200 | |
| @@ -357,6 +357,11 @@ | |
| if not isinstance(private_networking, bool): | |
| raise SaltCloudConfigError("'private_networking' should be a boolean value.") | |
| kwargs['private_networking'] = private_networking | |
| + vpc_uuid = config.get_cloud_config_value( | |
| + "vpc_uuid", vm_, __opts__, search_global=False, default=None, | |
| + ) | |
| + if vpc_uuid is not None: |