Skip to content

Commit

Permalink
chore(content/posts|content/til): convert some contents into til
Browse files Browse the repository at this point in the history
resolve #713
  • Loading branch information
mateusfg7 committed Dec 18, 2023
1 parent b00a6b2 commit cf94ea5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
title: 'Oak Over Https'
description: 'Integrando Oak com certificados SSL'
date: '2021-01-08'
category: How To
tags: 'ssl, cryptography, secure-internet, back-end, deno'
author: 'mateusfg7'
status: 'published'
tags:
- 'ssl'
- 'cryptography'
- 'secure-internet'
- 'back-end'
- 'deno'
---

## Dependencies
## Dependências

Primeiro devemos certificar que temos o programa `openssl`

Expand All @@ -32,7 +34,7 @@ _(debian based)_
apt-get install openssl
```

## Generate Keys
## Gerar Chaves

Para gerar a chave privada e o certificado rode o comando:

Expand All @@ -48,7 +50,7 @@ openssl rsa -in keytmp.pem -out key.pem

ja pode excluir o arquivo `keytmp.pem`, ele não será mais necessário.

## Use Oak with Key and Certificate
## Usar Oak com a chave e o certificado

Para usar Oak com HTTPS devemos passar os atributos `secure`, `certFile` e `keyFile`.
como o exemplo a seguir:
Expand All @@ -62,9 +64,7 @@ await App.listen({
})
```

---

## referências
## Referências

How To Create an HTTPS Server on Localhost using Express: [https://medium.com/@nitinpatel_20236/how-to-create-an-https-server-on-localhost-using-express-366435d61f28](https://medium.com/@nitinpatel_20236/how-to-create-an-https-server-on-localhost-using-express-366435d61f28) [[_archive_](https://web.archive.org/web/20210920213433/https://medium.com/@nitinpatel_20236/how-to-create-an-https-server-on-localhost-using-express-366435d61f28)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
---
title: 'Black Wallpaper Bug on XFCE4'
date: '2021-06-21'
lastUpdate: '2022-08-10'
description: 'Black wallpaper on xfce4 when restart the computer'
category: 'How To'
tags: 'bug, desktop, how-to, xfce'
author: 'mateusfg7'
status: 'published'
date: '2021-06-21'
tags:
- 'bug'
- 'desktop'
- 'how-to'
- 'xfce'
---

# How to fix

This problem consists of black background insted the wallpaper on xfce4, apparently is the `xfdesktop` daemon that was not starting on login. To fix it, wee just need to setup this daemon to auto start on login:

1. Go to `Session and Startup` > `Application Autostart`
2. Then click on `Add`
3. Will appear a window, enter some name, like "Wallpaper Daemon" and the description, "Daemon to load the xfce4 wallpaper", on the command field, add the command `xfdesktop --replace`.
4. After save the config, restart the computer.

---

# references
**references:**

Desktop background appears black when using XFCE: [https://unix.stackexchange.com/questions/151471/desktop-background-appears-black-when-using-xfce](https://unix.stackexchange.com/questions/151471/desktop-background-appears-black-when-using-xfce) [[_archive_](https://web.archive.org/web/20210922134420/https://unix.stackexchange.com/questions/151471/desktop-background-appears-black-when-using-xfce)]
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
---
title: 'Enable Locales on GNOME'
date: '2022-08-10'
description: 'Enable some locales to use when they not appear on "Region & Language" menu'
category: 'How To'
tags: 'desktop, how-to, languages, config, gnome'
author: 'mateusfg7'
status: 'published'
date: '2022-08-10'
tags:
- 'desktop'
- 'how-to'
- 'languages'
- 'config'
- 'gnome'
---

# Introduction

When we go to Region & Language menu to change locale (language and units) of a newly installed system with GNOME, may not have the language you are looking for. For the most cases is a question of enable it on `/etc/locale.gen`.

# Enable Locale

For this, just edit the file `/etc/locale.gen` with root privileges:

Expand Down Expand Up @@ -42,8 +41,6 @@ sudo locale-gen

That's it! Just go to Region & Language and select your language.

---

# Referencies
**referencies:**

Gnome (Debian 11): How to install en*DK formats (date, numbers, units)?: https://unix.stackexchange.com/questions/679315/gnome-debian-11-how-to-install-en-dk-formats-date-numbers-units [[\_archive*](https://web.archive.org/web/20220810182103/https://unix.stackexchange.com/questions/679315/gnome-debian-11-how-to-install-en-dk-formats-date-numbers-units)]

1 comment on commit cf94ea5

@vercel
Copy link

@vercel vercel bot commented on cf94ea5 Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.