Skip to content

Instantly share code, notes, and snippets.

Jérôme Foray Meroje

Block or report user

Report or block Meroje

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
@Meroje
Meroje / getec2lifecycle.sh
Last active May 21, 2019 — forked from urjitbhatia/getec2lifecycle.sh
Check if an ec2 instance is spot or normal lifecycle
View getec2lifecycle.sh
#!/usr/bin/env bash
aws ec2 describe-spot-instance-requests \
--filters Name=instance-id,Values="$(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id)" \
--region "$(wget -q -O - http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r '.region')" | \
jq -r '.SpotInstanceRequests | if length > 0 then "spot" else "normal" end'
View bootstrap_homeshick.sh
#!/bin/bash -ex
# Paste this into ssh
# curl -sL https://gist.github.com/andsens/2913223/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex
# When forking, you can get the URL from the raw (<>) button.
### Set some command variables depending on whether we are root or not ###
# This assumes you use a debian derivate, replace with yum, pacman etc.
aptget='sudo apt-get'
chsh='sudo chsh'
@Meroje
Meroje / dabblet.html
Created May 9, 2012 — forked from anonymous/dabblet.html
HTML9 Responsive Boilerstrap JS
View dabblet.html
<script src="//raw.github.com/impressivewebs/HTML9-Responsive-Boilerstrap-js/master/js/html9responsiveboilerstrap.js"></script>
View dabblet.css
html {
margin: 0;
padding: 0;
border: 0;
}
body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,dialog,figure,footer,header,hgroup,nav,section {
margin: 0;
padding: 0;
You can’t perform that action at this time.