Skip to content

Instantly share code, notes, and snippets.

View erikaheidi's full-sized avatar
🌟
busy creating

Erika Heidi erikaheidi

🌟
busy creating
View GitHub Profile

Keybase proof

I hereby claim:

  • I am erikaheidi on github.
  • I am erikaheidi (https://keybase.io/erikaheidi) on keybase.
  • I have a public key ASAaSBOesO9o-h1mCdUT8mjqkzxNKwG6oYJx7e3aXLWMGgo

To claim this, I am signing this object:

#!/bin/bash
#================================================================
# Let's Encrypt renewal script for Apache on CentOS
# @author Erika Heidi<erika@do.co>
# Usage: ./le-renew.sh [base-domain-name]
# More info: http://do.co/1SHe4eL
#================================================================
domain=$1
le_path='/opt/letsencrypt'
le_conf='/etc/letsencrypt'
@erikaheidi
erikaheidi / le-renew.sh
Last active February 23, 2022 02:13
Auto renewal for Let's Encrypt Apache
#!/bin/bash
#================================================================
# Let's Encrypt renewal script for Apache on Ubuntu/Debian
# @author Erika Heidi<erika@do.co>
# Usage: ./le-renew.sh [base-domain-name]
# More info: http://do.co/1mbVihI
#================================================================
domain=$1
le_path='/opt/letsencrypt'
le_conf='/etc/letsencrypt'
@erikaheidi
erikaheidi / nginx-userdata-centos.sh
Created December 3, 2015 18:03
Simple shell script to install Nginx on CentOS using DigitalOcean's metadata/userdata
#!/bin/bash
yum install epel-release -y
yum install nginx -y
export HOSTNAME=$(curl -s http://169.254.169.254/metadata/v1/hostname)
export PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address)
echo Droplet: $HOSTNAME, IP Address: $PUBLIC_IPV4 > /usr/share/nginx/html/index.html
systemctl enable nginx
systemctl start nginx
@erikaheidi
erikaheidi / mentoring.md
Last active September 16, 2015 19:13
Mentorship Resources

Keybase proof

I hereby claim:

  • I am erikaheidi on github.
  • I am erikaheidi (https://keybase.io/erikaheidi) on keybase.
  • I have a public key whose fingerprint is FA32 E8B9 E641 510B BA22 F1B3 1E72 5495 DACB 5582

To claim this, I am signing this object:

@erikaheidi
erikaheidi / pomodoro.ino
Last active August 29, 2015 14:13
Arduino Pomodoro
/*
POMODORO 0.2
by @erikaheidi
January 2015
LED STATES:
starts blue - idle. When the button is clicked, it starts a pomodoro working phase. LED will be a red "breathing" style.
After the time is done, it will change to GREEN (static) - indicating that the pomodoro was completed and now you should go to a PAUSE
When clicking the button, the PAUSE phase will start (GREEN "BREATHING"). It will turn to RED (static) when the pause is done, indicating that
a new WORKING phase should follow. When the button is clicked, starts over with the WORKING phase (RED breathing LED) :)
@erikaheidi
erikaheidi / arduino_ir.ino
Last active August 29, 2015 14:12
Arduino IRremote with generic keychan remote control
/*
* DEMO IRremote Receive using the retired generic keychan remote control form Sparkfun
* https://www.sparkfun.com/products/retired/10280
*
* IR Receiver on PIN 2
* @author Erika Heidi
*/
#include <IRremote.h>
@erikaheidi
erikaheidi / Vagrantfile
Created July 4, 2013 12:40
Vagrantfile with basic puppet provisioner
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.101"
config.vm.synced_folder "./", "/vagrant", id: "vagrant-root"
config.vm.provision :puppet do |puppet|