Skip to content

Instantly share code, notes, and snippets.

View zakirkun's full-sized avatar
:octocat:
Hola!

Muhammad Zakir Ramadhan zakirkun

:octocat:
Hola!
View GitHub Profile

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live

function generatePlayers(player, dice) {
let players = []
for (let id = 0; id < player; id++) {
let dices = []
for (let die = 0; die < dice; die++) {
dices.push(0)
}
@zakirkun
zakirkun / s9y2blogger.php
Created September 4, 2020 18:50 — forked from michitux/s9y2blogger.php
PHP script to generate a Blogger Import file from a Serendipity database, it does some automatic conversion of utf-8 using iconv
<?php
class s9y2blogger {
private $database = NULL;
private $errors = array();
private $curEntry = array(); // current entry of the parser
private $inPublished = false;
public function __construct() {