Skip to content

Instantly share code, notes, and snippets.

View fullmetalbrackets's full-sized avatar
🎯
Focusing

Ariel Diaz fullmetalbrackets

🎯
Focusing
View GitHub Profile
@fullmetalbrackets
fullmetalbrackets / starship.toml
Last active February 4, 2024 18:02
Starship Prompt Config (Windows Terminal)
# ~/.config/starship.toml
[character]
success_symbol = "🦄(bold green)"
error_symbol = "💩(bold red) "
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
@fullmetalbrackets
fullmetalbrackets / .zshrc
Last active October 26, 2022 06:45
Zsh & Oh My Zsh Config (Linux)
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@fullmetalbrackets
fullmetalbrackets / .aliases
Last active January 17, 2022 05:31
Linux Aliases
# Place the '.aliases' in ~/ home directory
## If using zsh add the following to '.zshrc' file:
### source $HOME/.aliases
alias up='sudo apt update && sudo apt full-upgrade -y'
alias si='sudo apt install -y'
alias sn='sudo nano'
alias rb='sudo reboot'
alias sd='sudo shutdown'
alias sr='sudo rm'
@fullmetalbrackets
fullmetalbrackets / prism-vaporwave.css
Last active November 9, 2022 01:51
Vaporwave PrismJS Theme
/*
Inspired (with some changes) by Kabukicho VSCode theme by Victoria Drake [https://github.com/victoriadrake/kabukicho-vscode]
*/
code[class*="language-"],
pre[class*="language-"] {
color: #FF39A8;
font-family: 'JetBrains Mono', Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
border-radius: 0.5em;
text-align: left;
@fullmetalbrackets
fullmetalbrackets / reset.css
Created November 30, 2021 03:23
CSS Reset
html {
box-sizing: border-box;
height: 100%;
}
*, *:before, *:after {
box-sizing: inherit;
}
* {
@fullmetalbrackets
fullmetalbrackets / Vaporwave.toml
Last active November 30, 2021 08:00
Vaporwave theme for Macchina
# Vaporwave theme for Macchina (https://github.com/Macchina-CLI/macchina)
# Place this file in ~/.config/macchina/themes
hide_ascii = true
prefer_small_ascii = false
spacing = 2
padding = 0
separator = "->"
key_color = "LightMagenta"
separator_color = "LightCyan"
@fullmetalbrackets
fullmetalbrackets / zsh-install.md
Last active June 26, 2024 17:13
Quick Guide - install zsh + oh-my-zsh w/ plugins & powerlevel10k theme

Install Zsh

sudo apt install zsh -y

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@fullmetalbrackets
fullmetalbrackets / meslo-fonts.sh
Last active December 6, 2021 03:16
Download powerlevel10k preferred fonts directly into fonts folder
#!/bin/sh
# Stupidly simple script to download Powerlevel10k's recommended fonts from their own repo and directly into the Linux fonts directory
# Because for some reason Powerlevel10k doesn't include it on it's install script...
wget -O /usr/share/fonts/MesloLGS%20NF%20Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
wget -O /usr/share/fonts/MesloLGS%20NF%20Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
wget -O /usr/share/fonts/MesloLGS%20NF%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
wget -O /usr/share/fonts/MesloLGS%20NF%20Bold%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
@fullmetalbrackets
fullmetalbrackets / smb.conf
Created July 4, 2023 23:12
Samba config to access share without login
# Create new user in Linux: sudo adduser public (give it any password, it won't be used anyway)
# Give read/write permissions: sudo chmod ugo+rw /home/public
[global]
workgroup = WORKGROUP
server string = Samba %v %h
# The below should make transfers faster and is optional
strict allocate = Yes
allocation roundup size = 4096
@fullmetalbrackets
fullmetalbrackets / oh-my-posh-install.md
Created July 13, 2023 07:34
Quick Guide - Install Oh-My-Posh in Windows Terminal or PowerShell with winget

Pre-Requisites

This guide will use the winget CLI tool to install and configure Oh-My-Posh. If you haven't already, I suggest installing Windows Terminal from the Microsoft Store and use Oh-My-Posh with it. If you'd rather not use Windows Terminal for some reason, you can still use Oh-My-Posh with PowerShell. Whichever you choose, check out these instructions to install winget.


Install Oh-My-Posh

winget install JanDeDobbeleer.OhMyPosh -s winget