Skip to content

Instantly share code, notes, and snippets.

View phillijw's full-sized avatar
🐌
Reading the yellow pages

Joe Phillips phillijw

🐌
Reading the yellow pages
View GitHub Profile
@phillijw
phillijw / macvlan-physical.md
Created September 5, 2018 02:19 — forked from aaronstaves/macvlan-physical.md
Notes on making a macvlan physical network and container attached

Create a network on the host interface

Prereqs

  1. Setup the network that you'll be connecting to to only allow dhcp within a certain range
  2. Use the unreserved dhcp range for docker

Example

I'm using 192.168.1.2 - 192.168.1.199 as my DHCP range.
All my docker containers are going to be limited to the ip range of 192.168.1.224 - 192.168.1.254 (--ip-range=192.168.1.224/27)

@phillijw
phillijw / sample.py
Last active April 13, 2021 18:26 — forked from nottug/sample.py
Coinigy API v2 Signature and Request Example in Python 3
import time
import hmac
import hashlib
import requests
BASE_URL = 'https://api.coinigy.com'
ENDPOINT = '/api/v2/private/exchanges'
X_API_KEY = 'your_api_v2_key_goes_here'
SECRET = 'your_corresponding_api_v2_secret_goes_here'
METHOD = 'GET'