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
// thanks to https://github.com/rhartkopf/check_ec2_events/blob/master/check_ec2_events.go | |
// This program will query Amazon API | |
// and show scedulled events for EC2 instances | |
// When you have a slack, you would like to see messages in the room: | |
// 0 6 * * * root /usr/local/bin/instances_event | /usr/local/bin/slacktee.sh --title "upcoming instances events" > /dev/null | |
package main | |
import ( | |
"fmt" |
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
package main | |
import ( | |
"fmt" | |
) | |
func makeFunction(name string) func() { | |
return func() { | |
fmt.Printf("Hello %s", name) | |
} |
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
location / { | |
content_by_lua 'os.execute("/var/www/cgi-bin/script.sh")'; | |
} |
NewerOlder