Adam Grzybowski

Author: jcapt

Git reflog command

Git is a powerful version control system used by software developers all over the world to manage their code. It allows users to track changes made to their codebase, collaborate with other developers, and revert changes when necessary. One of the most useful commands in Git is the “git reflog” command, which allows users to […]

Basic Git commands

Git is a powerful version control system that allows developers to track changes in their code and collaborate with others on a project. Whether you’re new to Git or looking to brush up on the basics, this guide will walk you through some of the most commonly used Git commands. git init The git init […]

PGminer – How badly secured PostgreSQL is not only a gateway to the database

During June’s BRUG (Białystok Ruby Users Group) I had the opportunity to present how PGminer botnet operates, and how it exploits open databases to mine cryptocurrency Monero. Below you can find the recording, it’s in Polish, so in case you’re not speaking Polish use subtitles. 😉 Moreover, here is a link to the presentation:

Better mouse behavior on macOS

Are you a macOS user? Did you come from Windows world? Do you miss Windows mouse behavior? Recently I was trying to set up some games that I like, on my MacBook. M1s are really nice processors, most of my games were supported out of the box, and no troubleshooting was needed. My last Intel […]

Superpower your tmux session initializations

I have been struggling with not user-friendly tmux’s CLI. I’m shortcuts guys, I like automating things, and I prefer learning some keybindings to simplify different things. Last year I have started using Vim, and it boosted my productivity a lot, and I don’t like when something slows me down. Using tmux ls and then tmux […]

Git diff only filenames

Occasionally, you just need to check filenames of changed files, without checking changes itself, how can we get only filenames in git diff? Display filenames with data about how many lines last commit adds or removes Get only edited file’s filenames Display number of lines edited, useful for parsing stats etc Read more about programming […]

Handling subdomains in RSpec

host! the method allows controlling host sent in RSpec tests. Adding it to RSpec Then using it in RSpec tests

Working with code deprecations in Ruby

Dealing with deprecations warnings can be quite hard. Especially when it comes to tracing all occurrences. Normally you got one line of Deprecation warning and of course, it’s not enough. To track down the deprecation we can use debug config. It should be used in app/application.rb after rails have been loaded and before Bundler loads […]

Back to top