There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.world

ICastFist , to lemmyshitpost in Never give up
@ICastFist@programming.dev avatar

Wait, you mean internet arguments aren’t a game of chicken where the winner is whoever gets the last reply?

Wogi ,

Challenge accepted.

No you’re wrong. It’s a game of votes, whoever gets the most votes is the most correct.

Jiggle_Physics ,

So, if I just wait for the argument to cool off, then start replying, over and over, to anyone but the person I am directly disagreeing with, but still in the same thread, until the automatic votes accumulate to my favor, I will always be right?

molten , to internetfuneral in Going off the grid

Time to wake up from my depression nap

Pilferjinx , to lemmyshitpost in Nihilist would give him one star

A nihilist probably wouldn’t leave a review, or would. Honestly, it doesn’t matter.

dan , (edited ) to programmer_humor in Seriously how many times does this have to happen
@dan@upvote.au avatar

At my workplace, we use the string @nocommit to designate code that shouldn’t be checked in. Usually in a comment:


<span style="color:#323232;">// @nocommit temporary for testing
</span><span style="color:#323232;">apiKey = 'blah';
</span><span style="color:#323232;">// apiKey = getKeyFromKeychain(); 
</span>

but it can be anywhere in the file.

There’s a lint rule that looks for @nocommit in all modified files. It shows a lint error in dev and in our code review / build system, and commits that contain @nocommit anywhere are completely blocked from being merged.

(the code in the lint rule does something like “@no”+“commit” to avoid triggering itself)

8uurg ,

Neat idea. This could be refined by adding a git hook that runs (rip)grep on the entire codebase and fails if anything is found upon commit may accomplish a similar result and stop the code from being committed entirely. Requires a bit more setup work on de developers end, though.

dan ,
@dan@upvote.au avatar

Would a git hook block you from committing it locally, or would it just run on the server side?

I’m not sure how our one at work is implemented, but we can actually commit @nocommit files in our local repo, and push them into the code review system. We just can’t merge any changes that contain it.

It’s used for common workflows like creating new database entities. During development, the ORM system creates a dev database on a test DB cluster and automatically points the code to it with a @nocommit comment above it. When the code is approved, the new schema is pushed to prod and the code is updated to point to the real DB.

Also, the codebase is way too large for something like ripgrep to search the whole codebase in a reasonable time, which is why it only searches the commit diffs themselves.

calcopiritus ,

There are many git hooks. One of them checks each commit, but there’s another that triggers on merges.

cypherpunks ,
@cypherpunks@lemmy.ml avatar

At my workplace, we use the string @nocommit to designate code that shouldn’t be checked in

That approach seems useful but it wouldn’t have prevented the PyPI incident OP links to: the access token was temporarily entered in a .py python source file, but it was not committed to git. The leak was via https://docs.python.org/3/tutorial/modules.html#compiled-python-files which made it into a published docker build.

OhNoMoreLemmy ,

Yeah, but a combination of this approach, and adding all compiled file types including .pyc to .gitignore would fix it.

cypherpunks ,
@cypherpunks@lemmy.ml avatar

adding all compiled file types including .pyc to .gitignore would fix it

But in this case they didn’t accidentally put the token in git; the place where they forgot to put *.pyc was .dockerignore.

calcopiritus ,

This is a huge idea. I’m stealing it.

Not just for credentials, there are many times where I change a setting or whatever and just put “//TODO: remember to set it back to ‘…’ before commiting”. I forget to change it back 99% of the time.

PlexSheep ,

This sounds like a really useful solution, how do you implement something like this? Especially with linter integration

dan ,
@dan@upvote.au avatar

I’m not sure, sorry. The source control team at work set it up a long time ago. I don’t know how it works - I’m just a user of it.

The linter probably just runs git diff | grep @nocommit or similar.

zqwzzle ,

Depending on which stack you’re using, you could use danger.systems to automatically fail PRs.

PlexSheep ,

PRs? Isn’t the point of @nocommit that something does not get committed, and therefore no credentials are stored in the git repository? Even if the PR does not get merged, the file is still stored as a hit object and can be restored.

zqwzzle ,

I read the lint part and my brain forgot about everything else. You could stick the danger call in a pre commit hook though.

ouRKaoS , to lemmyshitpost in Nihilist would give him one star

Saved their life, put them into crippling medical debt.

Benaaasaaas ,

Well that’s on insurance, not the doctor.

count_dongulus ,

Actually it’s on the hospital Chargemaster

Defectus ,

Chargemaster, is that an official title?

