Skip to content

Instantly share code, notes, and snippets.

@rbikbov
rbikbov / how-to-git-patch-diff.md
Created September 18, 2023 12:39 — forked from nepsilon/how-to-git-patch-diff.md
How to generate and apply patches with git? — First published in fullweb.io issue #33

How to generate and apply patches with git?

It sometimes happen you need change code on a machine from which you cannot push to the repo. You’re ready to copy/paste what diff outputs to your local working copy.

You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:

1. Generate the patch:

git diff > some-changes.patch

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@rbikbov
rbikbov / rest-api-response-format.md
Created December 23, 2022 12:12 — forked from igorjs/rest-api-response-format.md
REST API response format based on some of the best practices
@rbikbov
rbikbov / etc | systemd | system | enable-turbo-boost.service
Created October 20, 2022 23:17 — forked from queses/etc | systemd | system | enable-turbo-boost.service
Linux No TurboBoost Fix. Doesn't work with enabled SecureBoot
[Unit]
Description=Enable Turbo Boost on Intel CPUs
[Service]
ExecStart=/bin/sh -c "/usr/sbin/modprobe msr && /root/turbo-boost.sh enable"
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target