Skip to content

AlecRosenbaum/alecrosenbaum.github.io

Repository files navigation

Alec's Personal Site

Snippets

Optimize and scale a bunch of jpegs with ffmpeg

scale () {
	for f in $@;
		do ffmpeg -y -i "$f" -q:v 1 -vf scale=-1:555 "${f%.jpg}.jpg";
	done
}

Rotate an image with ffmpeg

rotate () {
  cp $1 $1.bak;
  ffmpeg -i $1 -vf "transpose=clock" -y $1
}

Run hugo locally

hugo server

Or with drafts:

hugo server -D

Create a new post

hugo new posts/my-post-name/index.md

Then add images to the content/posts/my-post-name/ directory.

Build

hugo --gc --minify

About

Just my personal static site :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •