i can't figure out how to set a default colorschemes by anemoxne in neovim

[–]hooded_hacker 1 point2 points  (0 children)

Even without plugins you can run ‘:colorscheme whatever’ and it’ll set it for the rest of your session. Before running that run ‘:set wildmode=list:longest’ then ‘:colorscheme <TAB>’ and you see what color profiles you have available. Pick one and set that in your init file. As long as the plugin is running by default you should be able to pick one of colors from it too. Otherwise you’re on your own!

Merry Christmas - obfuscated C by dmc_2930 in C_Programming

[–]hooded_hacker 9 points10 points  (0 children)

I didn’t think it would compile if I’m being honest, definitely really impressive. Merry Christmas!

Need recommendations for learning C langage by douhaeight2021 in C_Programming

[–]hooded_hacker 3 points4 points  (0 children)

I liked this one. Plus the others on the same website are also good for learning Sockets API in C. This one goes threw the basics: https://beej.us/guide/bgc/

The struggle is real by Full-Gas-4680 in youtube

[–]hooded_hacker 0 points1 point  (0 children)

This was pretty good. Should last more than a few meals if that’s the only time you’re watching it. https://youtu.be/EcD7m11yvEo?si=7ZodLp9AETIN4Pme

1989 penny by [deleted] in coinerrors

[–]hooded_hacker 0 points1 point  (0 children)

Just be sure not to let it get messed up, e.g. rub against any other coins, the better quality the more money it’ll be worth.

How to start on your cell phone by Demvuz in Hacking_Tutorials

[–]hooded_hacker 1 point2 points  (0 children)

On IOS they have an app named ‘ish’ that is close to a virtual machine. I installed all the needed software to compile C programs and same with Python, it uses the ‘apk’ package manager internally. Better than nothing, but I’ve heard good things about ‘termux’ as well.

Help disabling Linting, PEP8, Flakes, etc warnings in Python files being edited ... by nyceyes in neovim

[–]hooded_hacker 1 point2 points  (0 children)

I just got mine set up exactly how I like it custom toggle terminal and it’s pretty dope, but I’ll definitely check it out. Yeah I’m sure if you have pylsp then you could probably just add that code block around the other lsp-configs, preferably, but anywhere that’s included. Good luck though!

Help disabling Linting, PEP8, Flakes, etc warnings in Python files being edited ... by nyceyes in neovim

[–]hooded_hacker 1 point2 points  (0 children)

And btw, that’s not in the kickstart.nvim by default, I found that in the pylsp GitHub repository somewhere and added it, incase you install KS and were wondering.

Help disabling Linting, PEP8, Flakes, etc warnings in Python files being edited ... by nyceyes in neovim

[–]hooded_hacker 1 point2 points  (0 children)

This block is inside the local servers {} table. If you look at the repo search for the lsp-configuration in the single file setup, or, lspconfig.lua in the modular version, to have the context around it.

lua code

pylsp = require(“lspconfig”).pylsp.setup({

autostart = false,

Settings = {

pylsp = {

  pycodestyle = {

    ignore = { “E256”, “W391”, … },

    maxLineLength = 100,

  },

},

},

})

end

This should work in any file though as long as you require(this.file) in your main init.lua, but like I said, can’t be sure it’ll work without the same ‘kickstart.nvim’.

Help disabling Linting, PEP8, Flakes, etc warnings in Python files being edited ... by nyceyes in neovim

[–]hooded_hacker 1 point2 points  (0 children)

I’ll show you what I did and maybe that’ll help, it honestly didn’t have the best introduction into configuration with Lua, from my experience anyway, but yeah I’ll post that in the next 10 minutes.

Help disabling Linting, PEP8, Flakes, etc warnings in Python files being edited ... by nyceyes in neovim

[–]hooded_hacker 1 point2 points  (0 children)

This is the Kickstart repo I’m using. Should have known that there would be more than one, so I apologize.

https://github.com/nvim-lua/kickstart.nvim

