[-] mac@infosec.pub 19 points 2 months ago

Just like no one would be called dick

8
submitted 2 months ago by mac@infosec.pub to c/vim

I've been using vim-lsp, it's great for the most part. Only thing I'd like to be able to do is change the default view of errors and warnings to be hidden except for a red or yellow line under the affected text that I can expand using :LspHover or something. Is this a possibility at all?

The docs only mention about turning of diagnostics completely.

[-] mac@infosec.pub 26 points 2 months ago

Energy shouldn't be a business, it's a necessity at this point.

[-] mac@infosec.pub 26 points 2 months ago

I think the bank is smart enough to understand they were probably drunk and joking, if they were actually performing terrorist acts with the funds then they wouldn't label them so plainly. Closing someone's bank can cause a lot of issues in their life so it is more fair to warn them first.

[-] mac@infosec.pub 19 points 2 months ago

If they switched over to this method instead of the current I would argue an adblocker wouldn't even improve the experience, the problem is that it interrupts my actual content in the middle of the video.

867
submitted 2 months ago by mac@infosec.pub to c/adhd@lemmy.world
451
Truth (infosec.pub)
submitted 2 months ago by mac@infosec.pub to c/adhd@lemmy.world
[-] mac@infosec.pub 48 points 2 months ago

Questionable business moves in a game about literally robbing banks is a pretty funny sentiment.

[-] mac@infosec.pub 18 points 2 months ago

Mint is just green Ubuntu.

[-] mac@infosec.pub 30 points 2 months ago

I think Arch is a good distro to learn for new users who are interested in tech, it gives an amazing example of good documentation and teaches you a lot about how UNIX-Like filesystems work.

That being said for non-technical users with zero interest, my main recommendations are Mint if you are coming from or prefer Windows and Elementary if you're coming from or prefer Mac.

11
submitted 2 months ago by mac@infosec.pub to c/webdev@programming.dev

I have a Deno Fresh app, it runs fine for the most part but there is an issue on load in a browser that hasn't cached anything, clicking the about button doesn't work on the first click but does on the second if you click another in between.

There is also an issue in my android phone where it stutters when scrolling down to the about section as the animation loads.

Any help would be amazing, the repo is here

18
submitted 3 months ago by mac@infosec.pub to c/shell@programming.dev
8
submitted 3 months ago* (last edited 3 months ago) by mac@infosec.pub to c/vim

Vim9Script Types Help

I'm trying to add types to a language list in my vimrc file, the variable looks like this:

var languages = {
  'c': ['c', 'h'],
  'shell': ['sh'],
  'python': ['py'],
  'json': ['json'],
  'typescript': ['tsx', 'jsx', 'js', 'ts'],
}

I've tried adding types like this:

var languages: dict<string, list<string>> {...}

Which should work I think but I'm getting this error:

E488: Trailing characters: , list<string>> = {

I can't figure out which characters are trailing and AI has no idea either.

Solution

I was being a moron and defining a type for the key in the dictionary which makes no sense because the key name would always be a string so therefore only the value type is required:

var languages: dict<list<string>> {...}
[-] mac@infosec.pub 147 points 3 months ago

I thought it was poking fun at the tutorial saying instead of learning to code, import a library from someone who knows how to code.

[-] mac@infosec.pub 19 points 3 months ago

Pretty much this, it's the one use case for copilot, I know what I want to type anyway and copilot is usually close enough that 2 edits is faster than typing the whole thing and better for rsi.

[-] mac@infosec.pub 24 points 3 months ago

Nuh uh this one has a new picture on it

5
submitted 3 months ago by mac@infosec.pub to c/macos@lemmy.world

I personally am a fan I find it to be like spaces except I can see them which makes switching between tasks smoother.

57
submitted 3 months ago by mac@infosec.pub to c/unixporn@lemmy.ml
  • SwayFX
  • Swaybar (hidden unless I'm holding down Alt)
  • NeoVim
  • Firefox
  • Zathura
  • feh (image viewer)

NeoVim & LaTeX with Zathura for viewing NeoVim in .sh, cmatrix, fetch.sh, cpipes, cbonsa Wallpaper with Swaybar NeoVim with Sway config, & feh

126
submitted 3 months ago* (last edited 3 months ago) by mac@infosec.pub to c/unixporn@lemmy.ml

Everyone is posting android so here you go.

This is my super minimal setup, it's convenient quick to use and I have no issues with it.

[-] mac@infosec.pub 68 points 3 months ago

The most sane news headline starting with "Florida man"

[-] mac@infosec.pub 20 points 4 months ago

They left and joined a different server with better moderation.

17
submitted 4 months ago by mac@infosec.pub to c/neovim@sopuli.xyz

Hi I've been looking at nyoom.nvim and it alters the UI of telescope (see screenshot) I was just wondering how this is possible? I looked d through the codebase but couldn't find anything other than the setting of colours?

Here is the repo: https://github.com/nyoom-engineering/nyoom.nvim

20
submitted 4 months ago by mac@infosec.pub to c/neovim@programming.dev

Hi I've been looking at nyoom.nvim and it alters the UI of telescope (see screenshot) I was just wondering how this is possible? I looked d through the codebase but couldn't find anything other than the setting of colours?

Here is the repo: https://github.com/nyoom-engineering/nyoom.nvim

73
submitted 4 months ago by mac@infosec.pub to c/unixporn@lemmy.ml
  • Fedora Sericea 39
  • Fuzzel
  • Waybar
  • Foot
  • NeoVim
view more: next ›

mac

joined 6 months ago
MODERATOR OF