$ pylint *.py
$ flake8 *.py
- generate upload files from
view.py
import { cx, css } from 'emotion'; | |
const button = { | |
background: black, | |
color: white, | |
'& + &': { | |
marginLeft: '8px', | |
} | |
}; | |
const buttonPrimary = { | |
background: red, |
diff -r -u a/src/python-bindings/classad_python_user.cpp b/src/python-bindings/classad_python_user.cpp | |
--- a/src/python-bindings/classad_python_user.cpp | |
+++ b/src/python-bindings/classad_python_user.cpp | |
@@ -48,7 +48,7 @@ | |
{ | |
if (!Py_IsInitialized()) | |
{ | |
- char pname[] = "htcondor"; | |
+ wchar_t pname[] = L"htcondor"; | |
Py_SetProgramName(pname); |
https://github.com/aancel/admin/wiki/VirtualGL-on-Ubuntu
https://virtualgl.org/About/Introduction
When you use ssh with X forwarding, you might have noticed that you cannot execute programs that require 3D acceleration. That's where VirtualGL comes into play.
If you hate git submodule
, then you may want to give git subtree
a try.
When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add
command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.
When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.
Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this:
# Recipe on running Unity (or any OpenGL based application) offscreen on your local Linux machine. | |
# Requirement: X server, NVIDIA drivers installed and working correctly. | |
# Tested on Ubuntu14.04. | |
# Summary: install XDummy and VirtualGL, configure virtual framebuffer, run your application via VirtualGL | |
# install XDummy | |
sudo apt-get update | |
sudo apt-get install xorg-video-abi-15 xserver-xorg-video-dummy |
Product: Sagitta Brutalis 1080 (PN S3480-GTX-1080-2697-128)
Software: Hashcat v3.00-beta-145-g069634a, Nvidia driver 367.18
Accelerator: 8x Nvidia GTX 1080 Founders Edition
# Installs new JupyterHub with Ubuntu 14.04 (Trusty) on host | |
# with self signed SSL certificate. Change SSL section | |
# to incorporate procedure for signing with trusted CA. | |
#!/bin/bash | |
# make install dir | |
mkdir /home/ubuntu/install-host | |
# set environment vars |
# -*- coding: utf-8 -*- | |
"""From a Query.all(), turn this result to a pandas DataFrame | |
Table creation and example data come from the official SQLAlchemy ORM | |
tutorial at http://docs.sqlalchemy.org/en/latest/orm/tutorial.html | |
Just take a look at the 'query_to_dict' function and the last part of the __main__. | |
""" |
1. Check Python3 root | |
>>> import sys | |
>>> import os | |
>>> sys.executable | |
'/usr/local/bin/python3' | |
OR | |
$ which python3 | |
/usr/local/bin/python3 |