THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
source "https://rubygems.org" | |
gem 'gitlab' | |
gem 'pry' | |
gem 'awesome_print' | |
gem 'colorize' |
require 'facter' | |
# Function to figure out old school to new school mappings | |
# Uses the biosdevname info to generate a mapping | |
module Puppet::Parser::Functions | |
newfunction(:c7_int_name, :type => :rvalue) do |args| | |
if args.length != 1 | |
raise(Puppet::ParseError, "No interface name passed to convert") | |
end | |
int_name = args[0] |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
#!/usr/bin/env ruby | |
# An example cross-platform (Linux, Windows, Mac, etc.) | |
# pre-commit hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# To enable this hook: | |
# - save this file as <path-to-git-clone>/.git/hooks/pre-commit |
#!/usr/bin/env python -tt | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, unicode_literals | |
import os, os.path | |
import sys | |
import re | |
import time | |
from pprint import pprint |