Add jupyter helpers [ci skip]

This commit is contained in:
Misty 2022-01-30 13:01:44 +08:00
parent 31e125261a
commit 410c234782
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{
"argv": [
"/opt/wine_ida_wrap.sh",
"wine",
"C:\\IDA\\ida.exe",
"{connection_file}"
],
"display_name": "IDA32",
"language": "python",
"codemirror_mode": {
"version": 3,
"name": "ipython"
}
}

View file

@ -0,0 +1,14 @@
{
"argv": [
"/opt/wine_ida_wrap.sh",
"wine",
"C:\\IDA\\ida64.exe",
"{connection_file}"
],
"display_name": "IDA64",
"language": "python",
"codemirror_mode": {
"version": 3,
"name": "ipython"
}
}

View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
echo $@
connfile="${@: -1}"
connfile=$(realpath "$connfile")
echo "conn file linux path: $connfile"
mkdir -p ~/.wine/drive_c/Windows/Temp/jupyter_runtime
cp $connfile ~/.wine/drive_c/Windows/Temp/jupyter_runtime
#connfile='C:\Windows\Temp\'$(basename "$connfile")
connfile=Z:${connfile//\//\\}
export JUPYTER_CONNECTION=$connfile
echo "conn file wine path: $JUPYTER_CONNECTION"
"${@: 1:${#@}-1}" 2>&1 | tee test.log