Skip to content

Instantly share code, notes, and snippets.

View nethalo's full-sized avatar
:shipit:

Daniel Guzmán Burgos nethalo

:shipit:
  • Percona
  • Cali, Colombia
View GitHub Profile
@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

Found here by Stephan Farestam

Here is a bash-only YAML parser that leverages sed and awk to parse simple yaml files:

function parse_yaml {
   local prefix=$2
   local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')
   sed -ne "s|^\($s\):|\1|" \
        -e "s|^\($s\)\($w\)$s:$s[\"']\(.*\)[\"']$s\$|\1$fs\2$fs\3|p" \

-e "s|^($s)($w)$s:$s(.*)$s$|\1$fs\2$fs\3|p" $1 |

@kylemclaren
kylemclaren / findLongRunningOp.js
Last active April 9, 2024 20:10 — forked from comerford/killLongRunningOps.js
Find and (safely) kill long running MongoDB ops
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)
@cameronoxley
cameronoxley / fix-checkpoint.command
Created November 15, 2013 18:51
Fixes the "com.apple.launchd com.checkpoint.epc.service: Exited with code: 1" and "Tcom.apple.launchd: (com.checkpoint.epc.service) Throttling respawn: Will start in 10 seconds" Config error in: Checkpoint Endpoint Security E75.01.
#!/bin/bash
sudo cp -f /Library/Application\ Support/Checkpoint/Endpoint\ Connect/Trac.config.bak /Library/Application\ Support/Checkpoint/Endpoint\ Connect/Trac.config

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 5, 2024 22:16
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: