churnikov / churnikov.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Churnikov's blog

This is my personal blog. I write about my projects, my thoughts and my life.

How to run locally

  1. Install Ruby and Bundler.
    1. How to install ruby on MacOS
  2. Clone this repository.
  3. Run bundle install in the repository directory.
  4. Run bundle exec jekyll serve --livereload to start the local server.
  5. Open http://localhost:4000 in your browser.

Scripts on MacOS to work with images:

Set AWS credentials in ~/.aws/credentials:

[default]
aws_access_key_id = <your_access_key_id>
aws_secret_access_key = <your_secret_access_key>

How to upload images to DigitalOcean Spaces:

for file in *.jpg; do
    aws s3 cp --acl public-read --endpoint=https://fra1.digitaloceanspaces.com $file s3://path/on/s3/$file
done

How to resize images on MacOS:

for file in *.jpg; do
    sips -Z 800 "$file" --out "${file%.jpg}_resized.jpg"
done

How to convert HEIC to JPG on MacOS:

for file in *.HEIC; do
    sips -s format jpeg "$file" --out "${file%.heic}.jpg"
done

From the author of template

Click Use this template button above for the quickest method of getting started with the Minimal Mistakes Jekyll theme.

Contains basic configuration to get you a site with:

  • Sample posts.
  • Sample top navigation.
  • Sample author sidebar with social links.
  • Sample footer links.
  • Paginated home page.
  • Archive pages for posts grouped by year, category, and tag.
  • Sample about page.
  • Sample 404 page.
  • Site wide search.

Replace sample content with your own and configure as necessary.


Troubleshooting

If you have a question about using Jekyll, start a discussion on the Jekyll Forum or StackOverflow. Other resources:

About


Languages

Language:Ruby 62.3%Language:HTML 37.7%