Skip to content

Instantly share code, notes, and snippets.

View barrientosvctor's full-sized avatar
💻
Coding

Victor barrientosvctor

💻
Coding
View GitHub Profile
@barrientosvctor
barrientosvctor / shawn.omp.json
Created October 9, 2022 03:32
My Oh my Posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#24ecfc",
"properties": {
@barrientosvctor
barrientosvctor / shawn-solarized.omp.json
Created October 9, 2022 03:34
Unofficial Solarized theme for Oh my Posh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#002b36",
"foreground": "#859900",
"properties": {
@barrientosvctor
barrientosvctor / shawn-half-life.omp.json
Created October 9, 2022 03:34
Half Life theme for Oh my Posh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#ac4ef0",
"properties": {
@barrientosvctor
barrientosvctor / alacritty.yml
Created November 5, 2022 18:44
My alacritty config
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
@barrientosvctor
barrientosvctor / .editorconfig
Last active January 1, 2023 21:57
My global editorconfig
root = true
[*]
end_of_line = lf
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
@barrientosvctor
barrientosvctor / remove_submodule.sh
Created May 17, 2023 14:17
Remove any git submodule wtih this script.
#!/bin/bash
echo "WARNING: Make sure to run the script in root directory of your project."
echo "WARNING: Before to run this script, remember to previously remove git submodules in \`/.gitmodules/\` and \`/.git/config/\` files."
echo ""
read -p "Type the git submodule path that you will remove in your project: " path
# Stage the .gitmodules file
git add .gitmodules
@barrientosvctor
barrientosvctor / script.sh
Created March 24, 2024 22:37
A brightness manager for Ubuntu-based distro Linux machines.
#!/bin/bash
read -p "Provide the brightness percentage you want to set: " PERCENTAGE
device=$(xrandr | grep " connected" | cut -f1 -d " ")
# sets the brightness to specified brightness percentage
xrandr --output $device --brightness $PERCENTAGE
echo "Brightness set to $PERCENTAGE%"
@barrientosvctor
barrientosvctor / main.py
Created March 24, 2024 22:46
My implementation of the classic Guess Number game in your terminal.
from random import randint
def main():
try:
print("Welcome to Guess Number game!".center(50, "-"))
print("1. Guess number with attempts count")
print("2. Guess number with limited attempts")
choose_game = int(input("Choose the game mode what you want to play: "))
print("".center(50, "="))