Skip to content

Instantly share code, notes, and snippets.

View mijoharas's full-sized avatar

Michael Hauser-Raspe mijoharas

View GitHub Profile
@mijoharas
mijoharas / ruby_profile_file.rb
Created August 30, 2016 16:04
profiling ruby file approaches
require 'ruby-prof'
filename = '/tmp/example.txt'
File.delete(filename)
# profile first method
RubyProf.start
(1..100_000).each do |i|
@mijoharas
mijoharas / README.md
Last active December 21, 2021 16:28
navigate emacs or i3 depending on whether emacs is focussed.

i3-navigate-emacs

Usage:

Create bash file above and put it in your path. add these lines to your i3/config:

# change focus
bindsym $alt+$left exec i3-navigate-emacs left
bindsym $alt+$down exec i3-navigate-emacs down
bindsym $alt+$up exec i3-navigate-emacs up
@mijoharas
mijoharas / ARCH_INSTALL.MD
Created February 7, 2018 20:50 — forked from heppu/ARCH_INSTALL.MD
Installing Arch with GPT, LUKS, LVM and systemd-boot

Create bootable USB

dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && sync

Boot from USB and set prepare system

loadkeys <your-keymap>