Skip to content

Instantly share code, notes, and snippets.

@ilkamo
ilkamo / sia-daemon.md
Last active January 24, 2023 04:20
Get started with Sia downloading and starting a Sia Daemon via command line on an Ubuntu Server.

Get started with Sia downloading and starting a Sia Daemon via command line on an Ubuntu Server.

Today I started a Sia Daemon on my VPS. During the entire process I encountered some problems, so I decided to share this document with you.

You can start a Sia Daemon as a root user, but is a good practise to create a dedicated user. So before starting, let's create a user called sia.

adduser sia

su sia

@ilkamo
ilkamo / xml_split.py
Created July 28, 2016 10:52 — forked from benallard/xml_split.py
Small python script to split huge XML files into parts. It takes one or two parameters. The first is always the huge XML file, and the second the size of the wished chunks in Kb (default to 1Mb) (0 spilt wherever possible) The generated files are called like the original one with an index between the filename and the extension like that: bigxml.…
#!/usr/bin/env python
import os
import xml.parsers.expat
from xml.sax.saxutils import escape
from optparse import OptionParser
from math import log10
# How much data we process at a time