<commit_before>---
date: 2014-01-23
title: Publishing blog posts on scriptogram with cli tools
layout: default
tags: dropbox
---

To publish a post on scriptogram you need to write a file in markdown format to the Apps/scriptogram folder on your linked dropbox account.

Here we use [dropbox_uploader.sh](https://github.com/andreafabrizi/Dropbox-Uploader) to upload to dropbox from a headless Linux box (in this case a RPi running Arch Linux).

A quick peek at the markdown file:

    [<EMAIL>@<EMAIL> ~]$ head scriptogram-cli.md
    Date: 2014-01-23
    Title: Publishing blog posts on scriptogram with cli tools

Now upload to your linked dropbox (assumes you already did the first run dropbox_uploader.sh setup)

    [<EMAIL>@alarmpi ~]$ dropbox_uploader.sh upload scriptogram-cli.md Apps/scriptogram/posts/scriptogram-cli.md
    Uploading "/home/craigb/scriptogram-cli.md" to "/Apps/scriptogram/posts/scriptogram-cli.md"... DONE

If you have autosync enabled on your scriptogram account, your website will be automagically regenerated and published. Otherwise login to scriptogram, go to the dashboard and click "synchronize".<commit_msg>Change layout to post<commit_after>---
date: 2014-01-23
title: Publishing blog posts on scriptogram with cli tools
layout: post
tags: dropbox
---

To publish a post on scriptogram you need to write a file in markdown format to the Apps/scriptogram folder on your linked dropbox account.

Here we use [dropbox_uploader.sh](https://github.com/andreafabrizi/Dropbox-Uploader) to upload to dropbox from a headless Linux box (in this case a RPi running Arch Linux).

A quick peek at the markdown file:

    [<EMAIL>@<EMAIL> ~]$ head scriptogram-cli.md
    Date: 2014-01-23
    Title: Publishing blog posts on scriptogram with cli tools

Now upload to your linked dropbox (assumes you already did the first run dropbox_uploader.sh setup)

    [craigb@alarmpi ~]$ dropbox_uploader.sh upload scriptogram-cli.md Apps/scriptogram/posts/scriptogram-cli.md
    Uploading "/home/craigb/scriptogram-cli.md" to "/Apps/scriptogram/posts/scriptogram-cli.md"... DONE

If you have autosync enabled on your scriptogram account, your website will be automagically regenerated and published. Otherwise login to scriptogram, go to the dashboard and click "synchronize".
{'fraction_non_alphanumeric': 0.0777972027972028, 'fraction_numerical': 0.013986013986013986, 'mean_word_length': 4.373239436619718, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7322603', 'n_tokens_mistral': 709, 'n_tokens_neox': 666, 'n_words': 272}