Skip to content

u/shif

In this archive from Feb 2012 to Jan 2023

6
posts
242
comments
0
media
867
score

Open source doesn't mean the maintainers owe you their time to review your ideas, a PR is essentially a proposal, they can choose to ignore it if they can't find the time for it, if the PR is later submitted by someone they have a trust relationship with like an employee of laravel then they can assume it's worth pursuing.

This is how relationships work in organizations, you are more likely to make it through if someone that the person at the gate trusts vouches for you.

48 points

the multiple paste is nice, if you had something in your clipboard and accidentally copied something else, there's no need to go back and search for the thing you previously copied, just do cmd + shift + v and there will be a list of recent copies

12 points

with an ORM it is 1 line in a config

no it's not, if you take any advantage of the custom functionality of your RDBMS (and you should) you're locked to it, the only way you can do hot swapping of RDBMS's is if you only do really basic stuff, also if you stick to basic stuff there's no point at all to change RDBMS because you would gain nothing

3 points

I once made a long running task in php and the way progress was tracked was with redis, the script updated its progress into redis whenever it advanced through the remaining work, and I had another endpoint that retrieved the redis data, then In the frontend I used polling intervals to give the user updated info.

If you don't want to use redis you could write progress into a file and poll the file every n seconds.

5 points

are you testing in windows and using a linux server?, linux is case sensitive, in windows if you use uppercase and it's named with lowercase it would still work but not in linux, get the full path from the log and try running from ssh the following command: ls /your/path/to/the/file if it says that the file is not found check the correct path of it to see where you made the spelling mistake

2 points

looks like obfuscated base64 strings, other files might be calling it, google php reverse shells, they are a thing and people can do all kind of nasty stuff in your servers if they get a file like that in it.

imagine if someone snuck this file in your server...

<?php echo exec($_GET['command']);
3 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.