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" | |
"log" | |
"os/exec" | |
"bufio" | |
"strings" | |
"net/http" | |
"time" |
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" | |
"log" | |
"os/exec" | |
"bufio" | |
"strings" | |
"strconv" |
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
#include <stdio.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/time.h> | |
#include <net/bpf.h> | |
#include <net/if.h> | |
#include <sys/ioctl.h> | |
#include <sys/socket.h> |
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
#include <stdio.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/time.h> | |
#include <net/bpf.h> | |
#include <net/if.h> | |
#include <sys/ioctl.h> | |
#include <sys/socket.h> |
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
#!/usr/bin/perl -w | |
# Author: Mark Foster | |
# (c) 2009 Credentia http://www.credentia.cc/ | |
# $Id: check_zone.pl 104 2009-04-13 10:04:51Z mdf $ | |
# Based on zonechk.pl, this script is a nagios plugin | |
# | |
# BUGS | |
# Not known | |
# | |
# TO DO |
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
/* quick and dirty code to play around pushing | |
* aws metrics to cloudwatch | |
*/ | |
package main | |
import ( | |
"bufio" | |
"time" | |
"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
/* compile: | |
* gcc -fpic -pie -nostdlib sockpay.c -o sockpay | |
* use with https://github.com/BobBurns/hijack-process | |
* create a listener with nc -l -p 4444 | |
*/ | |
long _write(long fd, char *buf, unsigned long len) | |
{ | |
long ret; |
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" | |
"time" | |
) | |
func print_hello(str string) { | |
fmt.Println("hello", str) | |
} |
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
#!/usr/bin/php | |
<?php | |
# php script to get aws cloudwatch data and format output | |
# for nagios check | |
# can be expanded to get Metrics from all AWS namespaces | |
# requires aws cli configured and aws sdk for php | |
# http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html |
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
#!/usr/bin/php | |
<?php | |
# see https://gist.github.com/BobBurns/bc16d6e45fc01e61138f026c18187b00 | |
# for a more efficient script using the aws php sdk | |
# wrapper script that can be used for nagios checks with aws ec2 instance | |
# | |
# Must have Instance Id $dim_value |
NewerOlder