- Copy the file
ssm-connect
to a folder in your path - Run
ssm-connect setup
, it will create a new SSH key-pair and configure SSH config - Use it like
ssh user@i-1234567890
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
import json | |
import inquirer | |
import boto3 | |
import os | |
import sys | |
import subprocess | |
def select_account(): |
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
exports.handler = (event, context, callback) => { | |
'use strict'; | |
const request = event.Records[0].cf.request; | |
const userAgent = request.headers['user-agent'][0].value; | |
let prerender = 0; | |
// user agent is known social bot | |
if (userAgent.match(/baiduspider|twitterbot|facebookexternalhit|googlebot|bingbot|yandex|rogerbot|linkedinbot|embedly|quora link preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator/i)) { | |
prerender = 1; | |
} |
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
#!/bin/bash | |
# USERDATA | |
# $CLOUDCONDUCTOR_URL=host:port | |
# $TEMPLATE_NAME=name of the template to use | |
yum -y update | |
# EPEL repo | |
rpm -ivh http://ftp.tu-chemnitz.de/pub/linux/fedora-epel/6/i386/epel-release-6-8.noarch.rpm |
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
#!/bin/bash | |
# USERDATA | |
# $BUCKET=s3 bucket | |
yum -y update | |
# EPEL repo | |
rpm -ivh http://ftp.tu-chemnitz.de/pub/linux/fedora-epel/6/i386/epel-release-6-8.noarch.rpm | |
yum -y clean all |
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
#!/bin/sh | |
# | |
# stunnel Start/Stop the stunnel daemons | |
# | |
# description: stunnel is a script that runs stunnel daemons | |
# version 1.00 | |
# | |
# chkconfig: 345 40 60 | |
# | |
# processname: stunnel |