samet.codes

samet.codes

  • About
  • Blog
  • Projects

What is JSON with padding?

Nov 26, 2022

What is exactly JSONP? What it looks like and why it threats web client security? How it could be handled dynamically?

Using JWT for authentication is an anti-pattern

Oct 26, 2022

We use JWTs everywhere: for authenticating and verifying. But since the stateless mechanism of JWT makes it unsafe for multiple times authentication, and making it stateful doesn’t make sense.

Replaying network requests on puppeteer

Oct 14, 2022

You may intercept network requests on puppeteer scripts. It’s a cool way to do reverse engineering or something tricky; the trickier thing is replaying those requests. So, I made a plugin for that.

Using --patch and manual hunk mode on Git

Jul 12, 2021

When adding changes before committing with Git, we can use the --patch parameter to take only a part of the changes in a file, not all of them: git add -p or git add --patch

Resolving .so Library File Errors in Arch Linux

Jun 26, 2020

Sometimes when I want to install a new package on my arch, pacman says that the package conflicts with another package or a package required by another package.

Searching in large files with grep

Mar 18, 2020

While writing the Subflix service, I thought about how to search within the subtitles I had. I considered parsing the time and content values from the subtitle files and transferring them to a database, but I gave up on this because I had too many subtitle files.


© Samet 2017 - 2025