From 0e191433328094673dacc22b16cc5d3bac02c4dc Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 16 Oct 2025 20:20:15 -0300 Subject: ; --- public/post/2012/01/23/juicy-code/index.html | 129 +++++++++++ .../2012/03/12/command-line-awesomeness/index.html | 117 ++++++++++ public/post/2012/04/23/hacker-with-horn/index.html | 119 ++++++++++ .../2018/08/30/markdown-guide-modified/index.html | 250 +++++++++++++++++++++ public/post/2025/09/27/bem-vindo/index.html | 120 ++++++++++ .../2025/09/30/host-a-blog-with-hugo/index.html | 206 +++++++++++++++++ public/post/index.html | 117 ++++++++++ public/post/index.xml | 26 +++ 8 files changed, 1084 insertions(+) create mode 100644 public/post/2012/01/23/juicy-code/index.html create mode 100644 public/post/2012/03/12/command-line-awesomeness/index.html create mode 100644 public/post/2012/04/23/hacker-with-horn/index.html create mode 100644 public/post/2018/08/30/markdown-guide-modified/index.html create mode 100644 public/post/2025/09/27/bem-vindo/index.html create mode 100644 public/post/2025/09/30/host-a-blog-with-hugo/index.html create mode 100644 public/post/index.html create mode 100644 public/post/index.xml (limited to 'public/post') diff --git a/public/post/2012/01/23/juicy-code/index.html b/public/post/2012/01/23/juicy-code/index.html new file mode 100644 index 0000000..47a30aa --- /dev/null +++ b/public/post/2012/01/23/juicy-code/index.html @@ -0,0 +1,129 @@ + + + + + + + + + + + + + Juicy Code | azuminha + + + + + + + +
+ +
+ + +
+

Juicy Code

+

Open Source

+

2012/01/23

+

+ + + Categories: Code + + + + Tags: Juicy + + +

+
+ + + +
+
+

Check out this JUICY! code:

+
def with_value_from_database(value)
+  self.class.from_database(name, value, type)
+end
+
+def with_cast_value(value)
+  self.class.with_cast_value(name, value, type)
+end
+
+def with_type(type)
+  if changed_in_place?
+    with_value_from_user(value).with_type(type)
+  else
+    self.class.new(name, value_before_type_cast, type, original_attribute)
+  end
+end
+
+ >> Home +
+
+ + + + diff --git a/public/post/2012/03/12/command-line-awesomeness/index.html b/public/post/2012/03/12/command-line-awesomeness/index.html new file mode 100644 index 0000000..df975bf --- /dev/null +++ b/public/post/2012/03/12/command-line-awesomeness/index.html @@ -0,0 +1,117 @@ + + + + + + + + + + + + + Command Line Awesomeness | azuminha + + + + + + + +
+ +
+ + +
+

Command Line Awesomeness

+ +

2012/03/12

+

+ + + Categories: Blog + + + + Tags: HTML + + +

+
+ + + +
+
+

This crud is called HTML (HyperText Markup Language) and it is basically a very simple programming language instructing your web browser how to draw a page on a screen. Anyone can learn HTML and many people do. The important thing is that no matter what splendid multimedia web pages they might represent, HTML files are just telegrams.

+
+

When Ronald Reagan was a radio announcer, he used to call baseball games by reading the terse descriptions that trickled in over the telegraph wire and were printed out on a paper tape. He would sit there, all by himself in a padded room with a microphone, and the paper tape would eke out of the machine and crawl over the palm of his hand printed with cryptic abbreviations. If the count went to three and two, Reagan would describe the scene as he saw it in his mind’s eye: “The brawny left-hander steps out of the batter’s box to wipe the sweat from his brow. The umpire steps forward to sweep the dirt from home plate.” and so on. When the cryptogram on the paper tape announced a base hit, he would whack the edge of the table with a pencil, creating a little sound effect, and describe the arc of the ball as if he could actually see it. His listeners, many of whom presumably thought that Reagan was actually at the ballpark watching the game, would reconstruct the scene in their minds according to his descriptions.

+

This is exactly how the World Wide Web works: the HTML files are the pithy description on the paper tape, and your Web browser is Ronald Reagan. The same is true of Graphical User Interfaces in general.

+ + >> Home +
+
+ + + + diff --git a/public/post/2012/04/23/hacker-with-horn/index.html b/public/post/2012/04/23/hacker-with-horn/index.html new file mode 100644 index 0000000..586ea8d --- /dev/null +++ b/public/post/2012/04/23/hacker-with-horn/index.html @@ -0,0 +1,119 @@ + + + + + + + + + + + + + Hacker with Bullhorn | azuminha + + + + + + + +
+ +
+ + +
+

Hacker with Bullhorn

+

Open-Source

+

2012/04/23

+

+ + + Categories: Bullhorn Example + + + + +

+
+ + + +
+
+

Hacker with bullhorn: “Save your money! Accept one of our free tanks! It is invulnerable, and can drive across rocks and swamps at ninety miles an hour while getting a hundred miles to the gallon!”

+

Prospective station wagon buyer: “I know what you say is true…but…er…I don’t know how to maintain a tank!”

+

Bullhorn: “You don’t know how to maintain a station wagon either!”

+

Buyer: “But this dealership has mechanics on staff. If something goes wrong with my station wagon, I can take a day off work, bring it here, and pay them to work on it while I sit in the waiting room for hours, listening to elevator music.”

+

Bullhorn: “But if you accept one of our free tanks we will send volunteers to your house to fix it for free while you sleep!”

+

Buyer: “Stay away from my house, you freak!”

+

Bullhorn: “But…”

+

Buyer: “Can’t you see that everyone is buying station wagons?”

+ + >> Home +
+
+ + + + diff --git a/public/post/2018/08/30/markdown-guide-modified/index.html b/public/post/2018/08/30/markdown-guide-modified/index.html new file mode 100644 index 0000000..b52a19e --- /dev/null +++ b/public/post/2018/08/30/markdown-guide-modified/index.html @@ -0,0 +1,250 @@ + + + + + + + + + + + + + Markdown Guide (modified) | azuminha + + + + + + + +
+ +
+ + +
+

Markdown Guide (modified)

+

Open Source

+

2018/08/30

+

+ + + Categories: Example + + + + Tags: Markdown + + +

+
+ + + +
+
+

An h1 header

+

Paragraphs are separated by a blank line.

+

2nd paragraph. Italic, bold, and monospace. Itemized lists +look like:

+
    +
  • this one
  • +
  • that one
  • +
  • the other one
  • +
+

Note that — not considering the asterisk — the actual text +content starts at 4-columns in.

+
+

Block quotes are +written like so.

+

They can span multiple paragraphs, +if you like.

+

Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., “it’s all +in chapters 12–14”). Three dots … will be converted to an ellipsis. +Unicode is supported. ☺

+

An h2 header

+

Here’s a numbered list:

+
    +
  1. first item
  2. +
  3. second item
  4. +
  5. third item
  6. +
+

Note again how the actual text starts at 4 columns in (4 characters +from the left side). Here’s a code sample:

+
# Let me re-iterate ...
+for i in 1 .. 10 { do-something(i) }
+
+

As you probably guessed, indented 4 spaces. By the way, instead of +indenting the block, you can use delimited blocks, if you like:

+
define foobar() {
+    print "Welcome to flavor country!";
+}
+

(which makes copying & pasting easier). You can optionally mark the +delimited block for Pandoc to syntax highlight it:

+
import time
+# Quick, count to ten!
+for i in range(10):
+    # (but not *too* quick)
+    time.sleep(0.5)
+    print i
+

An h3 header

+

Now a nested list:

+
    +
  1. +

    First, get these ingredients:

    +
      +
    • carrots
    • +
    • celery
    • +
    • lentils
    • +
    +
  2. +
  3. +

    Boil some water.

    +
  4. +
  5. +

    Dump everything in the pot and follow +this algorithm:

    +
    find wooden spoon
    +uncover pot
    +stir
    +cover pot
    +balance wooden spoon precariously on pot handle
    +wait 10 minutes
    +goto first step (or shut off burner when done)
    +
    +

    Do not bump wooden spoon or it will fall.

    +
  6. +
+

Notice again how text always lines up on 4-space indents (including +that last line which continues item 3 above).

+

Here’s a link to a website, to a local +doc, and to a section heading in the current +doc. Here’s a footnote 1.

+

Tables can look like this:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
sizematerialcolor
9leatherbrown
10hemp canvasnatural
11glasstransparent
+

Table: Shoes, their sizes, and what they’re made of

+

(The above is the caption for the table.)

+

A horizontal rule follows.

+
+

Here’s a definition list:

+
+
apples
+
Good for making applesauce.
+
oranges
+
Citrus!
+
tomatoes
+
There’s no “e” in tomatoe.
+
+

(Put a blank line between each term/definition pair to spread +things out more.)

+

and images can be specified like so:

+

example image

+

Inline math equations go in like so: \(\omega = d\phi / dt\). +Display math should get its own line and be put in in +double-dollarsigns:

+

$$I = \int \rho R^{2} dV$$

+

And note that you can backslash-escape any punctuation characters +which you wish to be displayed literally, ex.: `foo`, *bar*, etc.

+

Images auto center:

+

Party

+
+
+
    +
  1. +

    Footnote text goes here. ↩︎

    +
  2. +
+
+ + >> Home +
+
+ + + + diff --git a/public/post/2025/09/27/bem-vindo/index.html b/public/post/2025/09/27/bem-vindo/index.html new file mode 100644 index 0000000..f33fd85 --- /dev/null +++ b/public/post/2025/09/27/bem-vindo/index.html @@ -0,0 +1,120 @@ + + + + + + + + + + + + + Bem Vindo | azuminha + + + + + + + +
+ +
+ + +
+

Bem Vindo

+ +

2025/09/27

+

+ + + + + +

+
+ + + +
+
+

Bem vindo

+

Aqui é somente um teste

+ + >> Home +
+
+ + + + + + + + diff --git a/public/post/2025/09/30/host-a-blog-with-hugo/index.html b/public/post/2025/09/30/host-a-blog-with-hugo/index.html new file mode 100644 index 0000000..9e7a52a --- /dev/null +++ b/public/post/2025/09/30/host-a-blog-with-hugo/index.html @@ -0,0 +1,206 @@ + + + + + + + + + + + + + Host a Blog With Hugo | azuminha + + + + + + + +
+ +
+ + +
+

Host a Blog With Hugo

+ +

2025/09/30

+

+ + + Categories: web self-hosted + + + + Tags: blog hugo server + + +

+
+ + + +
+
+

Hoje vou mostar como fiz para setar um blog com comentários usando Hugo e Comentario.

+
    +
  • Hugo é um framework open source para construção de websites estáticos, extremamente rápido e flexível.
  • +
  • Comentario é uma engine open source de comentários, fácil de integrar e auto-hospedável.
  • +
+

1. Utilizando o Hugo

+

Instalando o hugo

+

Se sua distribuição linux for baseado em Debian rode o comando

+
$ sudo apt install hugo
+

caso contrario você pode verificar na documentação.

+

Agora que você já tem ele instalado basta dar

+
hugo new site {nome-do-seu-blog}
+

que ele criara uma pasta com tudo que eh necessario.

+

Instalando um tema

+

Para instalar um tema veja os temas disponiveis pela comunidade no link, no meu caso atualmente estou usando o Hugo - Classic. +Depois de achar um que gostou faca:

+
cd {nome-do-seu-blog}/themes
+git init
+git submodule add link-do-github
+

Abra o arquivo hugo.toml e edite a variavel theme para a pasta criada dentro da pasta do hugo.

+

Criando um post

+

Para criar um post eh muito simples tambem, basta rodar

+
hugo new content content/post/nome-do-post.md
+

Agora basta escrever o seu post em com markdown. Acesse aqui para mais informacoes sobre markdown.

+

Buildando

+

Para finalizar rode

+
hugo
+

que ele vai atualizar tudo que eh necessario e publicar seu post

+
+

2. Setando o comentario

+

Existem diversas formas de voce instalar o comentario, porem eu fiz isso utilizando docker. Para isso certifique que você tenha o docker instalado

+
docker version
+

e crie um arquivo chamado docker-compose.yml

+
services:
+  app:
+    image: registry.gitlab.com/comentario/comentario:latest-ubuntu
+    environment:
+      BASE_URL: https://sua-url # mude aqui para sua url
+      SECRETS_FILE: "/secrets.yaml"
+    ports:
+      - "6969:80" # mude para a porta que você quiser
+    volumes:
+      - ./secrets.yaml:/secrets.yaml:ro
+    restart: always
+

