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.
$ python -m SimpleHTTPServer 8000
import os, sys, re | |
import requests | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) | |
def _log(szString): | |
print(szString) | |
def main(PostalCode): | |
''' |
def autoscale(ax=None, axis='y', margin=0.1): | |
'''Autoscales the x or y axis of a given matplotlib ax object | |
to fit the margins set by manually limits of the other axis, | |
with margins in fraction of the width of the plot | |
Defaults to current axes object if not specified. | |
''' | |
import matplotlib.pyplot as plt | |
import numpy as np | |
if ax is None: |
#!/bin/bash | |
if [ $# -ne 2 ]; then | |
echo "Format: set_clocks.sh <core_clock (kHz)> <mem_clock (kHz)>" | |
exit -1 | |
fi | |
echo "Supported core clocks:" | |
cat /sys/kernel/debug/clock/gbus/possible_rates |
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.
$ python -m SimpleHTTPServer 8000
<?xml version="1.0" encoding="utf-8"?> | |
<OVERDRIVE_PROFILE> | |
<PERFORMANCE_LEVEL level="2" gpu="82000" mem="125000" voltage="1100"/> | |
<PERFORMANCE_LEVEL level="1" gpu="50000" mem="125000" voltage="1000"/> | |
<PERFORMANCE_LEVEL level="0" gpu="25000" mem="15000" voltage="900"/> | |
<FAN_SETTING percentage="AUTO"/> | |
<FAN_CTRL enabled="yes"/> | |
<FAN_CTRL_CURVE type="2"/> | |
<FAN_CTRL_POINT nr="0" temperature="2000" percentage="0"/> | |
<FAN_CTRL_POINT nr="1" temperature="7500" percentage="500"/> |