A
Austin Songer, CISSP
Guest
- Thread Author
- #1
.bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
.vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
10-blanking.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
settings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
Shortcuts.ahk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
| # Sourced on shell startup |
| # Also sourced on login since .bash_profile calls this |
| # Add extra binaries as needed |
| export PATH="${HOME}/.nimble/bin/:${PATH}" |
| # Set up Java's environment |
| export JAVA_HOME="/usr/lib/jvm/default-runtime" |
| # Set up environment for GPG's SSH-agent integration |
| export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh" |
| # Use `ksshaskpass` for git |
| export GIT_ASKPASS='/usr/bin/ksshaskpass' |
| # The following variables only apply to interactive shells |
| # Check for that and return early if not |
| [[ $- != *i* ]] && return |
| # Arch-like prompt |
| export PS1="[\u@\h \W]\$ " |
| # Variables to set our editors for programs like git |
| export EDITOR=vim |
| export VISUAL=vim |
| # Color the output of ls |
| alias ls="ls --color=auto" |
| # Required for conda |
| export TERMINFO="/usr/share/terminfo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
| " Enable line numbers |
| set number |
| " Tabs are four spaces by default |
| set expandtab |
| set tabstop=4 |
| set shiftwidth=4 |
| " Don't return to the start of each line |
| set autoindent |
| " Display current line and column |
| set ruler |
| " Add rulers at 80 and 120 |
| set colorcolumn=80,120 |
| " Search as I type, and highlight the results |
| set incsearch |
| set hlsearch |
| " By default, ignore case while searching, but consider case if the query has an |
| " uppercase letter |
| set ignorecase |
| set smartcase |
| " Don't auto format text; do auto format comments |
| set formatoptions-=t |
| " Wrap comments at 80 |
| set textwidth=80 |
| " Strip trailing whitespace, and remove final newlines |
| autocmd BufWritePre * :%s/\s\+$//e |
| autocmd BufWritePre * :%s/\($\n\s*\)\+\%$//e |
| " Syntax highlighting |
| syntax enable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
| Section "Extensions" |
| Option "DPMS" "Disable" |
| EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
| { |
| // Disable telemetry |
| "telemetry.telemetryLevel": "off", |
| // Disable workspace trust |
| "security.workspace.trust.enabled": false, |
| // Get the integrated terminal working |
| "terminal.integrated.detectLocale": "off", |
| // Don't show welcome screen on startup |
| "workbench.startupEditor": "none", |
| // Don't recommend extensions |
| "extensions.ignoreRecommendations": true, |
| // Set a theme and font so it doesn't look ugly |
| "workbench.colorTheme": "Nord", |
| "editor.fontFamily": "Source Code Pro", |
| // Similarly, increase the top margin |
| "editor.padding.top": 20, |
| // Always auto-save |
| "files.autoSave": "afterDelay", |
| "files.autoSaveDelay": 5000, |
| // Show whitespace so we don't have to deal with that. Also trim whitespace |
| // wherever possible |
| "editor.renderWhitespace": "all", |
| "files.trimTrailingWhitespace": true, |
| "files.trimFinalNewlines": true, |
| "files.insertFinalNewline": true, |
| // Source Code Pro has an issue with ligatures - specifically "l l" |
| // See https://github.com/microsoft/vscode/issues/106583 |
| "editor.fontLigatures": "'ccmp' off", |
| // Don't highlight unicode |
| "editor.unicodeHighlight.ambiguousCharacters": false, |
| // Set rulers so we don't write too long |
| "editor.rulers": [80, 120], |
| // Autowrap always |
| "rewrap.autoWrap.enabled": true, |
| "rewrap.wrappingColumn": 80, |
| // Convinience options for using Git |
| "git.enableCommitSigning": true, |
| "git.autofetch": true, |
| "git.confirmSync": false, |
| // Don't ignore whitespace differences for Git |
| "diffEditor.ignoreTrimWhitespace": false, |
| // For C/C++, indent at two spaces instead of four |
| "[c]": { "editor.tabSize": 2 }, |
| "[cpp]": { "editor.tabSize": 2 }, |
| // For Markdown, don't wrap, just like normal |
| "[markdown]": { |
| "editor.wordWrap": "off", |
| }, |
| // Linting for Python |
| "[python]": { |
| "editor.defaultFormatter": "ms-python.black-formatter", |
| "editor.formatOnSave": true, |
| "editor.codeActionsOnSave": { |
| "source.organizeImports": "always", |
| }, |
| }, |
| "isort.args": ["--profile", "black"], |
| "github.copilot.editor.enableAutoCompletions": true, |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Show hidden characters
| ; This file contains all my custom shortcuts |
| ; Windows doesn't appear to have a good way to do this natively, so AHK it is |
| ; Breaking syntax changes between versions |
| #Requires AutoHotkey >=v2.0 |
| ; Only have one instance of this up at a time |
| ; If another is started, replace |
| #SingleInstance force |
| ; Volume controls: mute, up, adown |
| ^F10:: |
| { |
| SendInput "{Volume_Mute}" |
| } |
| ^F11:: |
| { |
| SendInput "{Volume_Down}" |
| } |
| ^F12:: |
| { |
| SendInput "{Volume_Up}" |
| } |
| ; Media controls: pause |
| ^F8:: |
| { |
| SendInput "{Media_Play_Pause}" |
| } |