Skip to content

Instantly share code, notes, and snippets.

View atosatto's full-sized avatar
🚴

Andrea Tosatto atosatto

🚴
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Use CentOS 7 as base image
config.vm.box = "centos/7"
# Disable automatic box update checking.
# Check with `vagrant box outdated` whether the currently
@atosatto
atosatto / yum_madison
Created September 9, 2016 10:44
An Ansible module miming the `apt-cache madison` command with YUM
#!/usr/bin/python
# -*- coding: utf-8 -*-
DOCUMENTATION = """
---
module: yum_madison
short_description: Extract the available versions of a package from YUM.
description:
- This module extracts the available versions of a package from YUM.
options:

Keybase proof

I hereby claim:

  • I am atosatto on github.
  • I am atosatto (https://keybase.io/atosatto) on keybase.
  • I have a public key ASD9amtXedgLdj9tmeLSgqh8tLwh69epKSVvNTF8ebbPQAo

To claim this, I am signing this object:

@atosatto
atosatto / git-timemachine.sh
Created July 4, 2016 17:07
Change the timestamp of previous Git commits
# Git has two different types of timestamp associated with a commit.
# Although both may typically hold the same value they are used in subtly different ways.
# The author (GIT_AUTHOR_DATE) is the user who originally created the work (i.e. a patch),
# where as the committer (GIT_COMMITTER_DATE) is the user who last applied the
# work (i.e. applied patch or rebase).
git filter-branch --env-filter \
"if test \$GIT_COMMIT = 'e6dbcffca68e4b51887ef660e2389052193ba4f4'
then
export GIT_AUTHOR_DATE='Sat, 14 Dec 2013 12:40:00 +0000'
@atosatto
atosatto / build-kubernetes-from-source.md
Last active March 22, 2023 06:39
Step-by-step instructions on how to build Kubernetes from source

Build Kubernetes from Source

Requirements

# On Mac OS X
brew install go gnu-tar

Step-by-Step Instructions