Skip to content

Instantly share code, notes, and snippets.

View c0psrul3's full-sized avatar

Mike c0psrul3

View GitHub Profile
@c0psrul3
c0psrul3 / ansible_lambda.py
Created August 22, 2017 13:37 — forked from jacoelho/ansible_lambda.py
ansible lambda
#!/usr/bin/python
import ansible.inventory
import ansible.playbook
import ansible.runner
from ansible import utils
from ansible import callbacks
def run_playbook(**kwargs):
@c0psrul3
c0psrul3 / get-latest-tag-on-git.sh
Created April 24, 2019 11:15 — forked from rponte/get-latest-tag-on-git.sh
Getting latest tag on git repository
# 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
@c0psrul3
c0psrul3 / all_public_repos_to_internal.rake
Last active July 6, 2020 22:07 — forked from ptierno/all_to_private.rake
Gitlab rake task to set all project's visibility level to private (0)
#
# File: all_public_repos_to_internal.rake
# Author: https://gist.github.com/c0psrul3
# Original Author: https://gist.github.com/ptierno
# Original Gist: https://gist.github.com/ptierno/ef57a83afac4442e2a13
#
#
# Gitlab stuff
# ------------