Skip to content

Instantly share code, notes, and snippets.

View clivewalkden's full-sized avatar
🤓
Focusing on @golang & @kubernetes

Clive Walkden clivewalkden

🤓
Focusing on @golang & @kubernetes
View GitHub Profile
@clivewalkden
clivewalkden / centos-7-package.sh
Last active September 30, 2022 03:13 — forked from fernandoaleman/gist:5083680
How to add VirtualBox Guest Additions for vagrant into minimal install of Cent OS 7.
# Start the old vagrant
$ vagrant init centos-7
$ vagrant up
# You should see a message like:
# Installing Virtualbox Guest Additions 5.0.20 - guest version is unknown
$ vagrant ssh
vagrantup:~$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
vagrantup:~$ sudo yum -y update
@clivewalkden
clivewalkden / check-mysql.py
Created December 9, 2016 11:25 — forked from mjbommar/check-mysql.py
This simple python script checks to see if MySQL is alive based on mysqladmin output. Tested on 5.5.28-0ubuntu0.12.04.3 under ubuntu user. (c) Bommarito Consulting, LLC; http://bommaritollc.com You might want to run in cron every minute: $ EDITOR=emacs crontab -e */1 * * * * /path/to/check-mysql.py
#!/usr/bin/python
#@author Bommarito Consulting, LLC; http://bommaritollc.com
#@date 2012-12-20
import subprocess
import smtplib
from email.mime.text import MIMEText
fromAddress = '[email protected]'
adminEmail = '[email protected]'
@clivewalkden
clivewalkden / motd.sh
Created September 23, 2020 22:33 — forked from mikecentola/motd.sh
MOTD for Centos / RHEL
#!/bin/bash
# This motd.sh file is to be placed in /etc/profile.d/ to be executed upon
# successful login.
# -------------------------------------------------------------------------
# Copyright (c) 2018 Mike Centola (mikecentola.com)
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software