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!
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
I bought new Macbook Pro 15 Retina. These are tools I like to install on macOS operating system.
xcode-select --installWhenever we change our templates we still have to use our build script and this can get annoying. Thankfully with webpack-dev-server and BrowserSync we can fix this:
npm i -D browser-sync browser-sync-webpack-plugin webpack-dev-server
BrowserSync will act like a proxy, waiting for webpack to do its thing and then reloading the browser for us.
| ogr2ogr -f MySQL MySQL:DATABASENAME,host=localhost,user=USER,password=PASSWORD SHAPEFILE.shp -nln TABLENAME -update -overwrite -lco engine=MYISAM |
| #!/usr/bin/python2 | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2011 Sebastian Wiesner <[email protected]> | |
| # Modifications by Charl Botha <[email protected]> | |
| # * customWidgets support (registerCustomWidget() causes segfault in | |
| # pyside 1.1.2 on Ubuntu 12.04 x86_64) | |
| # * workingDirectory support in loadUi | |
| # found this here: | |
| # https://github.com/lunaryorn/snippets/blob/master/qt4/designer/pyside_dynamic.py |
A running example of the code from:
This gist creates a working example from blog post, and a alternate example using simple worker pool.
TLDR: if you want simple and controlled concurrency use a worker pool.
| # Secure adminer setup | |
| # Author Taras Kozlov | |
| # download adminer to separate directory | |
| mkdir -p /var/www/admin | |
| cd /var/www/admin | |
| wget http://www.adminer.org/latest.php -O adminer.php | |
| echo '<?php phpinfo(); >' > info.php | |
| sudo -i |