terraform Hetzner DNS via Terraform 01. July 2020 - Hetzner just launched Free DNS Management solution [https://www.hetzner.com/news/07-20-dns/]. EDIT: You can use my link https://hetzner.cloud/?ref=iMdF1UjNssSX and you will receive € 20 in cloud credits. Here is my tutorial, how to setup your DNS records programmatically via Terraform Install
docker Solved: Cannot find module '../build/Release/sharp.node' If you built Docker image with compiled binaries for Linux, you cannot run this image on Windows. Dockerized Sharp installed with --arch=x64 --platform=linux will end up with error: /app/node_modules/sharp/lib/constructor.js:34 throw new Error(error); ^ Error: Something went wrong installing the "sharp&
How to report ETH/BTC Giveaway Crypto scams on Youtube There is no easy way, how to report Scam Advertisements on Youtube, but solution exists. ❌ There is no way, how to report Scam Advert on Youtube, when watching on TV How to report on computer 1. Pause advertisement 2. Right click inside the video Advert and select: Stats for nerds
nginx How to serve WEBP instead of JPG This article will help you serve your jpeg images in next gen format like WEBP Imagine that our obsolete image has url: /img/food/1024x1024/recepty/kureci-spizy-s-chrestem.jpg [https://cdn.chrestoveslavnosti.cz/img/food/1024x1024/recepty/kureci-spizy-s-chrestem.jpg] Steps: 1. Generate new webp pictures next to your jpg pictures -
kubernetes Windows Terminal Preview - create shorthand for Kubernetes port-forward If you are using new Windows Terminal (in Preview Stage), you can add new Terminal profiles via Settings menu. You can "hack" this options to shorthands for your long commands, e.g. kubectl port-forward. How to do it? Simply duplicate one of Console type and change commandline and
gitlab Solved - migrate from sameersbn/postgresql to official postgresql:12 docker image After upgrade from Gitlab 12.8 to 12.9 sameersbn/gitlab:12.9 I got this error ERROR: operator class "gin_trgm_ops" does not exist for access method "gin" In official PostgreSQL docker image is no DB_EXTENSION ENV param, so you have to manually
bookmarklet Solved - How to remove (uncheck) all your Twitter interests? Twitter collects all your interests and you can uncheck these on this page https://twitter.com/settings/your_twitter_data/twitter_interests But there are maybe 1000+ items to uncheck, but no way how to remove them all. I have created simple bookmarklet. Create new favorite page (Bookmark - ctrl
kubernetes How to set REMOTE_ADDR from HTTP_X_ORIGINAL_FORWARDED_FOR header when going through EZOIC proxy cache Prerequisites: * kubernetes ingress * your varnish proxy cache * Symfony PHP application 1. Edit your global Kubernetes Ingress Config Map in namespace ingress-nginx named nginx-configuration [https://rancher2.exploit.cz/p/local:p-mt7fw/config-maps/ingress-nginx:nginx-configuration] and add use-forwarded-headers: true 2. In your Varnish proxy in section sub vcl_recvadd if (req.http.
javascript How to Auto Scroll in long Autocomplete list when keyPress Up and Down You have to add attribute tabindex="-1" and set .focus() on active element. Look at my patch here https://github.com/ashokvishwakarma/preact-typeahead/commit/2dc53c3c5abc37b1a0428889917608a4a0740123 autofocus to selected element · ashokvishwakarma/preact-typeahead@2dc53c3A TypeHead component for Preact. Contribute to ashokvishwakarma/preact-typeahead development by creating an account on GitHub.GitHubashokvishwakarma
kubernetes How to force renew Let's Encrypt certificate in Kubernetes via Cert Manager > We recently discovered a bug in the Let's Encrypt certificate authority code, described here: https://community.letsencrypt.org/t/2020-02-29-caa-rechecking-bug/114591 Unfortunately, this means we need to revoke the certificates that were affected by this bug, which includes one or more of your certificates. To avoid disruption,
xdebug How to debug if session id cookie goes through proxy cache Run curl command direct from you server, where application run - in my case local app is running on localhost and standard port 80 so I use http://localhost and set your app domain in Host, in my case www.recepty.eu /var/www/html # curl -I -H "Host:
xdebug Solved - PHPStorm xDebug remote Debug not working Every PHP developer should be familiar with remote Debugging via xDebug or Zend Debug but how to Debug not working Xdebug environment? Read our article. Xdebug remote debug will connect to remote_host on default port 9000, where your PHPStorm should listen. Example xDebug config zend_extension=/usr/local/lib/
reality Jak udělat z neprodejné nemovitosti voňavé hnízdečko lásky - Exekuční dražba RD Oslavany Prodej rodinného domu 3+1 v Oslavanech. Celková plocha 475 m2. Řadový rodinný dům s garáží, předzahrádkou 73 m2 a uzavřeným dvorem. Za domem se nachází terasovitá zahrada o výměře 181 m2 a sklep. Dům je po rekonstrukci (nové rozvody, okna, dveře, garážová vrata, podlahy, nová koupelna, nová kuchyňská linka
elasticsearch How to Search across multiple ElasticSearch Indexes with Symfony FOS\ElasticaBundle ElasticSearch v6.0 deprecated multiple types in one index. You can read more here: Removal of mapping types [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html] How to deal with this breaking change? Create MultiIndex.php file in your Symfony App project <?php declare(strict_
kubernetes How to autoreload Varnish Cache backends when Kubernetes Deployment changed You can use quay.io/spaces/kube-httpcache:stable - Github README [https://github.com/mittwald/kube-httpcache/blob/master/README.md] Necessary configuration when RBAC is enabled: * create ServiceAccount: kubectl --kubeconfig kube_config_cluster.yml -n web create serviceaccount varnish-watcher * create ClusterRole + ClusterRoleBinding: kubectl --kubeconfig kube_config_cluster.yml apply -f
wd How to secure WD My Passport Pro with SSH key * firstly enable ssh access from WD My Cloud GUI and setup your own secure password * login to ssh with your password * modify permissions on /home/root dir - it is too wide open - chmod 755 /home/root * generate new public/private keys ssh-keygen -t ed25519 or use your old
wd Weakness of WD My Passport PRO 4TB (WDBSMT0040BBK-EESN) What everyone keeps in secret from you when reviewing this device - Cons: * You bought network device that needs security patches * It has old firmware from year 2017 * Old UNSECURE Linux kernel - Linux 3.10.24-rtk-nas #58 SMP PREEMPT Fri Dec 15 22:00:09 CST 2017 armv7l GNU/
kubernetes Failed upgrade - Kubernetes cluster managed by RKE to v1.14 I am using RKE cli tool from Rancher for upgrading Kubernetes cluster, but instead of using rancher/nginx-ingress-controller:0.21 I am using kubernetes-ingress-controller/nginx-ingress-controller:0.25.0. In Kubernetes v1.13 kubernetes-ingress-controller/nginx-ingress-controller:0.25.0 works well but stopped after upgrade. You will get this error in ingress
osvč Co má dělat OSVČ neplátce DPH v roce 2019 pokud jde na pracák > Jít na úřad práce není nic ponižujícího, jednou do systému odvádíte peníze, takže máte i nárok na jejich čerpání formou podpory v nezaměstnanosti. Jediná podmínka pro možnost čerpání je mít odpracováno alespoň 12 měsíců za poslední 2 roky. Máte hodně zakázek a cítíte syndrom vyhoření, možná pro vás bude
kubernetes Featured Levný ale výkonný Kubernetes Cluster > Poprvé jsem s k8s experimentoval již v roce 2016, tehdy jsem ale nevyřešil neustálé problémy s ETCD. Cluster se vždy do měsíce rozpadl. Když jsem se na přelomu roku 2017/2018 rozhodoval kam dál posunout svoje zkušenosti s Dockerizováním aplikací, Kubernetes (k8s) byla jasná volba. Stál jsem ale před
mariadb MySQL / MariaDB - SET GLOBAL time_zone = 'Europe/Prague'; Error 1298 ERROR 1298 (HY000): Unknown or incorrect time zone: 'Europe/Prague' Firstly you have to import timezones into mysql database mysql_tzinfo_to_sql /usr/share/zoneinfo/|mysql -u root mysql mysql_tzinfo_to_sql /usr/share/zoneinfo/Europe/Prague Europe/Prague | mysql -u root Now you can run
Upgrade Windows Server Docker 1.12 to latest version Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force Install-Module -Name DockerMsftProvider -Force Install-Package -Name docker -ProviderName DockerMsftProvider -Force Restart-Computer -Forc
docker Build custom Windows Server Docker Image with .NET Framework Build Tools for AWS CodeBuild Preinstalled * GIT * AWS CLI Dockerfile # escape=` FROM microsoft/dotnet-framework:4.7.2-runtime SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] #Install NuGet CLI ENV NUGET_VERSION 4.4.1 RUN New-Item -Type Directory $Env:ProgramFiles\NuGet; ` Invoke-WebRequest -UseBasicParsing https://dist.nuget.
docker Troubleshoot Windows Docker container network Problems * unable to resolve host google.com * Ping request could not find host google.com. Please check the name and try again. * UnKnown can't find google.com: Server failed Solution C:\>ping github.com Ping request could not find host github.com. Please check the name and