Skip to content

Instantly share code, notes, and snippets.

View djoffrey's full-sized avatar

Joffrey djoffrey

View GitHub Profile
@djoffrey
djoffrey / ubuntu-install-gcc-6
Created July 18, 2019 15:36 — forked from zuyu/ubuntu-install-gcc-6
Install gcc 6 on Ubuntu
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update && \
sudo apt-get install gcc-6 g++-6 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
gcc -v
@djoffrey
djoffrey / index.html
Created July 26, 2018 09:14
Interactive White Paper
<nav>
<ul class="list-unstyled main-menu">
<li><img src="https://s122939.gridserver.com/clients/concept/insights/images/cj-logo.png" class="img-responsive" /></li>
<li>
<hr style="width:50%; border-width:5px; margin-left:0" />
</li>
<!--Include your navigation here-->
<li class="text-right">
<!--<a href="#" id="nav-close">X</a>--></li>
#!/usr/bin/env python
import boto.vpc
import time
REGION_NAME = 'us-west-2'
AMI_ID = 'ami-8e27adbe' # Amazon Linux AMI
conn = boto.vpc.connect_to_region(REGION_NAME)
# Create a VPC