Skip to content

Instantly share code, notes, and snippets.

Christopher Shroba chrisshroba

Block or report user

Report or block chrisshroba

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View collectd_insert.sql
-- Description:
-- ------------
-- This is an example schema for storing collectd metrics in a TimescaleDB
-- dabase (see It is based on the PostgreSQL
-- schema contributed by Sebastian Harl.
-- Prerequisities:
-- ---------------
drmalex07 / play-with-reboot-and-wait.yml
Last active Aug 9, 2018
An example of rebooting all hosts and waiting in an Ansible playbook. #ansible #ansible-playbook #reboot
View play-with-reboot-and-wait.yml
- hosts: all
- name: Echo hostname
shell: echo {{ansible_host}}
- name: Reboot
bartj3 / .tmux.conf
Created Mar 25, 2015
Hide tmux status bar when zoomed in on a pane
View .tmux.conf
bind-key z resize-pane -Z \; if-shell "tmux list-panes -F '#F' | grep -q Z" "set -g status off" "set -g status on"
sheldonh / local_wait.yml
Last active Aug 5, 2019
Wait for SSH to come up in an Ansible playbook
View local_wait.yml
- hosts: demo
tags: wait
gather_facts: no
- name: Wait for SSH
local_action: wait_for port=22 host={% if ansible_ssh_host is defined %}{{ ansible_ssh_host }}{% else %}{{ inventory_hostname }}{% endif %}
TooTallNate / mouse.js
Created Jan 30, 2012
Enable "mouse reporting" with Node.js
View mouse.js
// Based on:
process.stdin.on('data', function (b) {
var s = b.toString('utf8');
if (s === '\u0003') {
You can’t perform that action at this time.