ansible: Ansible development package for Oh My Fish
apt: Short and friendly command wrapper for APT
battery: OS X and Linux compatible battery utilities
brew: Oh My Fish plugin to integrate Homebrew paths into shell.
This is a simple python client that shows succinct information on boot resources that you have available in your maas.
It uses the same login credenitals that the maas cli uses, and depends on that being set up.
The data output is is space delimited os/release, arch/subarch, build_serial, label, synced.
$ maas list
admin http://192.168.1.2/MAAS/api/1.0/ ABCDEFG:abcdefg:12345afjd
| # The command finds the most recent tag that is reachable from a commit. | |
| # If the tag points to the commit, then only the tag is shown. | |
| # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
| # and the abbreviated object name of the most recent commit. | |
| git describe | |
| # With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
| git describe --abbrev=0 | |
| # other examples |
| #!/usr/bin/env ruby | |
| # NOTICE: GCE and OpenStack providers only. | |
| require 'json' | |
| require 'erb' | |
| def get_template() | |
| %{ | |
| <% hosts.each do |key, entry| %> | |
| Host <%= key %> |
| import collections | |
| def dict_merge(dct, merge_dct): | |
| """ Recursive dict merge. Inspired by :meth:``dict.update()``, instead of | |
| updating only top-level keys, dict_merge recurses down into dicts nested | |
| to an arbitrary depth, updating keys. The ``merge_dct`` is merged into | |
| ``dct``. | |
| :param dct: dict onto which the merge is executed | |
| :param merge_dct: dct merged into dct |
| {# Place this file in /srv/reactor/process_status_updates.sls | |
| Call via sending a custom event on a minion as: | |
| salt-call event.send myco/external_task/status_update task=foo status='Update number one!' | |
| Requires reactor config such as: | |
| reactor: | |
| - 'myco/external_task/status_update': | |
| - /srv/reactor/process_status_updates.sls |
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
| #!/bin/sh | |
| # | |
| # Author: Matthieu Prat <matthieuprat@gmail.com> | |
| # Date: 01/22/2015 | |
| # | |
| # Sync a local work tree with a remote one. | |
| # It's rsync on steroids within large Git repositories. | |
| USAGE='<repository>' | |
| LONG_USAGE='Sync a local work tree with a remote one.' |
| # Based on https://github.com/sass/libsass/wiki/Building-with-autotools | |
| # Install dependencies | |
| apt-get install automake libtool | |
| # Fetch sources | |
| git clone https://github.com/sass/libsass.git | |
| git clone https://github.com/sass/sassc.git libsass/sassc | |
| # Create configure script |