clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove sensitive information with script

sspaeti 34061ab1 13124f0c

+120 -114
+1
Makefile
··· 3 3 backup-dotfiles: 4 4 ./backup_dotfiles.sh 5 5 echo "backup done.." 6 + python _utils/remove_data.py 6 7 7 8 8 9 help: ## Show all Makefile targets
+16
_utils/remove_data.py
··· 1 + import json5 2 + 3 + # import json 4 + 5 + # Load the copied settings file 6 + with open("vscode/settings.json", "r") as f: 7 + data = json5.load(f) 8 + 9 + # Remove the unwanted dictionaries 10 + if "codegpt.apiKey" in data: 11 + del data["codegpt.apiKey"] 12 + 13 + # Save the modified data back to the copied file 14 + with open("vscode/settings.json", "w") as f: 15 + f.write(json5.dumps(data, indent=4)) 16 + # json.dump(data, f, indent=4) #this will print without leading commas
+103 -114
vscode/settings.json
··· 8 8 "editor.largeFileOptimizations": false, 9 9 "python.pythonPath": "/Users/sspaeti/.venvs/onenote-export/bin/python", 10 10 "kite.showWelcomeNotificationOnStartup": false, 11 - //linging: 12 - // "python.linting.pycodestyleEnabled": true, 13 - // "python.linting.pylintEnabled": true, 14 - // "python.linting.enabled": true, 15 - // "python.formatting.provider": "autopep8" 16 11 "[dockerfile]": { 17 - "editor.formatOnSave": false 12 + "editor.formatOnSave": false, 18 13 }, 19 14 "autoDocstring.quoteStyle": "'''", 20 15 "autoDocstring.docstringFormat": "google", ··· 23 18 "editor.formatOnSaveTimeout": 2000, 24 19 "editor.formatOnPaste": false, 25 20 "editor.rulers": [ 26 - 100 21 + 100, 27 22 ], 28 23 "editor.minimap.enabled": false, 29 24 "editor.renderWhitespace": "none", ··· 68 63 "*/dist": true, 69 64 "*/htmlcov": true, 70 65 "pulumi/bin": true, 71 - "scala_modules/*/target": true 66 + "scala_modules/*/target": true, 72 67 }, 73 68 "files.trimTrailingWhitespace": true, 74 69 "files.trimFinalNewlines": true, 75 70 "git.ignoreLimitWarning": true, 76 71 "python.analysis.disabled": [ 77 - "unresolved-import" 72 + "unresolved-import", 78 73 ], 79 74 "python.analysis.memory.keepLibraryAst": true, 80 75 "python.formatting.provider": "black", ··· 84 79 "-S", 85 80 "--fast", 86 81 ], 87 - //"python.jediEnabled": true, #old, new python.languageServer "Jedi" 88 82 "python.languageServer": "Jedi", 89 83 "python.linting.enabled": true, 90 84 "python.linting.pylintEnabled": true, ··· 102 96 "typescript.updateImportsOnFileMove.enabled": "always", 103 97 "workbench.tree.renderIndentGuides": "onHover", 104 98 "[typescript]": { 105 - "editor.tabSize": 2 99 + "editor.tabSize": 2, 106 100 }, 107 101 "extensions.autoUpdate": true, 108 102 "explorer.confirmDragAndDrop": false, 109 103 "git.autofetch": true, 110 - //################################################################### 111 - // MINIMALISTIC DESIGN 112 - //################################################################### 113 - "editor.renderLineHighlight": "none", // removes line highlight 114 - "editor.overviewRulerBorder": false, // removes border from overview ruler (located on the right, same position as the scrollbar) 115 - "editor.hideCursorInOverviewRuler": true, // hides cursor mark in the overview ruler 116 - "editor.folding": true, // removes the folding feature 117 - "editor.occurrencesHighlight": false, // removes highlights occurrences (still works when you select a word) 118 - "editor.matchBrackets": "never", // removes the highlight of matching brackets (I use Subtle Match Brackets extension for this) 119 - "editor.glyphMargin": true, // removes the space used mainly for debugging indicators 120 - "explorer.openEditors.visible": 0, // removes the activity bar (the 4 icons at the left of the screen), so now you will have to open the explorer, git, debugger and extension with shortcuts or through the Command Palette 121 - "workbench.editor.showIcons": false, // removes icon from opened files in tabs 122 - "workbench.editor.tabCloseButton": "off", // removes the status bar 123 - "indenticator.color.dark": "rgba(255,255,255,.1)", // adds a subtle indent guide (needs Indenticator extension) 124 - "workbench.colorCustomizations": { // object that allows you to customize your color theme: https://code.visualstudio.com/docs/getstarted/theme-color-reference 125 - "tab.activeBorder": "#0000" // removes border to highlight active tabs (the colors formats are: #RGB, #RGBA, #RRGGBB or #RRGGBBAA) 104 + "editor.renderLineHighlight": "none", 105 + "editor.overviewRulerBorder": false, 106 + "editor.hideCursorInOverviewRuler": true, 107 + "editor.folding": true, 108 + "editor.occurrencesHighlight": false, 109 + "editor.matchBrackets": "never", 110 + "editor.glyphMargin": true, 111 + "explorer.openEditors.visible": 0, 112 + "workbench.editor.showIcons": false, 113 + "workbench.editor.tabCloseButton": "off", 114 + "indenticator.color.dark": "rgba(255,255,255,.1)", 115 + "workbench.colorCustomizations": { 116 + "tab.activeBorder": "#0000", 126 117 }, 127 - "editor.wordBasedSuggestions": true, //false, 128 - //gitlens icons 118 + "editor.wordBasedSuggestions": true, 129 119 "gitHistory.showEditorTitleMenuBarIcons": false, 130 120 "gitlens.menus": { 131 - "editor": { 132 - "blame": false, 133 - "clipboard": true, 134 - "compare": true, 135 - "details": false, 136 - "history": false, 137 - "remote": false 121 + editor: { 122 + blame: false, 123 + clipboard: true, 124 + compare: true, 125 + details: false, 126 + history: false, 127 + remote: false, 138 128 }, 139 - "editorGroup": false, 140 - "editorTab": false, 141 - "explorer": { 142 - "clipboard": true, 143 - "compare": true, 144 - "history": true, 145 - "remote": true 129 + editorGroup: false, 130 + editorTab: false, 131 + explorer: { 132 + clipboard: true, 133 + compare: true, 134 + history: true, 135 + remote: true, 146 136 }, 147 - "scmGroup": { 148 - "compare": true, 149 - "openClose": true, 150 - "stash": true, 151 - "stashInline": true 137 + scmGroup: { 138 + compare: true, 139 + openClose: true, 140 + stash: true, 141 + stashInline: true, 152 142 }, 153 - "scmItem": { 154 - "clipboard": true, 155 - "compare": true, 156 - "history": true, 157 - "remote": true, 158 - "stash": true 159 - } 143 + scmItem: { 144 + clipboard: true, 145 + compare: true, 146 + history: true, 147 + remote: true, 148 + stash: true, 149 + }, 160 150 }, 161 151 "[json]": { 162 - "editor.defaultFormatter": "vscode.json-language-features" 152 + "editor.defaultFormatter": "vscode.json-language-features", 163 153 }, 164 154 "jupyter.alwaysTrustNotebooks": true, 165 155 "outline.showVariables": false, 166 156 "[html]": { 167 - "editor.defaultFormatter": "lonefy.vscode-JS-CSS-HTML-formatter" 157 + "editor.defaultFormatter": "lonefy.vscode-JS-CSS-HTML-formatter", 168 158 }, 169 159 "workbench.editorAssociations": { 170 - "*.ipynb": "jupyter-notebook" 160 + "*.ipynb": "jupyter-notebook", 171 161 }, 172 162 "mssql.connections": [ 173 163 { 174 - "server": "{{put-server-name-here}}", 175 - "database": "{{put-database-name-here}}", 176 - "user": "{{put-username-here}}", 177 - "password": "{{put-password-here}}" 178 - } 164 + server: "{{put-server-name-here}}", 165 + database: "{{put-database-name-here}}", 166 + user: "{{put-username-here}}", 167 + password: "{{put-password-here}}", 168 + }, 179 169 ], 180 170 "grammarly.dialect": "british", 181 171 "[sql]": { 182 - "editor.defaultFormatter": "dorzey.vscode-sqlfluff" 172 + "editor.defaultFormatter": "dorzey.vscode-sqlfluff", 183 173 }, 184 174 "notebook.cellToolbarLocation": { 185 175 "default": "right", 186 - "jupyter-notebook": "left" 176 + "jupyter-notebook": "left", 187 177 }, 188 178 "python.defaultInterpreterPath": "/Users/sspaeti/.venvs/onenote-export/bin/python", 189 179 "vim.easymotion": true, ··· 193 183 "vim.hlsearch": true, 194 184 "vim.insertModeKeyBindings": [ 195 185 { 196 - "before": [ 186 + before: [ 197 187 "j", 198 - "k" 188 + "k", 189 + ], 190 + after: [ 191 + "<Esc>", 199 192 ], 200 - "after": [ 201 - "<Esc>" 202 - ] 203 - } 193 + }, 204 194 ], 205 195 "vim.visualModeKeyBindings": [ 206 196 { 207 - "before": [ 197 + before: [ 208 198 "<leader>", 209 - "c" 199 + "c", 210 200 ], 211 - "commands": [ 212 - "editor.action.commentLine" 201 + commands: [ 202 + "editor.action.commentLine", 213 203 ], 214 - "when": "editorTextFocus && !editorReadonly" 215 - } 204 + when: "editorTextFocus && !editorReadonly", 205 + }, 216 206 ], 217 207 "vim.normalModeKeyBindingsNonRecursive": [ 218 208 { 219 - "before": [ 209 + before: [ 220 210 "<leader>", 221 - "d" 211 + "d", 222 212 ], 223 - "after": [ 213 + after: [ 214 + "d", 224 215 "d", 225 - "d" 226 - ] 216 + ], 227 217 }, 228 218 { 229 - "before": [ 230 - "<C-n>" 219 + before: [ 220 + "<C-n>", 231 221 ], 232 - "commands": [ 233 - ":nohl" 234 - ] 222 + commands: [ 223 + ":nohl", 224 + ], 235 225 }, 236 226 { 237 - "before": [ 227 + before: [ 238 228 "s", 239 229 "l", 240 230 ], 241 - "after": [], 242 - "commands": [ 231 + after: [], 232 + commands: [ 243 233 "workbench.action.focusRightGroup", 244 - ] 234 + ], 245 235 }, 246 236 { 247 - "before": [ 237 + before: [ 248 238 "s", 249 239 "h", 250 240 ], 251 - "after": [], 252 - "commands": [ 241 + after: [], 242 + commands: [ 253 243 "workbench.action.focusLeftGroup", 254 - ] 244 + ], 255 245 }, 256 246 { 257 - "before": [ 247 + before: [ 258 248 "s", 259 249 "s", 260 250 ], 261 - "after": [], 262 - "commands": [ 251 + after: [], 252 + commands: [ 263 253 "workbench.action.splitEditorDown", 264 - ] 254 + ], 265 255 }, 266 256 { 267 - "before": [ 257 + before: [ 268 258 "s", 269 259 "v", 270 260 ], 271 - "after": [], 272 - "commands": [ 261 + after: [], 262 + commands: [ 273 263 "workbench.action.splitEditorRight", 274 - ] 275 - } 264 + ], 265 + }, 276 266 ], 277 267 "vim.leader": "<space>", 278 268 "vim.handleKeys": { 279 269 "<C-a>": false, 280 - "<C-f>": false 270 + "<C-f>": false, 281 271 }, 282 272 "editor.lineNumbers": "relative", 283 273 "redhat.telemetry.enabled": false, ··· 285 275 "security.workspace.trust.untrustedFiles": "open", 286 276 "github.copilot.enable": { 287 277 "*": true, 288 - "plaintext": true, 289 - "markdown": false, 290 - "scminput": false, 291 - "yaml": true, 292 - "lua": true 278 + plaintext: true, 279 + markdown: false, 280 + scminput: false, 281 + yaml: true, 282 + lua: true, 293 283 }, 294 284 "files.watcherExclude": { 295 285 "**/.bloop": true, 296 286 "**/.metals": true, 297 - "**/.ammonite": true 287 + "**/.ammonite": true, 298 288 }, 299 289 "telemetry.telemetryLevel": "off", 300 290 "vscode-neovim.neovimExecutablePaths.darwin": "/opt/homebrew/bin/nvim", 301 291 "vscode-neovim.neovimInitVimPaths.darwin": "/Users/sspaeti/.config/nvim/", 302 - "codegpt.apiKey": "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", 303 292 "[python]": { 304 - "editor.defaultFormatter": "ms-python.black-formatter" 293 + "editor.defaultFormatter": "ms-python.black-formatter", 305 294 }, 306 - "codegpt.model": "ChatGPT" 295 + "codegpt.model": "ChatGPT", 307 296 }