Skip to content

Instantly share code, notes, and snippets.

View EricMyers47's full-sized avatar

Eric Myers EricMyers47

View GitHub Profile
@EricMyers47
EricMyers47 / CisLunar.py
Created June 27, 2021 15:49
Visualization of the Cislunar Potential
# Compute and display the translunar gravitational potential
# Graphics based on the example at
# https://matplotlib.org/3.1.0/gallery/mplot3d/surface3d.html
#
# Eric Myers <EricMyers47@gmail.com> - 20 July 2019 - Version 1.0
########################################################################
import numpy as np
import math
import matplotlib.pyplot as plt
@EricMyers47
EricMyers47 / MiniFakeDNS.py
Created January 13, 2019 21:32
Simple fake DNS server which returns a single IP address for every query
#!/usr/bin/python -u
#
# MINI FAKE DNS SERVER (PYTHON RECIPE)
# by Francisco Santos (15 April 2006)
# From http://code.activestate.com/recipes/491264-mini-fake-dns-server/
# just slightly modified by Eric Myers <myers@spy-hill.net> 7 July 2018
########################################################################
# IP address to be returned in response to any query
ip='192.168.48.1'