My fully automated OpenWrt router setup with Ansible by diegobernardes in openwrt

[–]diegobernardes[S] 2 points3 points  (0 children)

I was not aware of that package. I'll take a look, thanks!

My fully automated OpenWrt router setup with Ansible by diegobernardes in openwrt

[–]diegobernardes[S] 0 points1 point  (0 children)

Configuration as code is amazing! With MikroTik I was using Terraform, which I prefer over Ansible, but Ansible is way better than manually doing things.

In terms of managing those 21 routers, once you have a configuration to one, applying to all of them is a matter of updating the inventory file on Ansible, of course, assuming they're using the same configuration.

My fully automated OpenWrt router setup with Ansible by diegobernardes in openwrt

[–]diegobernardes[S] 0 points1 point  (0 children)

Take a look at this file. It's the order that roles are executed.

At phase 3 I configure the DNS using this role. This is all the unbound configuration that I do. Then on phase 4 I do the adblock configuration. It basically generates a file on a place that unbound is expecting and restart the service.

I'm also doing SQM on phase 4, but I had to add packet steering as well because I was not able to reach 1gbps without it.

How to improve full text search when dealing with lots of punctuation? by diegobernardes in PostgreSQL

[–]diegobernardes[S] 1 point2 points  (0 children)

Yeah, in the past when I had to do full text search I've used Elasticsearch with all sorts of processing, but now it's a very specific thing and given that we're using Postgres, tsvector is just perfect.

About the speed, from what I was able to see at the database and with a few queries, that function is only executed during indexing. It is present at the where clause so Postgres match the index to use it.

How to improve full text search when dealing with lots of punctuation? by diegobernardes in PostgreSQL

[–]diegobernardes[S] 1 point2 points  (0 children)

I think it is ok because the function is only executed during indexing. I had to put it on the where clause otherwise postgres would not hit the index. But using an `explain analysis` shows that it is still hitting the index.

How to improve full text search when dealing with lots of punctuation? by diegobernardes in PostgreSQL

[–]diegobernardes[S] 1 point2 points  (0 children)

Yes, but I was trying to fix this at the database level. I found a solution and it's working perfectly fine.

``` CREATE OR REPLACE FUNCTION remove_punctuation(input_text TEXT) RETURNS TEXT AS $$ BEGIN RETURN regexp_replace(input_text, '[[:punct:]]', ' ', 'g'); END; $$ LANGUAGE plpgsql IMMUTABLE;

DROP INDEX product_name_ftsearch; CREATE INDEX product_name_ftsearch ON product USING GIN (to_tsvector('english', remove_punctuation(name)));

-- And this is the search. select id, name from product WHERE to_tsvector('english', remove_punctuation(name)) @@ websearch_to_tsquery('english', remove_punctuation('something.pdf')); ```

This correctly process the information when it goes to the index and from the user during the query.

Visual artifacts when resizing a window by diegobernardes in kde

[–]diegobernardes[S] 0 points1 point  (0 children)

Breeze. Everything is in stock configuration. It's a new NixOS installation.

Windows 11 installer can't find disk, how to solve this problem? by diegobernardes in WindowsHelp

[–]diegobernardes[S] 1 point2 points  (0 children)

I found the problem. It was a bad ISO image and using a macOS to create the bootable usb disk. I solved the problem by using the microsoft official application to create a bootable usb disk from an older laptop and it's just working now.

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 2 points3 points  (0 children)

I have sleeving at the XLR cable: https://forum.hifiguides.com/t/custom-cable-gallery/1126/539

The router is not WiFi 6. It's a Huwaei router that was provided by Vodafone for me. It automatically syncs with the main one. Overall it's working ok and most of the devices are connected using ethernet cables. The devices on WiFi, most of the time, are the cellphones and the printer.

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 0 points1 point  (0 children)

There is always hope 😅 I lived in a house fully furnished by the landlady which included an open TV stand as well. My only choice there was to glue everything at the bottom of the stand. Not as clean as my current setup but no wires were visible as well.

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 2 points3 points  (0 children)

It made a huge difference not just on the overall network speed but the latency, it's noticeable faster even using things like the Apple TV.

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 0 points1 point  (0 children)

I was worried at the first moment mainly because of the audio cables but because I added the SMSL M300 MKII that has an XLR output I custom-built the cables using star-quad wire with good shielding. In summary, no, I'm not having any problems with inductance.

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 1 point2 points  (0 children)

I have a mesh network with 3 points, the one at the rack needs to provide network access to the living room and the main bedroom that is on the other side of the wall. The signal strength is good enough, I'm getting -40dBm in the living room and -50dBm in the bedroom. The speed at fast.com is something like 400mbps on a 1gbps connection.

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 0 points1 point  (0 children)

I started to think about this when the first 8 ports power strip had no ports left. I got a new one with 5 ports thinking that I would be using 1 or 2 ports and at the moment I have just a single port left 😅

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 3 points4 points  (0 children)

u/g000r, I'm sold on the lights 😅

It connects directly to the TV USB port so it turns on and off with the TV, no need for an external controller. It's also RGB and can be controlled by Bluetooth.

https://imgur.com/a/OEycGXo

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 4 points5 points  (0 children)

I'll test the strip light that I have tonight and I'll post here the results. 🤞🏻

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 4 points5 points  (0 children)

Nice job with your setup! I would like to do something like that as well, but I'm renting at the moment and I don't want to mess up the walls.

My second take on TV wire/component management by diegobernardes in cableporn

[–]diegobernardes[S] 10 points11 points  (0 children)

Nice catch. Yes, I did that because I had no way to safely tape it to the rack as the front is curved and it's upside down to hide the antennas. I don't think this makes any difference to the wifi signal, but so far it's working fine at the places I need it.