Skip to content

Instantly share code, notes, and snippets.

View gist:fb551e276c2c8ee88ada
- hosts: "{{ host_to_rebuild }}"
gather_facts: False
user: root
serial: 1
tasks:
- name: Set PXE boot
shell: ipmitool chassis bootdev pxe
View vimrc
set number " Line numbering
autocmd BufWritePre *.pp :%s/\s\+$//e " Remove whitespaes from the end of puppet file lines
autocmd BufNewFile,BufRead *.pp set filetype=ruby " Deal *.pp files with Ruby syntax
syntax enable " Have syntax highlighted
set background=dark " Use light backgroud
colorscheme solarized " Solarized color scheme
set nocompatible " Behave as VIM not VI
filetype indent plugin on " Indent files
set hidden
set showcmd
View gist:77ab94e518fc25710c06
root@slave01 (localhost) [(none)]> SHOW MASTER STATUS\G
*************************** 1. row ***************************
File: mysql-bin.000002
Position: 12823679
Binlog_Do_DB:
Binlog_Ignore_DB:
Executed_Gtid_Set: 075d81d6-8d7f-11e3-9d88-b4b52f517ce4:1-1075752934,
cd56d1ad-1e82-11e5-947b-b4b52f51dbf8:1-1030537308:1030537310-1030538689,
e907792a-8417-11e3-a037-b4b52f51dbf8:1-25858698180
1 row in set (0.00 sec)
@banyek
banyek / gist:26fc26c740864a169b9c
Created Sep 13, 2015
Getting a rid of rogue writes
View gist:26fc26c740864a169b9c
root@slave01 (localhost) [(none)]> SHOW MASTER STATUS\G
*************************** 1. row ***************************
File: mysql-bin.000002
Position: 12823679
Binlog_Do_DB:
Binlog_Ignore_DB:
Executed_Gtid_Set: 075d81d6-8d7f-11e3-9d88-b4b52f517ce4:1-1075752934,
b0ffcb4d-1a8e-11e5-bab3-e4115bd95ad8:1,
cd56d1ad-1e82-11e5-947b-b4b52f51dbf8:1-1030513130,
e907792a-8417-11e3-a037-b4b52f51dbf8:1-25858698180