Save the script to a file, such as directory_list_sizes.sh, and make it executable:
chmod +x directory_list_sizes.shTo use the script, provide the target directory as an argument when running it:
./directory_list_sizes.sh /path/to/directorySave the script to a file, such as directory_list_sizes.sh, and make it executable:
chmod +x directory_list_sizes.shTo use the script, provide the target directory as an argument when running it:
./directory_list_sizes.sh /path/to/directoryThis shell script displays all blob objects in the repository, sorted from smallest to largest.
For my sample repo, it ran about 100 times faster than the other ones found here. On my trusty Athlon II X4 system, it handles the Linux Kernel repository with its 5.6 million objects in just over a minute.
git rev-list --objects --all || import { relative, resolve } from 'node:path'; | |
| export default defineNuxtConfig({ | |
| hooks: { | |
| 'prepare:types': ({ tsConfig }) => { | |
| if (!tsConfig?.compilerOptions?.paths) { | |
| return; | |
| } | |
| const rootDir = process.cwd(); |
| (function () { | |
| 'use strict'; | |
| /** | |
| * @typedef {'warn' | 'info' | 'log' | 'error'} LoggerType | |
| */ | |
| /** | |
| * @typedef {Object} UseSoundAlertOptions | |
| * @property {number} timeBetweenPlays |
| import type { TupleToUnion } from 'type-fest'; | |
| import type { UsePersistentQueryOptions } from './usePersistentQuery'; | |
| import { usePersistentQuery } from './usePersistentQuery'; | |
| import { useRoute } from '#vue-router'; | |
| export function usePersistentQueries< | |
| TKeys extends readonly string[], | |
| TReturn = Record<TupleToUnion<TKeys>, Ref<string>>, |