Skip to content

Instantly share code, notes, and snippets.

View phimic's full-sized avatar

Philipp Michels phimic

View GitHub Profile
@jbarber
jbarber / add_esx_users.ps1
Created November 25, 2010 11:30
Add new local user to all the ESX servers managed by a vSphere vCenter
$vsphere = "my-vc"
$new_user = "newbie"
$new_user_passwd = "new_sekret"
$new_user_grp = "root"
$root_user = "root"
$root_passwd = "really_sekret"
# Get all of the ESX servers (connect using Windows credentials)
connect-viserver -server $vsphere
@kimus
kimus / ufw.md
Created March 2, 2014 22:46
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@skarllot
skarllot / mysql-check.sh
Last active February 22, 2018 20:56
Bash script to check MySQL database for errors (tables check)
#!/bin/bash
#
# #automysqlcheck.sh
#
# This is a small bash script that checks all mysql databases for errors
# and mails a log file to a specified email address. All variables are
# hardcoded for ease of use with cron. Any databases you wish not to check
# should be added to the DBEXCLUDE list, with a space in between each name.
#
# original version by [email protected], UVic Fine Arts 2004
@shichao-an
shichao-an / build_mysql.sh
Last active January 22, 2023 16:05
Build and install MySQL 5.1 from source on Ubuntu 14.04
#!/bin/bash
# Run as root
set -e
apt-get update
apt-get install -y build-essential
apt-get install -y libncurses5-dev
useradd mysql
@gonter
gonter / README.textile
Last active April 26, 2021 13:52
TSM (Tivoli Storage Manager) on Ubuntu 16.04
@justinhartman
justinhartman / 01_nginx-reload-post-hook.sh
Last active August 13, 2024 15:29
Let's Encrypt Certbot post hook command for Nginx which checks the updated configuration files and reloads the server if everything validates.
#!/usr/bin/env bash
#
# Certbot Nginx Reload
#
# Let's Encrypt Certbot post hook command for Nginx which checks the updated
# configuration files and reloads the server if everything validates.
#
# Author : Justin Hartman <[email protected]>
# Version : 1.0.1
# License : MIT <https://opensource.org/licenses/MIT>