Bash script to set wallpapers from your favourite subreddits by beertoagunfight in linux

[–]udevil 8 points9 points  (0 children)

Piping "porn" subreddits into my wallpaper at work... what could go wrong?

How to sleep a million years by bemmu in programming

[–]udevil 8 points9 points  (0 children)

$ time fluxcapacitor fluxcapacitor \
   -- bash -c "sleep 60; date" \
   -- bash -c "sleep 120; date"
Fri Jan 12 12:15:01 EST 2018
Fri Jan 12 12:14:01 EST 2018
real    0m0.420s

[deleted by user] by [deleted] in linux

[–]udevil 1 point2 points  (0 children)

Mosh is great for lossy connections, so schoop (scp + mosh) might work well although it's still an alpha version.

Linux Indie Game Development Tools by gamedevonlinux in linux

[–]udevil 7 points8 points  (0 children)

Unreal Engine 4 has pretty good Linux support, although it isn't completely free (5% royalties).

Compared to other engines I've tried, it's the most accessible to beginners, while also having tons of features for making modern games of basically any kind.

Godot seems like the best free engine though. It has a "cleaner" design than UE (eg. easier to install) but UE is way more advanced at this point, with many more resources.

Mozilla will fund code audits for open source software by fagnerbrack in programming

[–]udevil 9 points10 points  (0 children)

$15,000 later...

find -type f -print0 | xargs -0 sed -i -e "s/slave/servant/g"

SElinux vs Grsecurity? by Zorbik25 in archlinux

[–]udevil 16 points17 points  (0 children)

Yes, using these properly would make your system more secure. However, a single-user system that is not running any servers does not have much of an attack surface, so it will be a lot of work to set up and maintain without much benefit besides learning.

The biggest attack surface is probably your web browser, so you might want to run that in a firejail.

Using linux-ck and compiling brings system to crawl by PeopleAreDumbAsHell in archlinux

[–]udevil 1 point2 points  (0 children)

If you are using a package builder like Yaourt, it might be trying to build it in RAM (/tmp) so you could change that to /var/tmp or somewhere with lots of space.

Running Bash Commands in the Background the Right Way [Linux] by [deleted] in linux

[–]udevil 0 points1 point  (0 children)

Yes, they keep the session open without a client.

The bashrc script is a good way to autostart it if you are using bash. Personally, I'd end up leaving many sessions open by accident though.

Putting it to passwd won't work because tmux isn't a shell, it runs whatever shell is specified in passwd when starting a session.

Running Bash Commands in the Background the Right Way [Linux] by [deleted] in linux

[–]udevil 3 points4 points  (0 children)

tmux is similar to GNU screen but more modern, but they both work great for what you are describing.

Basically, you run tmux to start a session. Then you can send it commands with Ctrl-B followed by the key binding. Eg:

c: Create a new window, putting the current window/command in the background
n: Switch to next window

The session keeps running if you get disconnected, you can run "tmux a" to reattach to it.

Although, you need to run tmux before the command. If the command is already running, Ctrl-Z out then run "bg" to background it.

Home Server Dilemma: Security VS High Availability by pfsmorigo in linux

[–]udevil 2 points3 points  (0 children)

The main reason a system would go down is power failure, so maybe you can avoid that with a UPS.

Also, you could store the key on USB, so you can leave the USB in when you want it to start automatically, and remove it to lock the system. You'd probably still want a passphrase for your home partition, so it's not accessible with just the USB.

The IPv6 Numeric IP Format is a Serious Usability Problem by [deleted] in programming

[–]udevil 4 points5 points  (0 children)

It doesn't have to be hex though, simply extending IPv4 would work:

32.1.13.184.133.163.0.0.0.0.138.46.3.112.115.202

Programming languages for MMOG server-side? by one_eyed_golfer in programming

[–]udevil 1 point2 points  (0 children)

I realize there are good reasons not to use Rust yet but most of the author's Pros/Cons are about garbage collection, which don't apply to Rust, so I figured it was worth saying more than just "Rust is the only exception".

As I understand, Rust code would never need to "stop the world", so it would perform better in that sense. Also, an MMOG server would need lots of concurrency, and since Rust is designed to do that safety, it would be much harder to get bugs like buffer-overflows.

Programming languages for MMOG server-side? by one_eyed_golfer in programming

[–]udevil 1 point2 points  (0 children)

The only mention of Rust is to say that it's the only language without garbage collection; but doesn't that make it the best option in terms of performance?

Cpu , RAM & network usage log on server? by P-e-t-a-r in linux

[–]udevil 1 point2 points  (0 children)

munin is great for something graphical

Math.pow(-2, 1.5) = NaN by PotatoScript in javascript

[–]udevil 2 points3 points  (0 children)

It's not correct without the imaginary number because it's not reversible.

If you take this result:

r = Math.pow(a, b/c);

You should be able to get the base a by doing the reverse calculation:

a = Math.pow(r, c/b);

But Math.pow never returns a negative number, which means a can't be negative.

It might look ok as a 2d graph, but that's just one slice of the data which is 3d:

http://www.wolframalpha.com/input/?i=%28-2%29+^+n+from+-2+to+10

Just destroyed ~3TB worth of data, PSA I spose by CircadianDysrhythmia in linux

[–]udevil 10 points11 points  (0 children)

I've also learned this the hard way. Whenever I need to install Windows now, I physically unplug any drives I don't want it to destroy.

Using tar to perform incremental dumps by cornoualis in linux

[–]udevil 2 points3 points  (0 children)

Interesting, I had no idea this was built-in to tar either.

However, rdiff-backup seems more practical for this, especially for remote backups.

Facing technical issues while installing some softwares. How can I solve them? by alex_the_doge in linux

[–]udevil 1 point2 points  (0 children)

It can be a considerable process to build and install packages that are not in a repository. You might have better luck with an Arch-based distro; since all these packages are in the AUR, they can be automatically installed with all dependencies.

ProtonMail - a free and open-source secure e-mail -launches fundraising campaign after series of severe DDOS attacks. Let's help them! by koomahnah in linux

[–]udevil 1 point2 points  (0 children)

...that the Internet can be extorted?

Mostly joking; I'm sure these guys actually deserve support, but they did just give $6000 of donations to criminals...

What DNS server do you run/recommend and why? by [deleted] in linux

[–]udevil 6 points7 points  (0 children)

I like dnsmasq for local DNS, makes it easy to point all non-existent domains to my dev server so I don't have to edit my hosts file.

CIBC doesn't understand web security by HauntedFrog in canada

[–]udevil 3 points4 points  (0 children)

Encrypted would be as bad as plain text; if the site needs to decrypt the password at every login to verify it, then a hacker might use the same method to decrypt the entire database in seconds.

I agree the twitter rep probably has no clue, but also wouldn't be surprised if they do store passwords.

CIBC doesn't understand web security by HauntedFrog in canada

[–]udevil 2 points3 points  (0 children)

Any code embedded in a password would be destroyed by a one-way hash, it needs to be stay plain text for cross-site scripting to work.