Skip to content

Instantly share code, notes, and snippets.

Brandon Simpson brandonsimpson

View GitHub Profile
@brandonsimpson
brandonsimpson / jira_cacert.md
Created Jun 8, 2014
Add ssl cacert for a secure mail server to Jira
View jira_cacert.md

Add ssl cacert for a secure mail server to Jira

  1. Login as root and create directory for mail server files to be created. Rename "mail.mailserver.com" for your mail server you're trying to connect to.

    mkdir ~/mail.mailserver.com
    cd ~/mail.mailserver.com
    
  2. Get certificate file contents from mail server on port 995:

@brandonsimpson
brandonsimpson / vmware_tools_centos.md
Last active Aug 29, 2015
Install / Update VMware Tools on CentOS
View vmware_tools_centos.md

Install / Update VMware Tools on CentOS

  1. Create yum repo config file

    sudo vi /etc/yum.repos.d/vmware-tools.repo
    

    Add these config settings, and save file.

@brandonsimpson
brandonsimpson / rsync_server_backup.sh
Last active Apr 24, 2018
Backup linux server via rsync to remote backup NAS drive
View rsync_server_backup.sh
#!/bin/sh
# Backup linux server via rsync to remote backup NAS drive
#
# Run this from a root cronjob at whatever intervals you need
#
# example:
# # backup server at 4am
# 0 4 * * * sh /root/rsync_server_backup.sh > /dev/null;
#
@brandonsimpson
brandonsimpson / ssh_login_private_keys.md
Last active Aug 29, 2015
Passwordless SSH logins with private key authentication
View ssh_login_private_keys.md

###Passwordless SSH logins with private key authentication

  1. On local machine, create your ssh key files

    Run ssh-keygen -t rsa as your local user, and allow all defaults and no password. This will create your private key associated with your computer and a public key (~/.ssh/id_rsa.pub) file to be shared later.

  2. Login to remote server and make sure RSA Authentication and Public Key Authentication is on

$ ssh user@remotehost

You can’t perform that action at this time.