Skip to content

Instantly share code, notes, and snippets.

View Ferfalk's full-sized avatar

Fernando A. H. Falkiewicz Ferfalk

  • Curitiba, PR, Brasil
View GitHub Profile
@seeliang
seeliang / lint-only-changed-files.MD
Last active September 7, 2024 13:06
How to lint only changed files?

find out the differences

use git diff to generate file list

git diff --name-only master

limited to certain file types

add ext filter

As far as I can tell, you can't do it conveniently. That is, git-rebase does not give you an option to preserve the committer date. Unless you give the --ignore-date (or its alias, --reset-author-date) option, it will always preserve the author date. However, there is no way to make git-rebase preserve the committer date, unless some manual script is crafted.

The best you can do is to make the committer date equal to the author date. Recently (in 2020 Q4), git-rebase --interactive has gained the ability to use the --committer-date-is-author-date flag with the interactive rebase. Before that, there was no way of influencing the committer date at all with the interactive rebase. Note that this flag does not preserve the committer date. It merely makes the committer date equal to the author date.

You might be thinking "well, isn't that effectively preserving the committer date, since normally the committer date is always equal to the author date?". Normally, you would be correct. However, there

@Cryptizism
Cryptizism / emote-extension-endpoints.MD
Last active November 1, 2023 22:21
Twitch 3rd party extension endpoints

3rd Party Emote Extension Endpoints (AFAIK)

Codenames

  • User ID = Twitch User ID (you can get it here)
  • Username = Twitch User's name
  • Emote ID = ID assigned to an emote (Found in the URL)
  • Global = Can be used in any chat
  • Channel Emote = Emotes that are assigned to a certain chat
  • Emote Size = This will vary from platform to platfrom, the smaller the number the smaller the image.
@timothyham
timothyham / ipv6guide.md
Last active November 19, 2024 00:20
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1