That's our RC:
$ cat ws-rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: webserver-rc
spec:
replicas: 5
selector:
| <?php | |
| /** | |
| * All custom functions should be defined in this class | |
| * and tied to WP hooks/filters w/in the constructor method | |
| */ | |
| class Custom_Functions { | |
| // Custom metaboxes and fields configuration |
That's our RC:
$ cat ws-rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: webserver-rc
spec:
replicas: 5
selector:
| #!/usr/bin/env python | |
| from influxdb import InfluxDBClusterClient | |
| influx_host = "127.0.0.1" | |
| influx_port = 8086 | |
| influx_user = "user" | |
| influx_pass = "pass" | |
| database = "example" |
| '''This script goes along the blog post | |
| "Building powerful image classification models using very little data" | |
| from blog.keras.io. | |
| It uses data that can be downloaded at: | |
| https://www.kaggle.com/c/dogs-vs-cats/data | |
| In our setup, we: | |
| - created a data/ folder | |
| - created train/ and validation/ subfolders inside data/ | |
| - created cats/ and dogs/ subfolders inside train/ and validation/ | |
| - put the cat pictures index 0-999 in data/train/cats |
| /** | |
| * How to implement cordova-background-geolocation with Ionic 2 / 3 | |
| * https://github.com/transistorsoft/cordova-background-geolocation-lt | |
| * Chris Scott, Transistor Software <chris@transistorsoft.com> | |
| */ | |
| import { Component } from '@angular/core'; | |
| import { NavController, Platform } from 'ionic-angular'; |
| /** | |
| * Marlin 3D Printer Firmware | |
| * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
| * | |
| * Based on Sprinter and grbl. | |
| * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or |
HackerNews discussed this with many alternative solutions: https://news.ycombinator.com/item?id=24893615
I already have my own domain name: mydomain.com. I wanted to be able to run some webapps on my Raspberry Pi 4B running
perpetually at home in headless mode (just needs 5W power and wireless internet). I wanted to be able to access these apps from public Internet. Dynamic DNS wasn't an option because my ISP blocks all incoming traffic. ngrok would work but the free plan is too restrictive.
I bought a cheap 2GB RAM, 20GB disk VM + a 25GB volume on Hetzner for about 4 EUR/month. Hetzner gave me a static IP for it. I haven't purchased a floating IP yet.