Skip to content

Commit

Permalink
feat: new auto images (#35)
Browse files Browse the repository at this point in the history
* feat: new auto images

* feat: regenerate images

* feat: use the generator everywhere

* fix: simplify images
  • Loading branch information
bkielbasa authored Dec 30, 2021
1 parent 84486ce commit 17a0936
Show file tree
Hide file tree
Showing 140 changed files with 143 additions and 30 deletions.
Empty file added .hugo_build.lock
Empty file.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
deploy:
hugo
aws s3 cp public s3://developer20.com/ --recursive --acl public-read

featured:
bash ./generate-featured.sh
Binary file added baseImg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion content/post/add-header-to-every-request-in-go/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: "Add header to every request in Go"
publishdate: 2020-07-21

resources:
- name: header
- src: featured.jpg
- src: featured.png

short: Making changes to all HTTP requests can be handy. You may want to add an API key or some information about the sender like app version etc. No matter why you want to do that you have a few options to achieve the goal.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: An agony of trying to do the job
publishdate: 2017-12-27

resources:
- name: header
- src: featured.png

---
I’ll tell you a story of Igor. Igor is a web developer. He’s a young man with a girlfriend and some ambitious plan in the future. Igor sit at his desk because he has some work to do. In front of him is a PC. He turns it on and sees some system updates. 30 minutes have passed, and he can see his desktop with a beautiful wallpaper. Funny cats always make his day better. Some people are walking around his working desk, talking and drinking coffee. A typical day.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/post/books-i-read-in-2018/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: Books I read in 2018
publishdate: 2019-01-07

resources:
- name: header
- src: featured.png

---
I’m glad that this year I read so many valuable books. I want to share with you with the most interesting items which you may find interesting too.
## [Getting Things Programmed](https://helion.pl/ksiazki/getting-things-programmed-droga-do-efektywnosci-michal-bartyzel,droppp.htm#format/e)
Expand Down
Binary file removed content/post/custom-go-linter/featured.jpg
Binary file not shown.
Binary file added content/post/custom-go-linter/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion content/post/custom-go-linter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Writing custom linter in Go"
publishdate: 2021-03-31
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- Golang
- Programming
Expand Down
Binary file added content/post/entity-and-value-object/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
title: Entity and value object
publishdate: 2018-08-04
categories: [Programming]

resources:
- name: header
- src: featured.png

tags:
- ddd
- entity
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Extracting the business logic - the project"
publishdate: 2021-01-12
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- Golang
tags:
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion content/post/garnish-simple-varnish-in-go/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
- caching
resources:
- name: header
- src: featured.jpg
- src: featured.png
---

The varnish is a well-known HTTP accelerator. As the continuation of the [GoInPractice](https://developer20.com/categories/GoInPractice/) series, today I’ll show how you can build a simple (and naive) varnish implementation in Go. Some of the code is reused from [Writing a reverse proxy](https://developer20.com/writing-proxy-in-go/) so if you don’t understand something, I recommend taking a look at the blog post.
Expand Down
Binary file removed content/post/go-context/featured.jpg
Binary file not shown.
Binary file added content/post/go-context/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion content/post/go-context/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
- context
resources:
- name: header
- src: featured.jpg
- src: featured.png
---

The `context` package in Go is quite simple and well-known. On the other hand, there are some misunderstandings while using it. Today, I'll try to explain all the most popular concerns and make more clear when and how use the `Context`.
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publishdate: 2019-01-25
categories: [Golang, Programming]
resources:
- name: header
- src: featured.jpg
- src: featured.png
tags:
- golang
- database
Expand Down
Binary file added content/post/go-mod-replace/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion content/post/go-mod-replace/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ categories:
tags:
- golang
- modules

resources:
- name: header
- src: featured.jpg
- src: featured.png
---

Sometimes, we may want to use a library but a slightly modified version. It happens very often when we develop the library but test it in the context of an application. Go has a handy mechanism in go modules that can help us with it.
Expand Down
Binary file removed content/post/go-web-frameworks/featured.jpg
Binary file not shown.
Binary file added content/post/go-web-frameworks/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion content/post/go-web-frameworks/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
title: Go web frameworks
publishdate: 2020-08-10

resources:
- name: header
- src: featured.jpg
- src: featured.png

categories:
- Golang
tags:
Expand Down
Binary file added content/post/gogoconf-2019/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ publishdate: 2019-07-05
tags:
- golang
- conference

resources:
- name: header
- src: featured.png
---
Recently I've been on the GoGoConf conference in Cracow. It was a cool opportunity to learn more and meet interesting persons. Today I'll tell you about my thoughts regarding every talk from 2019 edition. Most of the talks don't have video available yet but when the videos will be published I'll update the post.

Expand Down
Binary file added content/post/golang-tips-and-trics-i/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ publishdate: 2019-03-04
categories: [Golang, Programming]
tags:
- golang

resources:
- name: header
- src: featured.png
---

You should use the package `github.com/pkg/errors` instead of `errors` package for errors in your applications. The default package lacks a few things like:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ tags:
- golang
- interfaces

resources:
- name: header
- src: featured.png
---

When it comes to interfaces, a good practice is to create an interface where you'll use it. Creating interfaces in advanced is not recommended in Go. There are two exceptions:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ tags:
- golang
- graceful shutdown

resources:
- name: header
- src: featured.png
---
In the microservices' world, one thing what's worth considering is a graceful shutdown. This is important to not lose data while shutting down a container. The container orchestrator like Kubernetes can restart the container by sending `SIGTERM` or `SIGINT` signal. Those signals can be handled to safely close all connections and finish background tasks.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Binary file added content/post/golang-tips-and-trics-v/featured.png
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ tags:
- golang
- strucs

resources:
- name: header
- src: featured.png
---
While working with structures, there's a possibility to initialize the structure without providing the keys of fields.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ tags:
- golang
- tests

resources:
- name: header
- src: featured.png
---


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ tags:
- golang
- modules
- proxy

resources:
- name: header
- src: featured.png
---

In Go 1.13 all modules are provided using a proxy. The proxy caches dependencies what helps to make sure that the version of an external dependencies will never change. If the vendor remove the version and create a new one with the same version, only the first one will be provided.
Expand Down
Binary file removed content/post/grpc-ssl/featured.jpg
Diff not rendered.
Binary file added content/post/grpc-ssl/featured.png
2 changes: 1 addition & 1 deletion content/post/grpc-ssl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
- grpc
resources:
- name: header
- src: featured.jpg
- src: featured.png
---

gRPC supports [authentication](https://grpc.io/docs/guides/auth/). Adding it to your project is simple. All you have to do is configure it with just a few lines of code. One of the authentication types that gRPC supports is SSL/TLS. From the server-side, the code looks like this:
Expand Down
Binary file added content/post/history-of-www/featured.png
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title: "History of WWW"
publishdate: 2018-05-02

resources:
- name: header
- src: featured.png
---
The history of the WWW wasn’t simple and still isn’t. In the beginning, it was a complete mess. Every browser tried to meet developers halfway without any standards or cooperation with other web browser’s developers.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: How I organize packages in Go
publishDate: 2019-08-22
categories: [Golang, Programming]
tags: [golang]
resources:
- name: header
- src: featured.png

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: "How to name exceptions? It’s not so obvious..."
publishDate: 2018-04-02

resources:
- name: header
- src: featured.png

---
Naming things is one of the most difficult things in our job. Naming exceptions are even more complicated because exceptions are not regular classes. In this article, I’ll tell you a bit about naming conventions I’ve found and tell pros and cons of them.
## The ‘Exception’ suffix. To add or not to add
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ tags:
- channels
- concurrency

resources:
- name: header
- src: featured.png
---
Channels in golang are referenced type. It means that they are references to a place in the memory. The information can be used to achieve the goal.

Expand Down
Binary file removed content/post/how-to-structure-go-code/featured.jpg
Diff not rendered.
2 changes: 1 addition & 1 deletion content/post/how-to-structure-go-code/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:
- golang
resources:
- name: header
- src: featured.jpg
- src: featured.png
---

> Programs should be written for people to read, and only incidentally for machines to execute - Abelson and Sussman
Expand Down
Diff not rendered.
2 changes: 1 addition & 1 deletion content/post/http-connection-livetime/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "HTTP context livetime"
publishdate: 2021-08-09
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- Golang
tags:
Expand Down
Binary file removed content/post/i-talk-to-scammers/featured.jpg
Diff not rendered.
Binary file added content/post/i-talk-to-scammers/featured.png
2 changes: 1 addition & 1 deletion content/post/i-talk-to-scammers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "I talk to spammers. Here is what I found"
publishdate: 2020-08-25
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- General
tags:
Expand Down
Binary file removed content/post/i-want-to-learn-go/featured.jpg
Diff not rendered.
Binary file added content/post/i-want-to-learn-go/featured.png
2 changes: 1 addition & 1 deletion content/post/i-want-to-learn-go/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "I want to learn Go - how to start?"
publishdate: 2019-12-09
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- Golang
tags:
Expand Down
Binary file added content/post/indexing-in-mysql/featured.png
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ tags:
- indexes
- b-tree-plus
- explain

resources:
- name: header
- src: featured.png

---
Why do we use indexes? Searching through a row in a sorted file with N length takes O(log2N) comparisons and the same number of reads from a filesystem which is heavy itself. However, tables in databases are not sorted which complicates the operation, Especially, if you have a lot of reads, updates and deletions on them. Writing the sorted version of the file (table) would dramatically slow the database down. There is one more thing which makes it even more complicated: every table may be sorted in more than one order. That’s why we use indexes which hold only attributes used in sorting and a reference to the place where the data are kept.

Expand Down
Binary file removed content/post/is-my-interface-too-big/featured.jpg
Diff not rendered.
Binary file added content/post/is-my-interface-too-big/featured.png
2 changes: 1 addition & 1 deletion content/post/is-my-interface-too-big/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Is my interface too big?"
publishdate: 2020-10-28
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- Golang
tags:
Expand Down
Binary file added content/post/learning-on-mistakes/featured.png
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
title: Learning On Mistakes
publishDate: 2019-03-25
resources:
- name: header
- src: featured.png

---
There are many situations which can cause unavailability. One of them can be a bug in a software, bad architecture design decisions or even [a human error](https://aws.amazon.com/message/41926/). Depending on how the numbers are calculated, from [22%](https://cloudscene.com/news/2017/07/datacenterdowntime/) to even [70%](https://www.cw.com.hk/it-hk/uptime-institute-70-dc-outages-due-to-human-error) of outages are caused by human error. Software engineers, DevOps or administrators cannot prevent all the outages but we can learn from ourselves to improve the stability and reliability of systems we are creating. In this article, I will present how Brainly learns on his mistakes to improve the stability and latency of its infrastructure.

Expand Down
Binary file added content/post/mutational-tests/featured.png
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ categories: [Programming]
tags:
- tests
- mutational testing
resources:
- name: header
- src: featured.png
---
When you have a very simple application it’s not so important to test every edge case but in a project, in the very complex domain, the priority of it will increase. The more high-quality the tests, the more high-quality the code. Mutational tests will help you with making sure you did not miss some a variant of the flow in your code.

Expand Down
Binary file removed content/post/oauth2-and-go/featured.jpg
Diff not rendered.
Binary file added content/post/oauth2-and-go/featured.png
2 changes: 1 addition & 1 deletion content/post/oauth2-and-go/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "OAuth2 and Go"
publishdate: 2020-03-09
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- Golang
- GoInPractice
Expand Down
Diff not rendered.
2 changes: 1 addition & 1 deletion content/post/periodically-restarting-apps-on-k8s/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Periodically restarting apps on Kubernetes"
publishdate: 2021-04-12
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- DevOps
tags:
Expand Down
Diff not rendered.
2 changes: 1 addition & 1 deletion content/post/pointer-and-value-semantics-in-go/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ categories: [Golang, Programming]
publishDate: 2020-06-29
resources:
- name: header
- src: featured.jpg
- src: featured.png

tags:
- golang
Expand Down
Diff not rendered.
2 changes: 1 addition & 1 deletion content/post/refactoring-for-better-testability/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Refactoring for better testability"
publishdate: 2020-11-17
resources:
- name: header
- src: featured.jpg
- src: featured.png
categories:
- Golang
tags:
Expand Down
Binary file added content/post/scientific-method/featured.png
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ categories: [Programming]
tags:
- tests
- scientific-method

resources:
- name: header
- src: featured.png
---
In 50′ and 60′ input data for programs from those years were written on paper tapes or punch cards. Writing code, compiling and testing loop took from a few hours to even few days. It was the beginning of programming we know it.

Expand Down
Diff not rendered.
2 changes: 1 addition & 1 deletion content/post/services-in-ddd-finally-explained/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags:
- ddd
resources:
- name: header
- src: featured.jpg
- src: featured.png
---
I’ve noticed that there is always a challenge of understanding what services are in a context of Domain-Driven Development and what is the difference between a service in an application, domain, and infrastructure layer.

Expand Down
Binary file added content/post/software2.0/featured.png
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title: Software 2.0
publishdate: 2019-05-24

resources:
- name: header
- src: featured.png
---

There are, at least, two excellent articles about Software 2.0. [Andrzej Karpathy](https://medium.com/@karpathy/software-2-0-a64152b37c35) and [Carlos E. Perez](https://medium.com/intuitionmachine/is-deep-learning-software-2-0-cc7ad46b138f) wrote blog posts which cover the topic. In this article, I will explain how I understand the term “Software 2.0” what, I hope, will give you a different point of view on the main topic.
Expand Down
Binary file removed content/post/summary-of-2019/featured.jpg
Diff not rendered.
Binary file added content/post/summary-of-2019/featured.png
2 changes: 1 addition & 1 deletion content/post/summary-of-2019/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Summary of 2019"
publishdate: 2020-01-01
resources:
- name: header
- src: featured.jpg
- src: featured.png
---

This is the very first time I write a summary of a year. I feel that today is the day I should start doing it and that some digits may be interesting for some people.
Expand Down
Binary file removed content/post/tcp-scanner-in-go/featured.jpg
Diff not rendered.
Binary file added content/post/tcp-scanner-in-go/featured.png
Loading

0 comments on commit 17a0936

Please sign in to comment.