Skip to content

Instantly share code, notes, and snippets.

View f7o's full-sized avatar

Florian Zouhar f7o

View GitHub Profile
@f7o
f7o / ssh-copy-id.yml
Created October 17, 2019 14:09
Ansible Task to perform ssh-copy-id for certain groups
---
- name: ssh-copy-id
hosts: <host_group>
become: true
tasks:
- name: Set authorized key taken from file
authorized_key:
user: ubuntu
state: present
key: "{{ lookup('file', '/Users/<user>/.ssh/id_rsa.pub') }}"
@f7o
f7o / task.yml
Last active August 20, 2019 08:21
Ansible URI retry HTTP for 200: OK
- name: "wait for service responding a 200: OK"
uri:
url: "http://127.0.0.1:8888/"
status_code: 200
register: result
until: result.status == 200
retries: 60
delay: 5
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
@f7o
f7o / zshrc
Created July 5, 2016 20:00
fork of z shell config from michael prokop
# Filename: /etc/zsh/zshrc
# Purpose: config file for zsh (z shell)
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
################################################################################
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
@f7o
f7o / .Xdefaults
Created July 5, 2016 19:59
linux RXVT uniode console emulator config
URxvt.scrollBar: false
URxvt.imLocale: en_US.UTF-8
URxvt.foreground: white
URxvt.saveLines: 1200
URxvt.background: black
URxvt.transparent: true
URxvt.shading: 15
#URxvt.font: xft:DejaVu sans Mono:pixelsize=12:antialias=true:hinting=true
@f7o
f7o / Application.scala
Last active June 20, 2016 07:30
QueryStringBindable for Map[String, String] and Map[String, List[String]]
import play.api.mvc.QueryStringBindable
import play.api.mvc.{Action, Controller}
/**
* Created by flo on 6/19/2016.
*/
object Binders {
implicit def queryMapBinder(implicit stringBinder: QueryStringBindable[String]) = new QueryStringBindable[Map[String, String]] {
override def bind(key: String, params: Map[String, Seq[String]]): Option[Either[String, Map[String, String]]] = {