From 0e9b9a824869cddc9bd7448c69b5a55dc5c0a3ca Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sun, 5 Jul 2026 21:34:29 -0500 Subject: [PATCH] Cleanup a bit --- files/gitattributes | 1 - files/github.py | 58 -------- files/jupyter-requirements.txt | 2 - files/keybindings.json | 82 ----------- .../MySnippets.code-snippets.jsonc | 0 files/vscodium/keybindings.json | 133 +++++++++++------- .../Microsoft.PowerShell_profile.ps1 | 0 files/{ => windows}/fix-ctrl-shift-c.ps1 | 0 files/{ => windows}/paths.ps1 | 0 files/{ => windows}/win_vimrc | 0 10 files changed, 82 insertions(+), 194 deletions(-) delete mode 100644 files/gitattributes delete mode 100644 files/github.py delete mode 100644 files/jupyter-requirements.txt delete mode 100644 files/keybindings.json rename files/{ => vscodium}/MySnippets.code-snippets.jsonc (100%) rename files/{ => windows}/Microsoft.PowerShell_profile.ps1 (100%) rename files/{ => windows}/fix-ctrl-shift-c.ps1 (100%) rename files/{ => windows}/paths.ps1 (100%) rename files/{ => windows}/win_vimrc (100%) diff --git a/files/gitattributes b/files/gitattributes deleted file mode 100644 index 08ed568..0000000 --- a/files/gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.ipynb filter=$HOME/dotfiles/util/jupyter_git_clean.py \ No newline at end of file diff --git a/files/github.py b/files/github.py deleted file mode 100644 index dab4849..0000000 --- a/files/github.py +++ /dev/null @@ -1,58 +0,0 @@ -""" -Recently Updated Open GitHub Issues -""" - -import http.client - -conn = http.client.HTTPSConnection("api.github.com") - -payload = "" -token = open('./.github_access_token').read() -headers = { 'authorization': "token {}".format(token), - 'User-Agent': 'Python Jupyter Notebook'} -conn.request("GET", "/issues?state=open&sort=updated", payload, headers) - -res = conn.getresponse() -data = res.read() - -results = data.decode("utf-8") - -data_file = 'gh_open.json' -f = open(data_file, "w") -f.write(results) -f.close() -print("Updated {} with {} length".format(data_file, len(results))) - -import pandas - -pdata = pandas.read_json(data_file) -# print(pdata.title.head(3)) - -from simple_rest_client import api - -token = open('./.github_access_token').read() -headers = { 'authorization': "token {}".format(token), - 'User-Agent': 'Python Jupyter Notebook'} -gh = api.API(api_root_url="https://api.github.com", headers=headers, - append_slash=False, - json_encode_body=True) - -gh.add_resource(resource_name='issues') -gh.issues.actions - -results = gh.issues.list(params=query) -titles = list(map(lambda t : t["title"], results.body)) - -from simple_rest_client import api - -token = open('./.github_access_token').read() -headers = { 'authorization': "token {}".format(token), - 'User-Agent': 'Python Jupyter Notebook'} -gh = api.API(api_root_url="https://api.github.com", headers=headers, - append_slash=False, - json_encode_body=True) - -gh.add_resource(resource_name='issues') -gh.issues.actions - -titles = list(map(lambda t : t["title"], results.body)) \ No newline at end of file diff --git a/files/jupyter-requirements.txt b/files/jupyter-requirements.txt deleted file mode 100644 index e887ad8..0000000 --- a/files/jupyter-requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -jupyter -pandas diff --git a/files/keybindings.json b/files/keybindings.json deleted file mode 100644 index a61933b..0000000 --- a/files/keybindings.json +++ /dev/null @@ -1,82 +0,0 @@ -// Place your key bindings in this file to override the defaultsauto[] -[ - { - "key": "shift+alt+8", - "command": "workbench.action.moveEditorToFirstGroup" - }, - { - "key": "shift+alt+1", - "command": "-workbench.action.moveEditorToFirstGroup" - }, - { - "key": "shift+alt+1", - "command": "journal.note" - }, - { - "key": "alt+home", - "command": "journal.today" - }, - { - "key": "shift+alt+3", - "command": "workbench.view.search.focus" - }, - { - "key": "shift+alt+v", - "command": "workbench.view.scm", - "when": "workbench.scm.active" - }, - { - "key": "ctrl+shift+g", - "command": "-workbench.view.scm", - "when": "workbench.scm.active" - }, - { - "key": "shift+alt+6", - "command": "workbench.action.toggleSidebarVisibility" - }, - { - "key": "ctrl+b", - "command": "-workbench.action.toggleSidebarVisibility" - }, - { - "key": "shift+alt+5", - "command": "workbench.action.toggleMaximizedPanel" - }, - { - "key": "shift+alt+4", - "command": "workbench.action.terminal.toggleTerminal", - "when": "terminal.active" - }, - { - "key": "ctrl+`", - "command": "-workbench.action.terminal.toggleTerminal", - "when": "terminal.active" - }, - { - "key": "alt+right", - "command": "journal.tomorrow" - }, - { - "key": "alt+left", - "command": "journal.yesterday" - }, - { - "key": "shift+alt+2", - "command": "workbench.action.toggleZenMode" - }, - { - "key": "ctrl+k z", - "command": "-workbench.action.toggleZenMode" - }, - { - "key": "ctrl+shift+pageup", - "command": "markdown.extension.closePreview", - "when": "activeWebviewPanelId == 'markdown.preview'" - }, - { - "key": "ctrl+shift+pageup", - "command": "-markdown.extension.closePreview", - "when": "activeWebviewPanelId == 'markdown.preview'" - } -] -] diff --git a/files/MySnippets.code-snippets.jsonc b/files/vscodium/MySnippets.code-snippets.jsonc similarity index 100% rename from files/MySnippets.code-snippets.jsonc rename to files/vscodium/MySnippets.code-snippets.jsonc diff --git a/files/vscodium/keybindings.json b/files/vscodium/keybindings.json index 02140d3..a61933b 100644 --- a/files/vscodium/keybindings.json +++ b/files/vscodium/keybindings.json @@ -1,51 +1,82 @@ -// Place your key bindings in this file to override the defaults -[ - { - "key": "alt+home", - "command": "journal.today" - }, - { - "key": "shift+alt+5", - "command": "remoteTargets.focus" - }, - { - "key": "shift+alt+6", - "command": "vscode-journal-view-explorer.focus" - }, - { - "key": "shift+alt+3", - "command": "workbench.view.search.focus" - }, - { - "key": "shift+alt+4", - "command": "workbench.action.terminal.toggleTerminal", - }, - { - "key": "ctrl+b", - "command": "-workbench.action.toggleSidebarVisibility" - }, - { - "key": "ctrl+`", - "command": "-workbench.action.terminal.toggleTerminal", - "when": "terminal.active" - }, - { - "key": "shift+alt+5", - "command": "workbench.action.toggleMaximizedPanel" - }, - { - "key": "shift+alt+6", - "command": "workbench.action.toggleZenMode", - "when": "!isAuxiliaryWindowFocusedContext" - }, - { - "key": "ctrl+k z", - "command": "-workbench.action.toggleZenMode", - "when": "!isAuxiliaryWindowFocusedContext" - }, - { - "key": "alt+home", - "command": "-list.focusAnyFirst", - "when": "listFocus && !inputFocus && !treestickyScrollFocused" - } -] \ No newline at end of file +// Place your key bindings in this file to override the defaultsauto[] +[ + { + "key": "shift+alt+8", + "command": "workbench.action.moveEditorToFirstGroup" + }, + { + "key": "shift+alt+1", + "command": "-workbench.action.moveEditorToFirstGroup" + }, + { + "key": "shift+alt+1", + "command": "journal.note" + }, + { + "key": "alt+home", + "command": "journal.today" + }, + { + "key": "shift+alt+3", + "command": "workbench.view.search.focus" + }, + { + "key": "shift+alt+v", + "command": "workbench.view.scm", + "when": "workbench.scm.active" + }, + { + "key": "ctrl+shift+g", + "command": "-workbench.view.scm", + "when": "workbench.scm.active" + }, + { + "key": "shift+alt+6", + "command": "workbench.action.toggleSidebarVisibility" + }, + { + "key": "ctrl+b", + "command": "-workbench.action.toggleSidebarVisibility" + }, + { + "key": "shift+alt+5", + "command": "workbench.action.toggleMaximizedPanel" + }, + { + "key": "shift+alt+4", + "command": "workbench.action.terminal.toggleTerminal", + "when": "terminal.active" + }, + { + "key": "ctrl+`", + "command": "-workbench.action.terminal.toggleTerminal", + "when": "terminal.active" + }, + { + "key": "alt+right", + "command": "journal.tomorrow" + }, + { + "key": "alt+left", + "command": "journal.yesterday" + }, + { + "key": "shift+alt+2", + "command": "workbench.action.toggleZenMode" + }, + { + "key": "ctrl+k z", + "command": "-workbench.action.toggleZenMode" + }, + { + "key": "ctrl+shift+pageup", + "command": "markdown.extension.closePreview", + "when": "activeWebviewPanelId == 'markdown.preview'" + }, + { + "key": "ctrl+shift+pageup", + "command": "-markdown.extension.closePreview", + "when": "activeWebviewPanelId == 'markdown.preview'" + } +] +] diff --git a/files/Microsoft.PowerShell_profile.ps1 b/files/windows/Microsoft.PowerShell_profile.ps1 similarity index 100% rename from files/Microsoft.PowerShell_profile.ps1 rename to files/windows/Microsoft.PowerShell_profile.ps1 diff --git a/files/fix-ctrl-shift-c.ps1 b/files/windows/fix-ctrl-shift-c.ps1 similarity index 100% rename from files/fix-ctrl-shift-c.ps1 rename to files/windows/fix-ctrl-shift-c.ps1 diff --git a/files/paths.ps1 b/files/windows/paths.ps1 similarity index 100% rename from files/paths.ps1 rename to files/windows/paths.ps1 diff --git a/files/win_vimrc b/files/windows/win_vimrc similarity index 100% rename from files/win_vimrc rename to files/windows/win_vimrc -- 2.47.3