Skip to content

Instantly share code, notes, and snippets.

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

UPDATE

Although below are methods to extract the contents of a macOS package without actually installing it, the best way might be to create a blank disk image and install the package to this disk image in order to inspect the package contents. To do so:

  • Open the Disk Utility app.
  • Choose "File > New Image > Blank Image". Alternatively, simply press CMD-N.
  • Set the parameters and click on "Save" to create the blank disk image.
  • After creation, it should be already mounted. If not, you can mount it by navigating to the directory that it is placed at and double clicking on the disk image file.
  • Run the package installer by double clicking on the package file.
  • Select this newly created blank disk image as the destination and install it.
  • If the script is preventing you from installing by saying, for example, "macOS isn't installed", you can:

You should change it by running chsh -s /path/to/the/shell/that/you/like and then logging out and logging in again. You should NOT do it by configuring the "Shells open with: Command (complete path):" setting in Terminal.app settings.

If you attempt to change it by configuring the "Shells open with: Command (complete path):" setting in Terminal.app settings but leaving your default shell as is (that is, not running chsh -s /path/to/the/shell/that/you/like), you will be in a world of pain. You will keep having inconsistencies between the behavior that you get on Terminal.app vs. the behavior of the (other) apps that you use, since the (other) apps that you use will honor the default shell configuration that's set by running chsh -s /path/to/the/shell/that/you/like. The "Shells open with: Command (complete path):" setting in Terminal.app settings is completely irrelevant for the (other) apps that you use.

By the way, an alternative to running chsh -s /path/to/the/shell/that/you/like is to:

  • Open Sys

If you wished that you had the ability of declaring the response body's types for your fetch calls beforehand (where you made the call), you can use the following fetch wrapper:

interface GenericResponse<T> extends Response {
  clone(): GenericResponse<T>;
  json(): Promise<T>;
}

export default async function genericFetch<T>(
 input: RequestInfo | URL,

Summary

All the information that you need are in the following links, in the given order:

  • [typescript-eslint installation]
  • [typescript-eslint configuration]
  • [eslint-plugin-prettier installation]
  • [eslint-plugin-prettier recommended configuration]
  • [TypeScript configuration]

The exact steps that you need to follow are:

  • mkdir project

Most likely, the AWS user that is associated with the app does not have API execution permissions. To fix this, perform the following steps. If you already have an AWS user, you can skip the first two steps. Note that the steps here are not necessarily the "best practices" as suggested by Amazon. Nevertheless, they are the most straightforward ones and shouldn't cause any problems:

  • Create an (any) AWS account. Note that the AWS account does not necessarily need to have any relation whatsoever with the account that you used to create your Amazon Marketplace.

  • Go to AWS Identity and Access Management Console (IAM) and create a user without any group memberships or attached policies whatsoever. Give a name of your choosing to the user.

  • Select the user that you've just created and expand the "Add permissions" dropdown menu and select "Add inline policy". On the editor that's just been launched, select JSON and replace its contents with the following:

    {
      

Python 2

sudo apt install python-svn 

Python 3

sudo apt install python3-svn

You can't. There is a --no-experiments command line option but it doesn't work, neither on Chrome, nor on Brave, at least on macOS. Hence, your only practical option is to use Safari for such situations. This means that it makes sense to keep Safari as the default browser on Mac.

  1. Navigate to the Search tab (SHIFTCMDF).
  2. Enter the text to search in the top box.
  3. In the box named "filed to include", enter the path of the Node.js module that you would like to perform the search on. For example: ./node_modules/jsdom.
  4. On the right of the box named "files to exclude", click on the gear icon to disable excluding ignored files. That is, deactivate the "Use Exclude Settings and Ignore Files" button.

That's it. The last step is frequently overlooked, so it is particularly important. If you do not deactivate it, then the search will be made only for files that are already open as a tab on your Visual Studio Code window, which would be misleading.

Making changes is easy. The important thing is to preserve the changes. A change to node_modules occurs any time we install or remove a package.

To preserve the changes, we can add the file to version control by running:

git add -f <path to the file in node_modules>

This way, the original version can be restored from Git.

The next step is automating this. To do so, we can define a wrapper shell function for the npm command. For example, in Bash: