This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script finds AWS Security Groups with potentially unsafe rules and lists instances that use such security groups. | |
# | |
# Unsafe security group rules are: | |
# 1. open to the world (0.0.0.0/0), | |
# 2. not restricted to another security group, | |
# 3. not use safe ports (22,80,443; you can set SAFE_PORTS environment variable to override). | |
# | |
# To run this script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Participant = function(id, name, avatar) { | |
this.getId = function() { | |
return id; | |
}; | |
this.getDisplayName = function() { | |
return name; | |
}; | |
this.getThumbnailUrl = function() { | |
return avatar; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Place this file under /usr/local/bin/vgaswitch | |
# load module (without this module "vgaswitcheroo" isn't available on my system) | |
modprobe radeon | |
# switch | |
SWITCH=/sys/kernel/debug/vgaswitcheroo/switch | |
if [ $# -eq 1 ]; then | |
if [ "$1" == "low" ]; then |