Skip to content

Instantly share code, notes, and snippets.

Erika Heidi erikaheidi

Block or report user

Report or block erikaheidi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@erikaheidi
erikaheidi / doin.php
Created May 15, 2019
Dynamically generates an Ansible inventory based on your DigitalOcean droplets
View doin.php
<?php
####################################
# Dynamic Inventory Build Script
# usage: php doin.php > inventory
####################################
$DO_API_TOKEN = 'YOUR_DIGITALOCEAN_API_TOKEN';
$GROUP_NAME = 'servers';
$endpoint = "https://api.digitalocean.com/v2/droplets";
View Laracon_talk.md
View nametag.scad
font = "Ubuntu Mono";
letter_size = 60;
padding = 20;
string = "@erikaheidi";
textlen = len(string);
box_width = letter_size*textlen*0.8;
box_height = letter_size + (2*padding);
box_thickness = 20;
View blink.php
View phpserial.php
<?php
require __DIR__ . '/vendor/autoload.php';
$serial = new PhpSerial();
$serial->deviceSet("/dev/ttyUSB0");
$serial->confBaudRate(19200);
$serial->confParity("none");
$serial->confCharacterLength(8);
View blink.ino
View keybase.md

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:

View le-renew-centos.sh
#!/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 Sep 21, 2018
Auto renewal for Let's Encrypt Apache
View le-renew.sh
#!/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 Dec 3, 2015
Simple shell script to install Nginx on CentOS using DigitalOcean's metadata/userdata
View nginx-userdata-centos.sh
#!/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
You can’t perform that action at this time.