This guide will show you how to use Cloudflare tunnels to make services on your local network accessible from the outside world via a secure HTTPS domain. So you can setup https://xxx.yourdomain.com to point for example to 127.0.0.1:5000 on your local network. Use Cloudflare tunnels Install cloudflared docker container on local server and set up a domain to proxy traffic via a Cloudflare tunnel.…
Usefull webpages find packages central.sonatype.com find vulnerabilities ossindex.sonatype.org find CVEs nvd.nist.gov List dependencies gradle dependencies Setting Up the Dependency Check Plugin Next, you’ll need to set up the OWASP Dependency-Check Gradle plugin. Add the following to your build.gradle file: plugins { id("org.owasp.dependencycheck").version("11.1.1") } Setup The plugin requires…
I wanted to improve my touch typing skills. I was able to write all characters (a-z only) without looking at the keyboard, but I had to look at all symbols and numbers. So, I will share my progress over a year of practice. I used typing.io to practice typing real code. There are many languages to try, such as Bash, PHP, C, and more. This is awesome because each language uses a different set of…
If you are java or kotlin programmer and you are using IntelliJ IDEA on new Mac be sure you are using correct Java JDK. It can make huge difference how fast you code is build. I was using generic JDK previously and running my tests took more than 3 minutes. With Correto JDK for aarch64 they are 4x times faster! So please pick some JDK wich is for your platform. For Apple Sillicon it is aarch64…
Sometimes you may need HTTPS on your localhost. For example when you want to try some otherwise restricted API in JavaScript. There is easy way how to do that with Caddy server . This config file will create reverse proxy from https://localhost:2000 to some service which runs on 127.0.0.1:4000 . Caddy v2 config file localhost:2000 reverse_proxy 127.0.0.1:4000 tls internal start server with config…
Second version of Caddy server introduced incompatibilities with previous version. There is Caddy migration guide . I was following it and changed old proxy config to new reverse_proxy . Caddy v1 config example.com { tls somebody@example.com proxy / 127.0.0.1:2000 log /var/log/example.log } invalid Caddy v2 config example.com { tls somebody@example.com reverse_proxy / 127.0.0.1:2000 log { format…
For converting we will use tool calibre . Install it on mac via brew install calibre Then you can use ebook-convert CLI to do the work. For example to convert epub format to pdf. ebook-convert book.epub book.pdf And PDF you can send to Kindle via Send to Kindle mac application. links calibre Send to Kindle ebook libraries: z-lib.org, 1lib.cz Convert books for Kindle was originally published by…
When you are developing new Jenkins pipeline, it can be tedious process. Every change you made needs to be committed and pushed. You need to create test job and run it. And only ofter that you will get noticed about small typo and you have to start again. Much efficient way would be to check syntax locally. Jenkis has nice API for Jenkisfile validation . curl --user username:password -X POST -F \…
You will need awesome commandline program called jhead . It can set EXIF “create date” to file system timestamp. You can do it in bulk with this command: ls -d */ | xargs -I {} bash -c "./jhead -ft '{}'*" It will do it for every photo in every subdirectory in current folder. links Download jhead command How to import directories to iCloud photos Show EXIF in Acorn Backup old photos was originally…
If you install kubectl via brew and every comand fail with some cryptic runtime stack like this: kubectl version failed MSpanList_Insert 0x1c5d000 0x2b0621b1193 0x0 fatal error: MSpanList_Insert runtime stack: runtime.throw(0x1a00f6b) /usr/src/go/src/runtime/panic.go:491 +0xad fp=0x7ffeefbfefa0 sp=0x7ffeefbfef70 runtime.MSpanList_Insert(0x1a37888, 0x1c5d000) /usr/src/go/src/runtime/mheap.c:692…
When your logstash pipelines starts tens of minutes, you can have these problems: Not enought entropy - logstash doesn’t have enought random numbers You have a lot S3 outputs (doesn’t matter if one bucket or many of them Github issue ) S3 output plugin Try to limit number of outputs. If you want to save logs to different paths in you S3 bucket. You can use mutate filter and add path to event. And…
If you are using automatic building and testing with Travis CI, it would be nice to automatically deploy code. So your pull requests will be tested and after you merge them to master branch - code will be redeployed. Prepare SSH key for Travis We need to store private key base64 encoded to Travis. Create or reuse private key which can connect to your production server Ensure key is NOT encrypted…
Learning Let’s try to imagine, you want to learn same cool framework. For example Polymer . There is plenty of online lessons so you try this one on egghead . It has 4 minutes and it’s clear and understandable. Cool. But what could happen, when you try to do it yourself? Coding First thing in lesson says that you should start with command bower install polymer . What could go wrong? Maybe this:…
How to host website with custom domain and https enabled on S3 bucket. Deployment is done by committing to GIT. 1. DNS Create hosted zone in AWS console Route53 Point your domain name servers to AWS 2. Create S3 bucket Create S3 bucket Enable webhosting Content policy 3. Create certificate Use correct region AWS Certificate Manager 4. Cloud Front Create Cloud Front Point Route53 Domain to Cloud…