kirchheimer

Tech stuff & traveling

Manage a blog with blogger

I wanted to have a website again, to collect information I found in the internet that I might need again some time, and maybe to present some pictures, when I take some on vacations.

Because I didn't want to use wordpress or write my own web cms, and I started to look into "new" languages, I built a small cli application in GO, that reads .md files and converts them into .html files for a blog.

Currently it is extremly limited and there are still some features I'd like to add, like adding static content pages, generate a json file to support javascript-search etc. At this moment I am not able to use more than one image per post, so the idea of showing photos from vacations isn't possible yet.

As soons as I am done with a basic featureset, I might make the github for this little project public. Perhaps someone is interested in using it.

Edit 2025-03-15

I can now generate content pages (see impressum) with blogger.

Copy & Paste in TMUX

To use copy and paste you need to do the following:

PREFIX [

Move the cursor to the first character you want to copy

PREFIX SPACE

Move the mouse to the last character you want to copy

PREFIX #

Where # is the screen you want to switch to

PREFIX ]

Mount remote directory

To connect to a remove server, you can use the tool sshfs. It mounts a remote directory via ssh to a local folder.

sshfs -p PORT USER@REMOVESERVER:REMOTEPATH LOCALPATH

Sync dotfiles with github

To backup and share my configurations for neovim, tmux, bash etc. I wanted to sync my local dotfiles to github. I found the following article, that I used to it.

https://www.anand-iyer.com/blog/2018/a-simpler-way-to-manage-your-dotfiles/

So make it short:

mkdir $HOME/.dotfiles
git init --bare $HOME/.dotfiles

Add alias to .*rc (.bashrc, .zshrc)

alias dotfiles='/usr/local/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
dotfiles remote add origin git@github.com:anandpiyer/.dotfiles.git
cd $HOME
dotfiles add .tmux.conf
dotfiles commit -m "Add .tmux.conf"
dotfiles push

Setting up a new machine

git clone --separate-git-dir=$HOME/.dotfiles https://github.com/anandpiyer/.dotfiles.git ~
git clone --separate-git-dir=$HOME/.dotfiles https://github.com/anandpiyer/.dotfiles.git tmpdotfiles
rsync --recursive --verbose --exclude '.git' tmpdotfiles/ $HOME/
rm -r tmpdotfiles