Skip to content

Instantly share code, notes, and snippets.

View matthewflanneryaustralia's full-sized avatar

Matthew Flannery matthewflanneryaustralia

View GitHub Profile
#include <iostream>
using namespace std;
// function declaration
int max(int num1, int num2);
int main ()
{
// local variable declaration:
int a = 100;

Keybase proof

I hereby claim:

  • I am synthetec on github.
  • I am mflannery (https://keybase.io/mflannery) on keybase.
  • I have a public key ASBdrTkX4kG6h6Gzydd6pZYI4Bxh6jy0u6TZsImfSo6yGgo

To claim this, I am signing this object:

@matthewflanneryaustralia
matthewflanneryaustralia / userdata-nvm.sh
Created August 9, 2016 00:47
Install NVM via ec2 userdata
cat > /tmp/subscript.sh << EOF
# START UBUNTU USERSPACE
echo "Setting up NodeJS Environment"
curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash
echo 'export NVM_DIR="/home/ubuntu/.nvm"' >> /home/ubuntu/.bashrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> /home/ubuntu/.bashrc
# Dot source the files to ensure that variables are available within the current shell