Skip to content

Instantly share code, notes, and snippets.

Grig Gheorghiu griggheo

Block or report user

Report or block griggheo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View update_tagged_security_groups.py
import boto3
import hashlib
import json
import urllib2
# Ports your application uses that need inbound permissions from the service for
INGRESS_PORTS = {
'web' : [80, 443],
'ssh': [22,]
View update_security_group.py
import boto3
import hashlib
import json
import copy
import urllib2
# ID of the security group we want to update
SECURITY_GROUP_ID = "sg-XXXX"
# Description of the security rule we want to replace
View xvfb.init
#!/bin/bash
#
# /etc/rc.d/init.d/xvfbd
#
# chkconfig: 345 95 28
# description: Starts/Stops X Virtual Framebuffer server
# processname: Xvfb
#
View keybase.md

Keybase proof

I hereby claim:

  • I am griggheo on github.
  • I am griggheo (https://keybase.io/griggheo) on keybase.
  • I have a public key whose fingerprint is 0BDA 74F2 92A1 4044 0D22 974C 03A6 7437 7506 1608

To claim this, I am signing this object:

@griggheo
griggheo / check_pingdom_and_post_cachet_status.go
Created Oct 13, 2015
Golang program which integrates Pingdom checks into a Cachet status page
View check_pingdom_and_post_cachet_status.go
package main
import (
"github.com/russellcardullo/go-pingdom/pingdom"
"fmt"
"time"
)
const PINGDOM_USERNAME="xxxx"
View 20-app.conf
filter {
grok {
add_tag => [ "valid" ]
match => { "message" => "%{APPLOGLINE}" }
}
json {
source => "payload"
}
if "valid" not in [tags] {
drop { }
View 01-lumberjack-input.conf
input {
lumberjack {
port => 5000
type => "logs"
ssl_certificate => "/etc/pki/logstash/my_wildcard.crt"
ssl_key => "/etc/pki/logstash/my_wildcard.key"
}
}
filter {
if ([message] =~ /ping/) {
View logstash-forwarder.conf
{
"network": {
"servers": [ "{{logstash_elasticsearch_host }}:{{ logstash_listen_port_tcp }}" ],
"ssl ca": "{{ logstash_forwarder_etc_dir }}/{{ ssl_cert }}", "timeout": 15
},
"files": [
{
"paths": [
"/var/log/syslog",
"/var/log/*.log"
@griggheo
griggheo / compare_env_v2.go
Created Aug 29, 2014
Version 2 of compare_env.go
View compare_env_v2.go
package main
import (
"fmt"
"log"
"bytes"
"strings"
"flag"
"sort"
"os/exec"
@griggheo
griggheo / compare_env.go
Created Aug 28, 2014
Inspect differences between Chef environments on Chef server vs local filesystem
View compare_env.go
package main
import (
"fmt"
"log"
"bytes"
"strings"
"flag"
"sort"
"os/exec"
You can’t perform that action at this time.