Skip to content

Instantly share code, notes, and snippets.

@williamhaley
williamhaley / get-kinesis-records-by-shard-id-in-bash-one-liner.markdown
Last active December 20, 2018 01:01
Get Kinesis Records By Shard In Bash One Liner

One line to get all records from a stream since its StartingSequenceNumber. Just specify the shard, endpoint, and stream at the start of the script.

shard="shardId-000000000001"; endpoint="http://localhost:4567"; stream="test-stream";

See here an example pointed at kinesalite running locally.

shard="shardId-000000000001"; endpoint="http://localhost:4567"; stream="test-stream"; \
@williamhaley
williamhaley / README.md
Last active February 12, 2023 08:51
GRUB2 Theme With grub-mkstandalone

Problem

grub-mkstandalone creates an image designed to be held in memory. grub-mkstandalone comes with a --themes flag that could be used to specify a theme, but depending on the modules installed, you may encounter this error like I did.

grub-mkstandalone: error: core image is too big (0x1d71b3 > 0x78000).

This means that the image generated by grub-mkstandalone was too large.

One Solution