-
Open a command prompt or terminal.
-
Run this command:
keytool -genkey -keyalg RSA -alias tomcat -keystore selfsigned.jks \ -validity -keysize 2048
Where <days> indicate the number of days for which the certificate will be valid.
def hideAllViewerQtInfosWidgets(): | |
try: | |
import PySide.QtGui as QtGui | |
parentApp = QtGui.QApplication.allWidgets() | |
parentName = "Viewer" | |
name = "/" | |
parentViewer = None | |
for parent in parentApp: |
Open a command prompt or terminal.
Run this command:
keytool -genkey -keyalg RSA -alias tomcat -keystore selfsigned.jks \ -validity -keysize 2048
Where <days> indicate the number of days for which the certificate will be valid.
#!/usr/bin/env python | |
""" | |
simple example script for running and testing notebooks. | |
Usage: `ipnbdoctest.py foo.ipynb [bar.ipynb [...]]` | |
Each cell is submitted to the kernel, and the outputs are compared with those stored in the notebook. | |
""" | |
# License: Public Domain, but credit is nice (Min RK). |
# Load Json into a Python object | |
import urllib2 | |
import json | |
req = urllib2.Request("http://localhost:81/sensors/temperature.json") | |
opener = urllib2.build_opener() | |
f = opener.open(req) | |
json = json.loads(f.read()) | |
print json | |
print json['unit'] |
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New new -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
import re | |
import terminatorlib.plugin as plugin | |
import subprocess | |
# Every plugin you want Terminator to load *must* be listed in 'AVAILABLE' | |
AVAILABLE = ['FileURLHandler'] | |
class FileURLHandler(plugin.URLHandler): | |
capabilities = ['url_handler'] | |
handler_name = 'file_path' |
"""Inspired by https://github.com/timbowman/blackbody | |
..this creates a Nuke ColorLookup node, which maps from Kelvin to xyY values, | |
using code from https://github.com/dbr/colourstuff | |
""" | |
def cie1931_standard_observer_rawdata(two_degree = False, ten_degree = False): | |
"""Returns dictionary with three keys: x, y and z. Each key contains | |
a dictionary mapping wavelength to value | |
Created using the from_txt_to_python function |
"""Exports a Nuke ColorLookup node as a 1D CSP | |
The "master" curve becomes the prelut curve, and the red/green/blue curves | |
are the R/G/B curves | |
All curves are linearly sampled between 0 and 1 | |
""" | |
import nuke |
''' | |
Created on Feb 8, 2013 | |
@author: matthieuc | |
@contact: [email protected] | |
''' | |
import PySide.QtGui as QtGui | |
def setNukeZeroMarginsWidget(widget_object): |