Agility0971

joined 1 year ago
[โ€“] Agility0971 3 points 3 months ago

I didnt leave because I was tired of windows, i stayed because it was better for development. I learned about other benefits later once I started using it

[โ€“] Agility0971 2 points 3 months ago (3 children)

To be fair, the best standard would be to send off new users to immutable distros

[โ€“] Agility0971 6 points 3 months ago (1 children)

Odd that stremio is not on that list. It's superior to netflix

[โ€“] Agility0971 1 points 3 months ago* (last edited 3 months ago) (1 children)

So there are safe countries and non safe countries now? Whats the difference?

[โ€“] Agility0971 3 points 3 months ago

I just bought 2 Peroni Nastro for 6.49โ‚ฌ in the local store. Tastes 10% beer and 90% taxes

[โ€“] Agility0971 -1 points 3 months ago (7 children)

I can reccomend huawei laptops with metal chassis. I've had my matebook x pro for around 6 years. My past laptops made of plastic disentegrted over time

[โ€“] Agility0971 1 points 3 months ago

I would rather say that help questions can be posted there. That way its not forving anyone to do anything

[โ€“] Agility0971 2 points 3 months ago
[โ€“] Agility0971 17 points 3 months ago

Use user agent switcher and set it to something random. However that makes your fingerprint unique. I've read that people set it to windows just to blend in the masses

[โ€“] Agility0971 10 points 4 months ago

+1 holy damage to enemies

 

I've been messing with my flash drives trying to follow some random documentation with dd and now both of my flash drives are reporting 0 bytes of free space. I was trying to clear out everything and start from scratch as if they were new. I wonder if there are any program out there that can just sudo reset-everything /dev/sdX

 

I'm experiencing an issue with commands that provide a tui interface like journalctl, systemctl and vim. It feels like terminal dimensions are not matching up somehow. And this issue is present only some times. On host I'm using Black Box and I tile my windows using pop os tiler. I'm also frequently scaling the font with ctrl + and ctrl - shortcuts. Remote sshd host is running Debian variables $LINES and $COLUMNS are set. bashrc files are in their default state.

How is this supposed to work? Isn't my terminal client sending new $LINES and $COLUMNS each time there is a change?

2
customizable search engines (self.searchengines)
 

Do you know about a private customizable search engine? I would like to hint the search engine about what search results I like without specifying them on every single query.

For instance when need to search up some programming documentation almost always there are some blogs in the search results meanwhile I'm always looking for the official documentation. I want to go to settings and specify something like

+ official documentation
- blog

and every single time I search something up I get less noise. Also being able to block some domains like

geekforgeeks.org
learn.microsoft.com

would also be nice. In case I get annoyed by some domain that have a lot of ads and information at the very bottom.

 

Do you know about any gnome apps that can be used on screen recording (.webm) to gif so they can be uploaded here on lemmy?

Edit: found Footage. For some reason it was not listed on Gnome Apps

3
submitted 1 year ago* (last edited 1 year ago) by Agility0971 to c/[email protected]
 

I'm using NvChad and in ~/.config/nvim/lua/core/mappings.lua there is a keybinding for LSP code action:

  ["<leader>ca"] = {
    function()
      vim.lsp.buf.code_action()
      -- TODO: write buffer to file
    end,
    "LSP code action",
},

this keybinding applies the code action, but does not write to file. I want to write changes to file as soon as I've applied the code action.

How can I use the documentation at https://neovim.io/doc/ to find the correct function? I've tried looking for a write() function but I could not find anything I can call from lua.

16
submitted 1 year ago* (last edited 1 year ago) by Agility0971 to c/[email protected]
 

I wonder is there any program that can take a bash script as input and print out all bash commands it will run? A program that would unroll loops, expand environment variables and generally not perform any destructive action nor call any external binaries. It's like a dry run of sorts.

Edit: I've created a script that updates ufw rules. I wanted to use multiple IP addresses as a range and multiple interfaces like this:

ufw add limit in on eth0,eth1 from 172.16.0.0/12,10.0.0.0/8,192.168.0.0/16 to any port 22 comment "allow SSH on LAN"

but ufw does not support setting multiple interfaces and multiple interfaces comma separated like ports so I created a script instead.

# ...
lan_ip_range=('172.16.0.0/12' '10.0.0.0/8' '192.168.0.0/16')
for ip_lan in "${lan_ip_range[@]}"; do
	# SSH
	ufw add limit in on eth0 from "$ip_lan" to any port 22 comment "allow SSH on LAN"
	ufw add limit in on eth1 from "$ip_lan" to any port 22 comment "allow SSH on LAN"
# ...
	done

I want to make sure it does what I expect it to do. so expected output should be something like this:

ufw add limit in on eth0 from 172.16.0.0/12 to any port 22 comment "allow SSH on LAN"
ufw add limit in on eth0 from 10.0.0.0/8 to any port 22 comment "allow SSH on LAN"
ufw add limit in on eth0 from 192.168.0.0/16 to any port 22 comment "allow SSH on LAN"
8
submitted 1 year ago* (last edited 1 year ago) by Agility0971 to c/[email protected]
 

Who thought it was a good idea to use pascal case naming convention for network manager NetworkManager.service while all remaining services in existence uses kebab case? It should be network-manager.service.

view more: โ€น prev next โ€บ