Skip to content

Instantly share code, notes, and snippets.

View motiejus's full-sized avatar

Motiejus Jakštys motiejus

View GitHub Profile
@motiejus
motiejus / fosdem2014.md
Last active August 29, 2015 13:55
Fosdem 2014

FOSDEM2014

  1. Wanted to get to kdbus, couldn't
  2. Galera Cluster IRL
  3. Sailfish intro
  4. Sailfish round table
  5. Debian Contributors
  6. Sailfish dinner
@motiejus
motiejus / day1.rst
Last active August 29, 2015 13:57
Kalifornija 2014

1 diena, San Franciskas

Išskridome iš Schiphol 10:05, atskridome apie 12:40 vietos laiku. Valandą užtruko stovėjimas eilėje prie vizų.

image

Taksi iš oro uosto į viešbutį važiavome apie 40 minučių. Taksistas pasitaikė įdomus žmogus, pravažinėjęs Nyderlandus kiaurai dviračiu (kompanijoje buvęs

.. image: t1.jpg
.. image: t1.jpg
@motiejus
motiejus / t1.jpg
Last active August 29, 2015 13:57
t1.rst
t1.jpg
@motiejus
motiejus / 2months.rst
Last active August 29, 2015 13:57
My take on Jolla after two months

My take on Jolla after two months of use

Before purchasing Jolla I gave some reasons why I am purchasing a new phone and an explanation what I expect from it.

Because I have an Android tablet, I did not need an Android phone and I was OK to experiment. Many of the typical phone features like maps, twitter, offline wikipedia are on tablet which I always have with me; therefore phone does not have that many requirements.

@motiejus
motiejus / safe.rst
Last active August 29, 2015 14:01
Safe by default

Safe by default

This post documents my envisioned state of digital asset storage and maintenance. Most of the stuff is already implemented, so this page is a reminder for me what the final state should be.

Inspired by musings from Colin Percival.

Archive and backup all personal stuff

@motiejus
motiejus / f1.md
Last active August 29, 2015 14:05
piqi showcase

A sample resource:

.resource [
  .url [
    .string.gamelist
    .string.favouritesGet
    .binding.siteid
    .binding.uid
 ]
@motiejus
motiejus / graphite.txt
Created November 18, 2014 23:12
graphite server on CoreOS (userdata script)
#!/bin/bash
# Begin graphite.service
set -euo pipefail
cat > /etc/systemd/system/graphite.service <<EOF
[Unit]
Description=graphite server
After=docker.service
Requires=docker.service
[Service]
@motiejus
motiejus / btree.erl
Created June 1, 2011 10:24
Motiejaus dvejetainio paieškos medžio implementacija
-module(btree).
-export([bt/1, lookup/2, ins/2, del/2]).
%% UNBALANCED BINARY TREE
bt(Val, Left, Right) -> { Val, Left, Right }.
bt(Val) -> bt(Val, nil, nil).
lookup(nil, _) -> nil;
lookup({Val, _, _}, Val) -> Val;
lookup({Val, L, _}, Elem) when Val > Elem -> lookup(L, Elem);