Skip to content

Instantly share code, notes, and snippets.

View allamand's full-sized avatar

Sébastien Allamand allamand

View GitHub Profile
@allamand
allamand / one-time-ec2-ssh-connect.sh
Created September 18, 2020 07:15 — forked from pahud/one-time-ec2-ssh-connect.sh
One Time EC2 SSH public key connect
#!/bin/bash
#https://gist.github.com/allamand/bbe3d237ea465ada68bfe3166aec7dd7
TMPKEY="my-ssh-tmp-key-${RANDOM}"
EC2USER='ec2-user'
generate_ssh_key_pair(){
ssh-keygen -t rsa -f ~/.ssh/${TMPKEY} -N "" && \
chmod 600 ~/.ssh/${TMPKEY}.pub
}
@allamand
allamand / gist:ed515b14185d266a0d07e140e6e9690e
Created July 9, 2019 12:36 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@allamand
allamand / README.md
Created March 31, 2017 12:36 — forked from bvis/README.md
Docker Env Vars expanded with secrets content

Variables by Secrets

Sample script that allows you to define as environment variables the name of the docker secret that contains the secret value. It will be in charge of analyze all the environment variables searching for the placeholder to substitute the variable value by the secret.

Usage

You can define the next environment variables:

@allamand
allamand / pedantically_commented_playbook.yml
Created October 20, 2016 15:38 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@allamand
allamand / web-servers.md
Created September 22, 2016 07:32 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000