I hereby claim:
- I am srkiNZ84 on github.
- I am srdandukic (https://keybase.io/srdandukic) on keybase.
- I have a public key whose fingerprint is 6F8B 56EE 24F4 D493 08C7 8373 EFF4 107E 29A3 A3C7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
function sigusr1 { | |
echo "Received SIGUSR1." | |
STOP_EXECUTION=1 | |
echo "Stopping execution after current item" | |
} | |
trap 'sigusr1' USR1 |
#!/bin/bash | |
DBUSER=[db user here] | |
DBPW=[db pass here] | |
DBNAME=[db name here] | |
GPGID=[gpg email here] | |
GLACIER_VAULT=[aws glacier vault here] | |
WORKDIR=/tmp | |
DATETIME=`date +%F-%H%M%S-%z` |
import time | |
import socket | |
from checks import AgentCheck | |
from hashlib import md5 | |
class DNSCheck(AgentCheck): | |
def check(self, instance): | |
if 'hostname' not in instance: | |
self.log.info("Skipping instance, no hostname found.") |
init_config: | |
default_timeout: 5 | |
instances: | |
- hostname: www.google.com | |
- hostname: www.yahoo.com | |
timeout: 8 | |
- hostname: www.ubuntu.com |
SSHAGENT=/usr/bin/ssh-agent | |
SSHAGENTARGS="-s" | |
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then | |
eval `$SSHAGENT $SSHAGENTARGS` | |
trap "kill $SSH_AGENT_PID" 0 | |
fi | |
/usr/bin/ssh-add ~/some_private_key.pem |
from __future__ import print_function | |
import json | |
print('Loading login function') | |
def lambda_handler(event, context): | |
print('username gotten: ' + event['username']) | |
print('password gotten: ' + event['password']) | |
if(event['username'] == 'foo' and event['password'] == 'barbaz'): |
- hosts: all | |
tasks: | |
- name: Put New version of credentials into DynamoDB | |
connection: local | |
command: credstash -p srdan put -a foopass blahblahblah | |
- name: Get credentials from DynamoDB | |
connection: local | |
debug: msg="Credstash lookup {{ lookup('credstash', 'foopass', profile_name='srdan') }}" | |
ignore_errors: true |
from __future__ import print_function | |
import json | |
print('Loading login function') | |
def lambda_handler(event, context): | |
# TODO implement | |
#return 'Hello from Lambda' | |
if [[ -z $FOO || -z $BAR ]] | |
then | |
echo "Either FOO, BAR (or both) not set" | |
exit 1 | |
fi | |
echo "FOO and BAR must be set" |