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
@zakirkun
zakirkun / rsa_util.go
Created July 24, 2024 08:34 — forked from miguelmota/rsa_util.go
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)

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() {