Musings of an aging computer nerd hitting 0x32
Retro Gaming Commando
One of the games I loved playing in my youth on my BBC Micro, I’m still rubbish at it to this day.
Links
Markor Android App
Found this useful Android Mark down application.
Markor it has a Hugo template to use for blank documents which is useful.
It’s on FDroid so it’s easy to install o on my kindle as well.
Then use Github website to upload the new file to my Hugo blog repo.
Posting from Android 2
Testing github Web upload.
Update
Edited on mark down app, uploaded again via github web page.
Mgit
Found mGit App which looks like it would do the job of repo management on Android.
First trial not so good.
Wondering if its an issue with having MFA enabled on my Github account, although using my personal access token instead of the password should work I would have thought.
I’ve submitted an issue on their Github page, so wait and see what they say about it.
Posting from Android
Trying to think of a way to be able to post content from my Android devices (phone/ Fire Tablet).
Basically would need just the following;
- Text editor for creating markdown for the post.
- Git to checkout, commit and push updates to GitHub.
My Travis CI pipeline would then handle the publishing.
Finding a text editor app isn’t a problem there are any number of them on both Google Play and Amazon Kindle stores which could be used.
Automation
Automate publishing
To make the publishing of new content easily I am using Travis CI to publish changes.
I did try installing Hugo from source but this took longer and was producing errors so it was easier to download the binary.
Using this as the Travis CI pipline yaml.
Travis CI Pipeline
# Auto deploy repo from Github to Amazon S3 bucket via Travis CI
# * Set env vars for ACCESS_KEY_ID, BUCKET_NAME and SECRET_ACCESS_KEY on Travis
# * Update `bucket.name` in `sync` command
# * Assumes your `publishDir` is the default (`public`) - if not update `sync` command
language: go
before_install:
addons:
apt:
packages:
- libcurl4-openssl-dev # required to avoid SSL errors
install:
- curl -LO https://github.com/gohugoio/hugo/releases/download/v0.74.3/hugo_0.74.3_Linux-64bit.deb
- sudo dpkg -i hugo_0.74.3_Linux-64bit.deb
before_script:
- python --version
- sudo pip install s3cmd
script:
- hugo
after_success:
- s3cmd sync -v --delete-removed --no-preserve --access_key=$ACCESS_KEY_ID --secret_key=$SECRET_ACCESS_KEY -r public/ s3://$BUCKET_NAME
notifications:
email: true
My First Post
My First Post
Welcome to my new blog 0x32 started as I reach the age of 50.