How I set up my $0.0075 blog

· rtnF

# Get your prose.sh instance

First, open terminal, then execute this, then pick your username. Remember this username.

ssh new@prose.sh

# Connect your IDE to your prose.sh instance

Then, install Sublime Text, click Tools -> Build System -> New Build System. Then add this new build system.

{
	"shell_cmd": "echo Uploading to Prose.sh.. && scp \"$file\" prose.sh:/"
}

Save as prose.sublime-build. Now, you can press ctrl+b to publish your file to your prose.sh instance (but make sure to check the "prose" menu in Tools-> Build System)

# Configure site settings

Create a new file _readme.md, fill it with your own site settings, here's mine :

---
title: "rtnF"
nav:
    - github: https://github.com/altilunium
    - HN: https://news.ycombinator.com/user?id=altilunium
    - OSM: https://www.openstreetmap.org/user/rtnf
    - wiki: https://id.wikipedia.org/wiki/Pengguna:Rtnf
    - twitter: https://twitter.com/rtnF14
    - about: https://rtnf.my.id/about
image : https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Rayleigh_scattering_on_water.jpg/238px-Rayleigh_scattering_on_water.jpg
summary : "rtnF's blog"
summary_large_image : https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Rayleigh_scattering_on_water.jpg/238px-Rayleigh_scattering_on_water.jpg
---

If you're done, save and upload it (ctrl+b).

# Configure themes

Create a new file _styles.css, download the themes here. Upload it to your prose.sh instance (ctrl+b).

# Configure custom domain

I got a promo code from my hosting provider, so i can buy this domain (rtnf.my.id) for only $ 0.0075 (Rp 111) for 1 year.

Then, let's configure the custom domain. If you want to point your main domain directly to your blog, then you should use A record :

Name Type TTL Rdata
@ A 14400 150.136.173.0
_prose TXT 14400 rtnf

But if you want to point a subdomain to your blog, then you need to use CNAME record :

Name Type TTL Rdata
blog CNAME 14400 prose.sh
_prose.blog TXT 14400 rtnf

"rtnf" is my prose.sh instance username, you should change it to yours (take a look at step one). 150.136.173.0 is prose.sh's server. "blog" is the subdomain, you can change it as you wish.

# Post something

Your website is now up and running. Go post something. For example, create sqlite.md, then write this

title: "SQLite : Pages & Btrees"
----
These first two fields use what's called a variable-length integer encoding (varint). This encoding is used so that we don't use a huge 8-byte field for every integer and waste a bunch of space. Varints use a simple trick. The high bit is used as a flag to indicate if there are more bytes to be read and the other 7 bits are our actual data. So, if we wanted to represent 1000, we start with its binary representation into 7 bit chunks...

Then upload it (ctrl + b). Your post will be up and running at yourblog.com/sqlite