Skip to content

Instantly share code, notes, and snippets.

View jeremypruitt's full-sized avatar
:octocat:
@ Waabi.ai

Jeremy Pruitt jeremypruitt

:octocat:
@ Waabi.ai
View GitHub Profile
pid: 1325 exe: /usr/libexec/mysqld cmdline: /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock: /usr/lib64/libssl.so.1.0.1e
pid: 1356 exe: /usr/sbin/exim cmdline: /usr/sbin/exim -bd -q1h: /usr/lib64/libssl.so.1.0.1e
pid: 1367 exe: /usr/sbin/httpd cmdline: /usr/sbin/httpd: /usr/lib64/libssl.so.1.0.1e
pid: 1456 exe: /usr/sbin/bacula-fd cmdline: /usr/sbin/bacula-fd -u root -g bacula -c /etc/bacula/bacula-fd.conf: /usr/lib64/libssl.so.1.0.1e
pid: 20203 exe: /usr/sbin/httpd cmdline: /usr/sbin/httpd: /usr/lib64/libssl.so.1.0.1e
pid: 20204 exe: /usr/sbin/httpd cmdline: /usr/sbin/httpd: /usr/lib64/libssl.so.1.0.1e
pid: 20205 exe: /usr/sbin/httpd cmdline: /usr/sbin/httpd: /usr/lib64/libssl.so.1.0.1e
pid: 20206 exe: /usr/sbin/httpd cmdline: /usr/sbin/httpd: /usr/lib64/libssl.so.1.0.1e
pid: 20207 exe: /usr/sbin/httpd cmdline: /usr/sbin/httpd: /usr/lib64/libssl.so.1.0.1e
pid: 20208 exe: /usr/sbin
@jpmens
jpmens / dig.py
Last active November 17, 2023 21:05
dig: a DNS lookup-plugin for Ansible
# (c) 2015, Jan-Piet Mens <jpmens(at)gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
@schwartzmx
schwartzmx / windows_ec2_provision.yml
Last active February 10, 2023 00:51
Ansible Windows EC2 Provisioning Playbook
- name: Launch {{env}}-{{service}} Instance(s)
hosts: localhost
gather_facts: false
connection: local
vars_files:
- group_vars/env/{{ environment }}.yml
- group_vars/service/{{ service }}.yml
- group_vars/admin.yml
# Launch instances with the following parameters. Register the output.
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@Stono
Stono / create-docker-tls.sh
Last active September 19, 2024 08:16
Creating and setting up Docker for TLS
#!/bin/bash
# This script will help you setup Docker for TLS authentication.
# Run it passing in the arguement for the FQDN of your docker server
#
# For example:
# ./create-docker-tls.sh myhost.docker.com
#
# The script will also create a profile.d (if it exists) entry
# which configures your docker client to use TLS
#
@s0enke
s0enke / elasticache_replication_group.py
Created December 21, 2014 14:30
Skeleton of an Ansible module for ElastiCache replication groups
#!/usr/bin/python
import sys
import os
import time
try:
import boto
from boto.elasticache.layer1 import ElastiCacheConnection
from boto.regioninfo import RegionInfo
console.log("start BiriBiriWorkerBox");
// ==== config
var accountId = "123456789012";
var cognitoRoleArn = "arn:aws:iam::123456789012:role/Cognito_WorkerBoxUnauth_DefaultRole";
var cognitoIdentityPoolId = "us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
var queueUrl = "https://sqs.ap-northeast-1.amazonaws.com/123456789012/workerbox";
// ==== mraa
var mraa = require('mraa');
@ijin
ijin / myFunction.js
Last active June 21, 2017 04:06
AWS Lambda function to set an Auto Scaling instance to be Unhealthy in response to a SNS message
console.log('Loading event');
var aws = require('aws-sdk');
var s3 = new aws.S3({apiVersion: '2006-03-01'});
var autoscaling = new aws.AutoScaling({apiVersion: '2011-01-01'});
exports.handler = function(event, context) {
console.log('Received event:');
console.log(event);
//console.log(typeof event.Subject);
if (event.hasOwnProperty('Message')) {
@tmarshall
tmarshall / aws-sns-example.js
Last active October 30, 2022 06:12
aws-sdk sns example, in Node.js
var AWS = require('aws-sdk');
AWS.config.update({
accessKeyId: '{AWS_KEY}',
secretAccessKey: '{AWS_SECRET}',
region: '{SNS_REGION}'
});
var sns = new AWS.SNS();
@karthilxg
karthilxg / Gruntfile.js
Created October 28, 2014 00:07
Gruntfile.js
module.exports = function ( grunt ) {
/**
* Load required Grunt tasks. These are installed based on the versions listed
* in `package.json` when you do `npm install` in this directory.
*/
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');