Skip to content

Instantly share code, notes, and snippets.

container = VPlotContainer()
priceData = ArrayPlotData(...)
pricePlot = Plot(priceData)
pricePlot.plot(("seq", "sma"), type = "line", color = "black")
pricePlot.tools.append(PanTool(pricePlot))
container.add(pricePlot)
rsiPlot = Plot(priceData)
rsiPlot.plot(("seq", "rsi"), type="line", color="green")
rsiPlot.tools.append(PanTool(rsiPlot))
@bigtonylewis
bigtonylewis / config.md
Created January 8, 2019 13:31 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@bigtonylewis
bigtonylewis / obfuscate-iproute.py
Created January 26, 2020 09:12
Obfuscate the output of `ip route` when reporting bugs
import re
import random
# let's say your iproute contains this as the output of `ip route`
iproute = '''
default dev ppp0 scope link
10.167.0.1 via 10.167.0.168 dev tun-alpha
10.167.0.168 dev tun-alpha proto kernel scope link src 10.167.0.237
10.100.159.0/24 dev wg-theta proto kernel scope link src 10.100.159.179
10.193.230.0/24 via 10.100.159.1 dev wg-theta
def test_pystore(n, nrows=1000, ncols=5):
pystore.set_path('./test_pystore')
store = pystore.store('teststore')
c = store.collection('testcollection')
# clean out any past test data
[c.delete_item(item) for item in c.list_items()]
c.list_items()