Skip to content

Instantly share code, notes, and snippets.

View lukas-koschmieder's full-sized avatar

Lukas Koschmieder lukas-koschmieder

View GitHub Profile
@lukas-koschmieder
lukas-koschmieder / JupyterLabTerminalShortcuts.md
Last active September 25, 2018 09:50
JupyterLab Terminal Shortcuts

JupyterLab Terminal Shortcuts

Command Shortcut
Copy Ctrl+Insert
Paste Shift+Insert
Context Menu Shift+MouseRight

Tested in Ubuntu and Windows

@lukas-koschmieder
lukas-koschmieder / odf2D3dStatsGen.sh
Last active June 27, 2018 14:32
Convert raw ODF to Dream.3D StatsGenerator ODF
#!/bin/bash
tmpfile=/tmp/$USER-$RANDOM
angleCount=$(awk '{ printf "%s %s %s 0.75 1.0\n", $1, $2, $3, $4}' $1 | grep "^[0-9]" | column -t | tee $tmpfile | wc -l)
echo "Angle Count: $angleCount"
cat $tmpfile
rm $tmpfile
@lukas-koschmieder
lukas-koschmieder / condor-8.6.11-py3.patch
Last active June 5, 2018 19:14
HTCondor 8.6.11 Python 3 patch
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);