Skip to content

Instantly share code, notes, and snippets.

View Marahin's full-sized avatar
:shipit:
self.class.new

Jasiek Matusz Marahin

:shipit:
self.class.new
View GitHub Profile
@Marahin
Marahin / heredoc_erb1.rb
Created August 30, 2019 12:23 — forked from tuxfight3r/heredoc_erb1.rb
ruby DATA and __END__ heredoc method
#!/usr/bin/ruby
DATA.each_line do |line|
puts line
end
__END__
Doom
Quake
Diablo
@Marahin
Marahin / memusg
Created May 1, 2016 00:37 — forked from netj/memusg
memusg -- Measure memory usage of processes
#!/usr/bin/env bash
# memusg -- Measure memory usage of processes
# Usage: memusg COMMAND [ARGS]...
#
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2010-08-16
############################################################################
# Copyright 2010 Jaeho Shin. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
@Marahin
Marahin / i3-cheat-sheet.md
Created February 29, 2016 10:32 — forked from JeffPaine/i3-cheat-sheet.md
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3