Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:
sysctl -a | grep machdep.cpu.features | grep VMX
If there's output, you're good!
| DROP TABLE if exists temp; | |
| CREATE TABLE temp ( | |
| `table` varchar(250) DEFAULT NULL, | |
| `colum` varchar(250) DEFAULT NULL, | |
| `type` varchar(250) DEFAULT NULL, | |
| `number_of_PK` tinyint(2) DEFAULT NULL, | |
| `alter` varchar(250) DEFAULT NULL | |
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| import warnings | |
| from skimage.measure import compare_ssim | |
| from skimage.transform import resize | |
| from scipy.stats import wasserstein_distance | |
| from scipy.misc import imsave | |
| from scipy.ndimage import imread | |
| import numpy as np | |
| import cv2 | |
| ## |
| #!/bin/sh | |
| # Enhanced backup script | |
| # Sends messages to Zabbix based on exit code of borg executable | |
| # | |
| # anthonyclark AT G MAIL | |
| # Shellcheck will still kvetch at you if notices are enabled | |
| # | |
| # This script will not work AS-IS but is only provided as such | |
| # NO WARRANTIES | |
| # This work is licensed under a Creative Commons Attribution 4.0 International License. |
| // 'Hello World' nodejs6.10 runtime AWS Lambda function | |
| exports.handler = (event, context, callback) => { | |
| console.log('Hello, logs!'); | |
| callback(null, 'great success'); | |
| } |
| /* | |
| Go-Language implementation of an SSH Reverse Tunnel, the equivalent of below SSH command: | |
| ssh -R 8080:127.0.0.1:8080 operatore@146.148.22.123 | |
| which opens a tunnel between the two endpoints and permit to exchange information on this direction: | |
| server:8080 -----> client:8080 |
| 1. list all remote tags | |
| git ls-remote --tags | |
| 2. delete local tag | |
| git tag -d V_1_0_1 | |
| 3. push tag deletion to remote | |
| git push origin :refs/tags/V_1_0_1 | |
| 4. tag local branch again |
| # Create a container from the mongo image, | |
| # run is as a daemon (-d), expose the port 27017 (-p), | |
| # set it to auto start (--restart) | |
| # and with mongo authentication (--auth) | |
| # Image used is https://hub.docker.com/_/mongo/ | |
| docker pull mongo | |
| docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth | |
| # Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception) | |
| # add a root user |