essa eh so uma possivel forma, você pode editar o arquivo da maneira que preferir.

+

Note que vou utilizar o sqlite3 como banco de dados, caso você queria usar postgress, ou usar um servidor diferente para o banco de dados você deve editar esse arquivo.

+

Na mesma pasta crie um arquivo chamado secrets.yaml

+
sqlite3:
+  file: ./comentario.db
+

Essa eh a configuracao minima que você deve fazer caso queria utilizar o sqlite3.

+

agora rode no terminal

+
docker compose up -d
+

Para finalizar basta adicionar no arquivo ./themes/hugo-classic/layouts/_default/single.html

+
<script defer src="https://sua-url/comentario.js"></script>
+<comentario-comments></comentario-comments>
+

Agora eh so acessar a url que voce colocou e setar adicionar o seu servidor, como eh bem intuitivo nao vou colocar aqui

+
+

3. Setando o NGINX

+

Caso você utilize o nginx como servidor web basta configurar a pagina principal como

+
server {
+	root /var/www/azuminha.com/public;
+
+	index index.html index.htm index.nginx-debian.html;
+
+	server_name azuminha.com www.azuminha.com; # mude aqui para sua url
+
+	charset UTF-8;
+
+	location / {
+		try_files $uri $uri/ =404;
+	}
+}
+

Você tambem deve arrumar um proxy reverso para a porta que o servico do comentario esta rodando.

+
server {
+	server_name comments.azuminha.com; # sua url que utilizou para configurar o comentario
+
+	location / {
+		proxy_pass http://0.0.0.0:6969/; # mude para a porta que vc utilizou
+		proxy_set_header Host 127.0.0.1;
+		proxy_set_header X-Real-IP $remote_addr;
+		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+		proxy_set_header X-Forwarded-Proto $scheme;
+	}
+

Pronto agora você tem seu proprio blog hospedado pro você mesmo, sem dependencias externas. 😄

+ + >> Home +
+
+ + + + + + + + diff --git a/public/post/index.html b/public/post/index.html new file mode 100644 index 0000000..741695c --- /dev/null +++ b/public/post/index.html @@ -0,0 +1,117 @@ + + + + + + + + + + + + + Posts | azuminha + + + + + + + +
+ +
+ + + +
+ +

Posts

+ + + + + +
+ + + + diff --git a/public/post/index.xml b/public/post/index.xml new file mode 100644 index 0000000..3ddf45d --- /dev/null +++ b/public/post/index.xml @@ -0,0 +1,26 @@ + + + + Posts on azuminha + http://localhost:1313/post/ + Recent content in Posts on azuminha + Hugo + en-us + Tue, 30 Sep 2025 03:09:52 -0300 + + + Host a Blog With Hugo + http://localhost:1313/post/2025/09/30/host-a-blog-with-hugo/ + Tue, 30 Sep 2025 03:09:52 -0300 + http://localhost:1313/post/2025/09/30/host-a-blog-with-hugo/ + <p>Hoje vou mostar como fiz para setar um blog com comentários usando <a href="https://gohugo.io/">Hugo</a> e <a href="https://comentario.app/en/">Comentario</a>.</p> <ul> <li><strong>Hugo</strong> é um framework open source para construção de websites estáticos, extremamente rápido e flexível.</li> <li><strong>Comentario</strong> é uma engine open source de comentários, fácil de integrar e auto-hospedável.</li> </ul> <h2 id="1-utilizando-o-hugo">1. Utilizando o Hugo</h2> <ol> <li>Instale o hugo Se sua distribuição linux for baseado em Debian rode o comando</li> </ol> <div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo apt install hugo </span></span></code></pre></div><pre tabindex="0"><code> caso contrario você pode verificar na documentação </code></pre><pre tabindex="0"><code></code></pre> + + + Bem Vindo + http://localhost:1313/post/2025/09/27/bem-vindo/ + Sat, 27 Sep 2025 20:29:44 -0300 + http://localhost:1313/post/2025/09/27/bem-vindo/ + <h2 id="bem-vindo">Bem vindo</h2> <p>Aqui é somente um teste</p> + + + -- cgit v1.2.3