This gist is a template for making jumpbox ansible playbook for different cases This playbook is used for Ubuntu servers with ansible 1.9
Run with a simple command:
ansible-playbook jumpbox-playbook.yml -i hosts
-- TerminalVim.app | |
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm | |
-- To use this script: | |
-- 1. Open Automator and create a new Application | |
-- 2. Add the "Run Applescript" action | |
-- 3. Paste this script into the Run Applescript section | |
-- 4. Save the application as TerminalVim.app in your Applications folder | |
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default |
#!/bin/bash | |
# Example for the Docker Hub V2 API | |
# Returns all images and tags associated with a Docker Hub organization account. | |
# Requires 'jq': https://stedolan.github.io/jq/ | |
# set username, password, and organization | |
UNAME="" | |
UPASS="" | |
ORG="" |
#!/usr/bin/env ruby | |
require "cli" | |
require "cli/release" | |
require "cli/blob_manager" | |
require "blobstore_client" | |
require "cli/versions/versions_index" | |
require 'optparse' |
First, lets try to understand what the rake setup
does, it creates
a basic linux system under /tmp/warden directory using 2 basic tools:
debootstrap and chroot. Deboostrap is a tool that setup a basic debian OS,
ubuntu is based on debian so that's the reason why we can use debootstrap to create
ubuntu systems too, basically you run: debootstrap [OPTION...] SUITE TARGET [MIRROR [SCRIPT]]
see (man deboostrap). After the installation you can use that system with chroot command
to run commands or interactive shell with a special root directory (see man chroot).
----- Esc ----- | |
Quick change directory: Esc + c | |
Quick change directory history: Esc + c and then Esc + h | |
Quick change directory previous entry: Esc + c and then Esc + p | |
Command line history: Esc + h | |
Command line previous command: Esc + p | |
View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
Print current working directory in command line: Esc + a | |
Switch between background command line and MC: Ctrl + o | |
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |