Bash script to:
- Iterate all commits made within a Git repository.
- List every object at each commit.
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| mysqlFmt := "2006-01-02 15:04:05" | |
| ambiguous, err := time.Parse(mysqlFmt, "2021-01-01 13:01:02") |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/aes" | |
| "crypto/cipher" | |
| b64 "encoding/base64" | |
| "errors" | |
| "fmt" | |
| "log" |
| # ./.git-hooks/pre_commit/line_length.rb | |
| # | |
| # E.g.: | |
| # Precommit: | |
| # LineLength: | |
| # enabled: true | |
| # description: Verify source line lengths do not exceed 72 columns | |
| # max: 72 | |
| # include: ["src/**/*.*"] | |
| # |
| #!/bin/bash | |
| shopt -s extglob | |
| # generated from util-linux source: libmount/src/utils.c | |
| declare -A pseudofs_types=([anon_inodefs]=1 | |
| [autofs]=1 | |
| [bdev]=1 | |
| [binfmt_misc]=1 | |
| [cgroup]=1 |
| #!/bin/bash | |
| fdisk -lu | |
| pvscan | |
| vgscan | |
| vgchange -a y | |
| lvscan | |
| mount /dev/ubuntu-vg/root /mnt | |
| mount --bind /dev /mnt/dev | |
| mount --bind /proc /mnt/proc |
| <?php | |
| namespace PHPSTORM_META { | |
| /** | |
| * PhpStorm Meta file, to provide autocomplete information for PhpStorm | |
| * Generated on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <barryvdh@gmail.com> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ |
This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.
It's built for the Hugo static site generator, but could be adopted to function with any json index compatible with Fuse fuzzy search library.
To see it in action, go to craigmod.com and press CMD-/ and start typing.
| Cache | Latency | CPU cycles | Size | |
|---|---|---|---|---|
| L1 access | ~1.2 ns | ~4 | Between 32 KB and 512 KB | |
| L2 access | ~3 ns | ~10 | Between 128 KB and 24 MB | |
| L3 access | ~12 ns | ~40 | Between 2 MB and 32 MB |