Skip to content

Instantly share code, notes, and snippets.

View sahanasj's full-sized avatar

SahanaJSJ sahanasj

View GitHub Profile
@sahanasj
sahanasj / web-servers.md
Created May 2, 2019 09:20 — forked from bbenson29/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
@sahanasj
sahanasj / install.sh
Created May 2, 2019 09:19 — forked from bbenson29/install.sh
Install terraform and packer on Centos 7
#!/bin/bash
set -x
TERRAFORM_VERSION="0.9.11"
PACKER_VERSION="1.0.2"
# install pip
pip install -U pip && pip3 install -U pip
if [[ $? == 127 ]]; then
wget -q https://bootstrap.pypa.io/get-pip.py
@sahanasj
sahanasj / README.md
Created February 26, 2019 05:26 — forked from jpetazzo/README.md
Give network superpowers to docker

Unionize: network superpowers for your docker containers

Unionize lets you connect together docker containers in arbitrarily complex scenarios.

Note: I recommend to use https://github.com/jpetazzo/pipework instead.

  • pipework is a better name than unionize
  • it's hosted on a "real" github repo instead of a small gist :-)

Now if you want Unionize, it's still here. Just check those examples.

@sahanasj
sahanasj / README.md
Created October 5, 2018 09:56 — forked from hofmannsven/README.md
My simply Git Cheatsheet