Skip to content

u/crackerasscracker

In this archive from Apr 2009 to Nov 2023

1
posts
45
comments
0
media
213
score

this is a strange article, it seems both uninformed and somewhat well informed at the same time. A lot of inaccuracies, he said "most modern apps" use application level routing, not true with PHP. Sure Laravel and other frameworks do, and that is great, but the CGI base that PHP is built on IS DEFINITELY less secure than how other languages.

In a CGI application, nothing is preventing any code that lives on the filesystem from executing. All you ahve to do is somehow sneak a file into a directory that is being served by the php app server and that code will execute. Yes, Laravel does help to get around that by running an actual, real application server, but you can probably still get ahead of that and get FastCGI to execute some arbitrary code.

Compare that to Python, or Node, ONLY the code that is imported into the application can ever run, you could drop a malicious file right into your python codebase but the app server will not give you a way to execute that malicious script, unless the app code is updated to include it.

CGI is bad and that is why PHP is insecure

1 points

tbh, this isnt just a thing with Arch, its everywhere. Plus the fact that I am seriously burned out at $job and likely suffering from some pretty serious depression. But jesus fuck will people not just READ THE ERROR MESSAGE???

I have developers that I am trying to support on AWS builds and I get shit like "this lambda wont connect to the RDS instance for some reason" and the error message clearly says "cannot connect to 127.0.0.1", because thats the correct thing to connect to.

2 points

i h ave never figured out how. I tried for a while but gave up. I was a pretty big i3 noob at the time, not sure if that is an i3 setting you need to fix or a feature of the bar you are using, I am assuming the latter now.

I just got used to it. Its not a bad idea to have some indication of what keybinds are active.

1 points

You can totally do that. I use the keybinding "modes" in i3 to switch back and forth between workspace keybindings. The only real problem with that is you have to have ALL of your global bindings included into each monitor mode that you want to use. I have a pretty janky bash script that builds my config and puts all the keybindings in the right places.

​

Then I have a python ipc script that listens for the monitor focus event and switches the mode based on which monitor I currently have focused. So no matter with screen is focused, my workspaces are always mod+[1-0].

​

My i3 stuff is a pretty big mess on github, but you should be able to figure it out. https://github.com/jasondewitt/dotfiles/tree/master/i3/.config/i3

This is the python script that handles the mode switching, I have been running it without any issues for a couple of years now, I forget this isnt the default setup for i3 https://github.com/jasondewitt/dotfiles/blob/master/i3/.config/i3/focus.py

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.