Skip to content

Instantly share code, notes, and snippets.

@haad
haad / Matfyz
Created November 16, 2019 09:24
Matfyzák: Návod k použití pro ženy
§1. Matfyzák neovládá telepatii. Chceš-li matfyzákovi něco sdělit, jednoduše a přímo mu to řekni.
§2. Matfyzák je tvor důvěřivý. Řekneš-li matfyzákovi „nic se neděje“, „dělej jak se ti to líbí“ nebo „kup na co máš chuť“, nesmíš se pak rozčilovat, že se bude chovat, jako by se nic nedělo, udělá si to tak, jak se to líbí jemu a koupí věci, které chutnají jemu (a většinou nedají moc práce připravit).
§3. Sex a milostné hrátky nejsou pro matfyzáka středobodem vesmíru. Může je mít rád, může je dělat kvůli tobě, ale vždycky bude mít činnosti, které jsou pro něj důležitější.
§4. Některé matfyzákovy záliby ti mohou připadat nesmyslné, směšné, odtržené od reality...Neměj strach, matfyzák má na některé tvoje záliby úplně stejný názor. Oboustranná tolerance vám pomůže.
§5. Počítač je matfyzákův kamarád. A žádný muž nemá rád, když mu žena brání stýkat se s kamarády.
§6. Matfyzák mluví, když chce něco sdělit nebo když ho zajímá téma debaty. V opačném případě mlčí. Budeš-li ho nutit mluv
@haad
haad / php-fpm.conf
Created November 13, 2019 15:28 — forked from sotarok/php-fpm.conf
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/home/sotarok/.phpenv/versions/5.4.0s). This prefix can be dynamicaly changed by using the
; '-p' argument from the command line.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
@haad
haad / curl
Last active May 24, 2019 11:30
> GET / HTTP/1.1
> Host: 10.252.26.21:8161
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 24 May 2019 11:28:07 GMT
< Last-Modified: Mon, 04 Mar 2019 19:09:28 GMT
< Content-Type: text/html
< Accept-Ranges: bytes
Jun 6 17:23:07 os-node6 kernel: [60296.245036] INFO: task md1_resync:7614 blocked for more than 120 seconds.
Jun 6 17:23:07 os-node6 kernel: [60296.245058] Not tainted 4.13.0-36-generic #40~16.04.1-Ubuntu
Jun 6 17:23:07 os-node6 kernel: [60296.245076] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jun 6 17:23:07 os-node6 kernel: [60296.245098] md1_resync D 0 7614 2 0x00000000
Jun 6 17:23:07 os-node6 kernel: [60296.245100] Call Trace:
Jun 6 17:23:07 os-node6 kernel: [60296.245102] __schedule+0x3d6/0x8b0
Jun 6 17:23:07 os-node6 kernel: [60296.245103] schedule+0x36/0x80
Jun 6 17:23:07 os-node6 kernel: [60296.245105] raise_barrier+0xd2/0x1a0 [raid10]
Jun 6 17:23:07 os-node6 kernel: [60296.245107] ? wait_woken+0x80/0x80
Jun 6 17:23:07 os-node6 kernel: [60296.245108] raid10_sync_request+0x9bd/0x1b10 [raid10]
###
# Neutron setup
##
network_server_hosts:
dev-mng1:
ip: 10.1.233.31
network_hosts:
dev-net1:
ip: 10.1.233.15
---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@haad
haad / cmd
Created November 15, 2017 15:26 — forked from eldondev/cmd
Because everyone needs a good preseed
wget -nc http://ftp.debian.org/debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux
wget -nc http://ftp.debian.org/debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
cp -nv ~/.ssh/id_rsa.pub .
qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display none
@haad
haad / kube.yaml
Created October 26, 2017 09:30 — forked from kamilhristov/kube.yaml
Example kops manifest
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
name: kube.kamilhristov.com
spec:
cloudProvider: aws
etcdClusters:
- etcdMembers:
- instanceGroup: master-1
name: master-1
https://github.com/CentOS-PaaS-SIG/linch-pin/blob/master/library/schema_check.py
diff --git i/library/hpilo_boot w/library/hpilo_boot
index a6eba2d..d019c3d 100755
--- i/library/hpilo_boot
+++ w/library/hpilo_boot
@@ -22,36 +22,44 @@ DOCUMENTATION = '''
---
author: Dag Wieers
module: hpilo_boot
-short_description: Boot system using specific media through HP iLO interface
+requirements: [ python hpilo ]