Skip to content

Instantly share code, notes, and snippets.

@brianblakely
brianblakely / vscode-update.sh
Last active December 23, 2019 17:25
Update or install VS Code on RHEL, Fedora, and CentOS based distributions.
#!/bin/sh
echo 'Beginning Visual Studio Code update.'
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
sudo dnf check-update
sudo dnf install code
@brianblakely
brianblakely / .bash_profile
Last active September 11, 2020 18:34
My Bash Prompt
test -f ~/.profile && . ~/.profile
test -f ~/.bashrc && . ~/.bashrc
@brianblakely
brianblakely / config
Last active February 26, 2021 17:02
SSH Per-Domain Config
Host DOMAIN
HostName DOMAIN
User USERNAME
IdentityFile PRIVATE_KEY_FILE
IdentitiesOnly yes
@brianblakely
brianblakely / blue-owl-edit.omp.json
Last active February 10, 2023 22:29
Oh My Posh Config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#a313a8",
"foreground": "#FFEB3B",
"style": "plain",