Because AWS Lambda runs in a Amazon Linux environment, to run external modules you must
sudo yum update -y| comm -23 <(aws ec2 describe-security-groups --query 'SecurityGroups[*].GroupId' --output text | tr '\t' '\n'| sort) \ | |
| <(aws ec2 describe-instances --query 'Reservations[*].Instances[*].SecurityGroups[*].GroupId' --output text | tr '\t' '\n' | sort | uniq) \ | |
| | tee -a unused-security-groups-in-ec2.txt | |
| for x in `cat unused-security-groups-in-ec2.txt`; do echo 'deleting sg: $x' ; aws ec2 delete-security-group --group-id $x; done |
| #!/bin/sh | |
| # Set the macOS installer path as a variable | |
| MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")" | |
| MOUNT_POINT="$MACOS_INSTALLER/Contents/SharedSupport" | |
| echo "macOS installer is \"$MACOS_INSTALLER\"" | |
| # Set the target disk as a variable | |
| TARGET=$(diskutil info "$(bless --info --getBoot)" | awk -F':' '/Volume Name/ { print $2 }' | sed -e 's/^[[:space:]]*//') | |
| echo "Target disk is \"$TARGET\"" |
| // | |
| // Article.swift | |
| // Veille | |
| // | |
| // Created by Anthony Da Cruz on 26/01/2018. | |
| // Copyright © 2018 Anthony Da Cruz. All rights reserved. | |
| // | |
| import Foundation | |
| import CoreData |
| // | |
| // StandardGuitarViewController.swift | |
| // Universal_Tuner | |
| // | |
| // Created by Denis França Candido on 01/04/17. | |
| // Copyright © 2017 Denis França Candido. All rights reserved. | |
| // | |
| import Foundation | |
| import UIKit |
| class Test { | |
| static function main() { | |
| js.Browser.window.onclick = function() { | |
| var input = js.Browser.document.createElement("input"); | |
| input.style.visibility = "hidden"; //comment this to test | |
| input.setAttribute("type", "file"); | |
| input.id = "browse"; | |
| input.onclick = function(e) { | |
| e.cancelBubble = true; | |
| e.stopPropagation(); |
| // | |
| // LiveFrameCaptureViewController.swift | |
| // SCNKit2Video | |
| // | |
| // Created by Lacy Rhoades on 11/29/16 | |
| // Revised 7/19/17 | |
| // Copyright © 2017 Lacy Rhoades. All rights reserved. | |
| // | |
| import Foundation |
Clickable link Drag and Drop zoomable D3.js tree example based on https://gist.github.com/robschmuecker/7880033 for question here: http://stackoverflow.com/questions/24100458/d3-js-drag-and-drop-zoomable-tree-help-in-collapsing-nodes-connected-by-a-certai
For any help/queries, http://www.robschmuecker.com @robschmuecker or robert.schmuecker at gmail dot com
| $data = getData(); | |
| $step = 100 / count($data); | |
| $percent = 0; | |
| echo 'Doing stuff with data: '; //padding at the end for the number | |
| foreach($data as $row) | |
| { | |
| // do stuff |