count_dongulus ,
FlyingSquid ,
@FlyingSquid@lemmy.world avatar

Either way, it’s not the doctor, who’s probably in crippling student loan debt. And this doctor looks young enough to have a huge amount of it.

aidan ,

It could be on the doctor if they’re in individual practice, probably aren’t though

PeriodicallyPedantic , to lemmyshitpost in Reject reality

Baby, you got somethin’ on your nose 💩
Sniffin’ that cake🍑, did you feel the hole?

PeriodicallyPedantic , to lemmyshitpost in Reject reality

I-M H-I-M
The jizzy m&m

vaionko , to insanepeoplefacebook in Were the pyramids built with sound frequency?

It’s gonna be groundbreaking when they find that massice ancient speaker under the desert

stoy ,

Nah, what will be groundbreaking is when they find out that the egyptians only listened to hardbase

SailorMoss , to funny in That's a bold strategy...
MHanak , to programmer_humor in Seriously how many times does this have to happen

This reminds me of that one time when i pushed with my github token as my username (dw i revoked it)

selokichtli , to funny in That's a bold strategy...

Also a pretty man.

mikezane , to lemmyshitpost in I'm just gonna stick to slotted, thanks

Robinson aka the square head is by far the superior choice.

renzev OP ,

I’m not canadian, so I don’t have a lot of experience with robertson. But from the limited experience that I do have, I would rate it 10/10.

What would you recommend for smaller screws (e.g. for electronics)? As far as I know, there aren’t smaller sizes of robertson like there are with torx?

brap ,

Pozidrive has real nice engagement and doesn’t cam out like Phillips does. And JIS drivers do a better job in Phillips than Phillips ones do.

HakFoo ,

After wrecking some JIS screws on a vintage reciever, I bought a nice Vessel-brand JIS driver set, and use it for all my crosshead needs.

casmael ,

Pozidriv reliably makes me projectile vomit ☹️

Noel_Skum ,

I’ve driven tens of thousands of pozidrive 2/3 screws into timber with an impact driver. For whatever reason my experience is the diametric opposite of yours. Big up the Pozidrive massive.

casmael ,

I absolutely love the amount of strong opinions on screw heads 🙏

Noel_Skum ,

Me too. Nice to see the passion of the construction industry ( and the weekend warriors too)

Thorny_Insight ,

It’s probably because of the impact driver. The bit seats back into the bottom of the slot between every impact. This doesn’t happen with normal drivers.

Noel_Skum ,

People (try to) use a drill driver as opposed to an impact driver? Wow. I now understand why they could have a grim experience… thanks.

Thorny_Insight ,

Philips doesn’t cam out that easily either. Most people just don’t realize there’s three common sizes.

hydrospanner ,

Philips doesn’t cam out that easily either.

I mean…that’s an inherently subjective statement.

But more objectively, regardless of how easily, it’s still the worst of the available options.

RubberElectrons , (edited )
@RubberElectrons@lemmy.world avatar

Yeah but JIS for screws/bolts has been abandoned by the Japanese govt as of… 2005?

My JIS screwdrivers are fantastic, not easy to torque out on a regular Phillips screw. Stick with the “vessel” brand.

E: I can’t find anything more than discussion about it, nothing official. Sorry for the wrong info, looks like JIS screws are still alive.

brap ,

I did not know that, but yes to Vessel!

RubberElectrons ,
@RubberElectrons@lemmy.world avatar

I think I was wrong, see edit. Carry on!

BigDanishGuy ,

LOL sure, good one… Only time that square abomination is the answer is if the question is “what do you get if you put a toddler in charge of designing a poor knockoff unbrako head?”

TEAM TORX REPRESENT!

renzev OP ,

Things are getting heated in the screw fandom

FauxPseudo ,
@FauxPseudo@lemmy.world avatar

As a person that changes out a lot of electrical outlets and switches I have to agree.

Agrivar ,

Found the Canadian.

user1234 ,

*Robertson

HootinNHollerin , (edited )

Its flaw is that you can only get to it in 90deg increments. When the screw is in a hard to reach place that will drive you crazy

hungrythirstyhorny , to lemmyshitpost in Reject reality
@hungrythirstyhorny@lemmy.world avatar

The Power of Love

Céline Dion

The Witchers in the morning

GarlicToast , to science_memes in The circle of life

Following the flow chart I came to the conclusion that plastic dinosaurs are real dinosaurs.

Lucidlethargy , to funny in That's a bold strategy...

I am 100% behind this movement. FUCK HR.

Corkyskog ,

They only exist to make it harder for employees to sue when they get harassed.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines