Skip to content

Instantly share code, notes, and snippets.

@M4rtinK
M4rtinK / anaconda.log
Created July 11, 2017 17:23
anaconda.log with structured logging
17:12:03,702 INF main: /sbin/anaconda 27.18-1
17:12:03,764 INF isys: 2155164 kB (2104 MB) are available
17:12:03,777 INF startup_utils: check_memory(): total:2104, needed:320, graphical:410
17:12:03,784 INF main: anaconda called with cmdline = ['/sbin/anaconda']
17:12:03,785 INF main: Default encoding = utf-8
17:12:03,801 INF startup_utils: Parsing kickstart: /usr/share/anaconda/interactive-defaults.ks
17:12:03,817 INF misc: Initializing docker addon
17:12:03,996 DBG localization: setting locale to: en_US.UTF-8
17:12:04,006 DBG network: devices found ['ens3']
17:12:04,014 DBG network: ensure single initramfs connections
@M4rtinK
M4rtinK / Useful Git aliases for .gitconfig
Created June 2, 2017 13:17
Useful Git aliases for .gitconfig
[alias]
tree = log --oneline --decorate --graph
ff = !sh -c 'branch=$(git symbolic-ref HEAD | cut -d '/' -f 3) && git rebase origin/$branch' -
g = grep --break --heading --line-number
show-recent = for-each-ref --sort=-committerdate refs/heads/
ac = !sh -c 'git add -u && git commit --amend --no-edit'
ace = !sh -c 'git add -u && git commit --amend'
au = add -u
auc = !sh -c 'git add -u && git commit'
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
@M4rtinK
M4rtinK / Useful Vim plugins
Last active June 2, 2017 13:16
Useful Vim plugins
- vundle - Vim pluging manager: https://github.com/VundleVim/Vundle.vim
- vim-gigutter - display (and manipulate) what changed in file from git version: https://github.com/airblade/vim-gitgutter
- fugitive - git command support: https://github.com/tpope/vim-fugitive
- jedi-vim - Python autocomplete: https://github.com/davidhalter/jedi-vim
- YouCompleteMe - advanced code completion engine with Python support: https://github.com/Valloric/YouCompleteMe
- syntastic - syntax checking and highlighting: https://github.com/vim-syntastic/syntastic
- supertab - makes the tab key more powerful in Vim: https://github.com/ervandew/supertab
- NERD Tree - folder & file tree viewer for Vim: https://github.com/scrooloose/nerdtree
[QUOTE=RussianNeuroMancer;n947934]Btrfs used in Jolla phones and tablets.[/QUOTE]
That's actually no longer true - it was used in the first Sailfish OS device (the "Jolla 1" smartphone), but there were serious issues with it and new devices (Jolla Tablet, Jolla C, Intex Aquafish, community ports, etc.) all run EXT4 on top of LVM.
AFAIK, these were the reasons why Jolla dropped btrfs:
- metadata block exhaustion resulting in filesystem write operations failing at random
- The Jolla 1 internal storage was about 16 GB big. Btrfs allocates data and metadata block on demand, starting with one data and one metadat block being allocated. Then it would often happen that the remaining free space will be all allocated to data blocks (as the users adds big files to the device, records video, etc.). Things would still work for a while, until the single metadata block gets full and there is no unallocated space for a new metadata block. Result: filesystem operations failing at random, Oops! :P
- Bogus free space report
#!/bin/python3
import os
from os.path import expanduser
import requests
import rpm
import shutil
SPEC_FILE_URL = "https://raw.githubusercontent.com/M4rtinK/modrana/master/packaging/modrana.spec"
@M4rtinK
M4rtinK / gist:74736d1778e398725d58cbce532f087d
Created September 26, 2016 00:00
modRana from Git on Sailfish OS
pkcon install qtchooser
git clone https://github.com/M4rtinK/modrana/
cd modrana/run
./sailfish
@M4rtinK
M4rtinK / gist:6b017ca56262ae6704d849da4de9e0a5
Created July 29, 2016 12:59
.gitconfig relevant parts @ 29.07.2016
[alias]
tree = log --oneline --decorate --graph
ff = !sh -c 'branch=$(git symbolic-ref HEAD | cut -d '/' -f 3) && git rebase origin/$branch' -
g = grep --break --heading --line-number
show-recent = for-each-ref --sort=-committerdate refs/heads/
ac = !sh -c 'git add -u && git commit --amend --no-edit'
ace = !sh -c 'git add -u && git commit --amend'
au = add -u
auc = !sh -c 'git add -u && git commit'
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
commit c29354e8bf7e4579ac1c6865de1209e29db7309f
Author: Martin Kolman <[email protected]>
Date: Tue May 10 15:53:48 2016 +0200
Add support for alternative device specifications (#1200833)
Make it possible to have multiple devices delimited by | in the device
specification, for example:
"sd*|hd*|vda"
commit 5c7bc08b689807cd9a4269e8950ac89ade6567a2
Author: David Shea <[email protected]>
Date: Tue Jun 7 14:59:17 2016 -0400
Fix the name sensitivity in the custom spoke.
When switching from an existing device to a non-existing device of the
same type, the sensitivity of the "Name" field was not being updated.
Add an extra call to the combo box change signal handler to handle this
case.

Possible Anaconda Git branching model

The idea is to have these four branches:

  • master
  • unstable
  • <next fedora number>-release
  • <next fedora number>-devel