Skip to content

Instantly share code, notes, and snippets.

(-lxwg8exljmcqyBroke,Broke-lxwg8exljmcqy)
(-wwgi2xnlHQ.RE,HQ.RE-wwgi2xnl)
(.9w3di8zljgri25SPS.s,SPS.s.9w3di8zljgri25)
(.9w3di8zljgri25_cqqri,_cqqri.9w3di8zljgri25)
(.ac.ilstaff.technion,staff.technion.ac.il)
(.comad.azarthritis,ad.azarthritis.com)
(.comdigitalreachinc,digitalreachinc.com)
(.comfisherbartoninc,fisherbartoninc.com)
(.comorient-express,orient-express.com)
(.comvms.ad.varian,vms.ad.varian.com)
---
- name: Create security group
local_action:
module: ec2_group
name: monitoring-security-group
description: Access monitoring-security-group
region: "{{ region_string }}"
vpc_id: "{{ vpc_id }}"
rules:
#!/bin/bash
EXTIP=`wget --timeout=2 -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'`
echo "External IP is $EXTIP"
INTIP=`ifconfig |grep wlan0 -A1 | grep inet | awk -F: '{print $2}' | awk '{print $1}'`
echo "Internal IP is $INTIP"
TEXT="External IP: $EXTIP <br> Internal IP: $INTIP<br> "
echo "Sending email"
@ogreface
ogreface / fgh.sh
Created June 21, 2013 19:34
Quick and dirty helper functions for making a PR
# Enables two quick commands to make pull requests a little easier.
# This is likely to break if
# 1. You don't have an origin/your origin doesn't correspond to the right repo
# 2. You're doing anything else nonstandard.
# 3. If you're on Linux, change the open command to something more appropriate
makePR () {
echo $arg1
upstreamBranch="master"
if [ ! -z $1 ]; then
upstreamBranch=$1