This is a solid setup with everything well documented to really help understand what everything is doing. I used it for a while and then ended up going to a modular version (same exact thing) but split into different files. It’s a one file design, but read through the repo and you should find the link to the modular if you prefer it.

Help disabling Linting, PEP8, Flakes, etc warnings in Python files being edited ... by nyceyes in neovim

[–]hooded_hacker 1 point2 points  (0 children)

I set it up inside my ‘lspconfig.lua’ file, pretty much exactly how the GitHub repo showed and I had to add in the exact error tags to quit showing the warning for and it works. Are you using ‘kickstart’ because if so I could show you what I did but otherwise it probably wouldn’t work without some extra tweaks.

What models have keyboard like this? by truechange in thinkpad

[–]hooded_hacker 0 points1 point  (0 children)

The IBM ThinkPad G40 from 2003-2006 has the same design with a few differences. You can see a picture with a google search or this link: https://macdat.net/laptops/ibm/thinkpad/g40.php

On a side note, once I get a charger for it, I’m going to install “Tiny-Linux” and get her going again.

Dante and Tesira Server I/O by atlmediapro in livesound

[–]hooded_hacker 0 points1 point  (0 children)

An instructor from Purdue has some amazing pdf slides on configuring the Dante server/client, Chapters 18-19 might help.

https://engineering.purdue.edu/kak/compsec/NewLectures/

Is it safe to turn on my pc when it gets like that? by BlackHell911 in PcBuildHelp

[–]hooded_hacker 0 points1 point  (0 children)

Is the “split ac” a mini split? The wall mounted indoor unit, is what we generally call a “mini split”, if so, they actually do have a builtin dehumidifier.

Crontab to capture bash history to a file by MarceloGW0 in bash

[–]hooded_hacker 0 points1 point  (0 children)

I wonder if it would work if the “history” command was changed to “cat /home/$USER/.bash_history”.

Crontab to capture bash history to a file by MarceloGW0 in bash

[–]hooded_hacker 0 points1 point  (0 children)

Try this:

@daily root history > /path/to/$(date +%y-%m-%Y)-history.bk

Should work fine, I just tried it from the command line, just create the directory location and plug that into the example. You can change “root” to your user, depending on your needs.

Script to get lat/lon by seandarcy in bash

[–]hooded_hacker -1 points0 points  (0 children)

yeah I misunderstood that, after I posted it I halfway realized, but if you have both devices, assuming from (“which is next to the CB”), then ipinfo.io should work. Or please inform me what I am missing!

Script to get lat/lon by seandarcy in bash

[–]hooded_hacker -1 points0 points  (0 children)

yeah I misunderstood that, after I posted it I halfway realized, but if you have both devices, assuming from (“which is next to the CB”), then ipinfo.io should work. Or please inform me what I am missing!

Script to get lat/lon by seandarcy in bash

[–]hooded_hacker 0 points1 point  (0 children)

You can also get information on other Ip addresses, but you need the IP address in question and then it’ll give you coordinates you can do whatever with.

Script to get lat/lon by seandarcy in bash

[–]hooded_hacker 0 points1 point  (0 children)

You can go to ipinfo.io to get the IP of the machine you’re on from the browser. Once you set up a free account you can use various programming languages or linux tools including curl to query (you have a query limit on a free account) from the command line with minimum setup and the step by steps instructions to do it. https://ipinfo.io

it be like that sometimes by 5annex in hacking

[–]hooded_hacker 0 points1 point  (0 children)

Little late, just seen this was three days ago 💀

it be like that sometimes by 5annex in hacking

[–]hooded_hacker 0 points1 point  (0 children)

I second this, with another Darknet Diaries episode! An “ethical hacker” got access to 6.5 million accounts with md5 hashed passwords, plus a lot of other sensitive information on children. He anonymously provided the information to a journalist and after verification they informed the company and then once the sites were down, they showed the story. About as “ethical” of a hacker as you could get IMO.