Software Developer Mega Thread

I thought there was another thread than this one but apparently not.

Found this. Thought was cool.

2 Likes

that’s true

:drum:

Seriously though I now wish I could go replace all the obnoxious || true with that

2 Likes

There’s a good legibility argument for || true

1 Like

So. New project, I’m dissecting ssh in hopes of providing some better auditing, access control and authentication procedures.

Initial thoughts:

  • SSH has been beautifully designed.
  • Twisted is complex.
  • hopefully this isn’t just a lot of wasted effort
5 Likes

For job or your own endeavors?

Kinda both. We need it at my job, but I’m going to try to release it MIT.

Since the idea was conceived during a meeting and it’s been developed mainly on company time, they might want to own the IP, but at the same time, the company is new and doesn’t have a clause in my employment contract, so I might be able to get away with owning rights, since I’m the only one who’s touched the code so far.

I’m not going to mention that I’m actually doing this until my boss asked where my productivity went and I won’t let anyone else touch the code until the ownership situation is handled.

2 Likes

this mofo right there built a game engine for DOS with ray-tracing from scratch…

that’s some real genious right there

EDIT: Here’s the link:

5 Likes

Okay, update. I wanted to have an interrupt sequence to execute commands against the software when you’re in session. Additionally, I need to have the ability to forward all keystrokes to the remote client. Given that requirement I may need to rewrite (or at the very least extend and heavily modify) the base terminal protocol.

This is turning out to be a really fun project. I think I’m gonna wait on a full rewrite and interrupt integration until I have the proxy itself working. I also want to rip the management shell commands out of the protocol class and make it fully pluggable.

@SgtAwesomesauce

Here’s the repo you wanted.

Keep an eye on it as I flesh it out more.

2 Likes

Sweet, thanks. I’ll have a look when I get a minute.

I finished laying the ground work last night. :slight_smile:

1 Like

Vue.js is bae <3


I’ve been playing with Clojure and Java w/Spring. I need to go to that Java Sux thread I made and apologize/eat crow >_>


There. Now to tell my wife I have proof that I don’t “never apologize”

2 Likes

Java jobs here in Tupiniquim Lands are abundant and well-paid, everyday I consider moving back to learn Java, but some bullshit like the way it handles linked-lists/array-lists… specially knowing about vectors in C++ and arrays in JS.

1 Like

One person just cannot do everything by themselves without a little help.

Speaking of… I’m not much of a dev, but surely this idiotic?

function include_set_faillock_option {
	:
}

From:

https://static.open-scap.org/ssg-guides/ssg-rhel7-guide-C2S.html#xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_unlock_time

Meh idiotic is a bit harsh, it looks like it’s vestigial.

1 Like

This is readable right? lol

# reverse dns lookup the default gateway to find short hostname of the gateway
# lookup the ip of the gateway on the mgmt subdomain
# set the variable to the /24 of that ip
declare MGMT_NET="$(host \
  "$(host $(ip route |
        grep default | 
        awk '{ print $3 }') | 
      head -n 1 | 
      awk '{ print $NF }' | 
      cut -d "." -f 1).mgmt.$(hostname -d | 
        sed 's/^[[:alnum:]]*\.//')" |
    awk '{ print $NF }' |
    sed 's/[[:digit:]]*$//')0/24"
2 Likes

Look at those sexy regex (is it called like that in english? )

2 Likes

Yeah we call it regex and I guess it’s both singular and plural?

grep default | 
        awk '{ print $3 }'

Unforgivable.

awk '/default/ { print $3 }'
4 Likes