Skip to content

Instantly share code, notes, and snippets.

rpm -ivh https://opscode-omnibus-packages.s3.amazonaws.com/el/7/x86_64/chef-12.5.1-1.el7.x86_64.rpm
yum -y install git
mkdir .chef
mkdir cookbooks
echo "cookbook_path \"`pwd`/cookbooks\"" > .chef/solo.rb
git clone https://github.com/drewlander/mailonacircle.git
mv mailonacircle cookbooks
chef-solo -c .chef/solo.rb -o recipe[mailonacircle]
cat <<EOF | tee -a /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.1 CentOS repository list
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
@drewlander
drewlander / install_mysql.sh
Created July 21, 2017 17:57
install_mysql.sh
#!/bin/bash
yum -y upgrade
cat <<EOF | sudo tee -a /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.1 CentOS repository list
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
@drewlander
drewlander / init.el
Last active February 28, 2017 18:27
; list the repositories containing them
(setq package-archives '(("elpa" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")))
; activate all the packages (in particular autoloads)
(package-initialize)
; fetch the list of packages available
@drewlander
drewlander / keybase.md
Created July 15, 2015 19:59
keybase.md

Keybase proof

I hereby claim:

  • I am drewlander on github.
  • I am drewlander (https://keybase.io/drewlander) on keybase.
  • I have a public key whose fingerprint is 1F35 19DA 60A9 493E 9543 6D9D AFBD 8CBC 2291 4194

To claim this, I am signing this object: