Skip to content

Instantly share code, notes, and snippets.

View czettnersandor's full-sized avatar

Sándor Czettner czettnersandor

  • Glasgow, United Kingdom
View GitHub Profile
@czettnersandor
czettnersandor / i3-cheat-sheet.md
Last active August 14, 2020 07:48 — forked from JeffPaine/i3-cheat-sheet.md
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (Super - Win)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open rofi (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@czettnersandor
czettnersandor / vimbingo
Last active December 29, 2015 05:19 — forked from matason/vimbingo
Adding myself in
your name
Sandor Czettner
@czettnersandor
czettnersandor / getErrorMessages.php
Last active December 10, 2015 13:39 — forked from umpirsky/getErrorMessages.php
Symfony 2: Retrieves every error message for the form to a simple array. Including the field error messages.
<?php
private function getErrorMessages(\Symfony\Component\Form\Form $form) {
$errors = array();
foreach ($form->getErrors() as $key => $error) {
$errors[] = $error->getMessage();
}
if ($form->hasChildren()) {
foreach ($form->getChildren() as $child) {
if (!$child->isValid()) {