Skip to content

Instantly share code, notes, and snippets.

View LV's full-sized avatar
:shipit:
Siuuu

Luis Victoria LV

:shipit:
Siuuu
View GitHub Profile
@LV
LV / .bashrc
Last active September 2, 2025 23:50
# .bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export PROMPT_COMMAND='branch=$(git branch --show-current 2>/dev/null); PS1="\[$(tput setaf 28)\]${branch:+($branch) }\[$(tput setaf 226)\]\u\[$(tput setaf 220)\]@\[$(tput setaf 214)\]\h \[$(tput setaf 33)\]\w \[$(tput sgr0)\]$ "'
# Aliases
alias grep="grep --color=auto"
alias gg="lazygit"
@LV
LV / steamos_troubleshooting.md
Created March 24, 2024 00:26
SteamOS Trouleshooting

Steam Deck Dev Troubleshooting

This document is a personal work in progress meant to document how to fix certain troubleshooting setting up a development environment on a Steam Deck.


disable read only mode

sudo pacman-key --init
#!/usr/bin/env sh
git submodule init
git submodule update
~/.config/emacs/bin/doom install
~/.config/emacs/bin/doom sync
@LV
LV / .vimrc
Created December 7, 2020 21:12
My vim configuration file
""" Basic behavior
syntax enable
set number
set encoding=utf-8
set backspace=indent,eol,start
""" Tab settings
set tabstop=4
set noexpandtab
set autoindent
@LV
LV / setxbacklight.sh
Created October 29, 2020 19:49
Increment up and down xbacklight but make '1' edge. Go from 0 to 1 to 10 and from 10 to 1 to 0 (for night use)
#!/bin/bash
if [ $# -ne 1 ];
then
echo "Invalid number of arguments!"
echo "Usage: setxbacklight up/down"
else
OUTPUT=$(xbacklight)
if [ $1 == "up" ];
then

Keybase proof

I hereby claim:

  • I am lv on github.
  • I am lavp (https://keybase.io/lavp) on keybase.
  • I have a public key ASAatQoM5A0RajlGeMinIDV96IagYVmX33jz2j_tYFCQvQo

To claim this, I am signing this object:

@LV
LV / wordfind-scraper.py
Created October 9, 2020 00:04
Creates a txt file of all words in a given wordfind.com link
# USAGE: python wordfind-scraper.py https://www.wordfind.com/your/url/
# Output will be in a file called words.txt located in the same folder as this script
# BeautifulSoup4 is needed in order for this script to work
import sys
import bs4 as bs
from urllib.request import Request, urlopen
if len(sys.argv) == 2:
site = sys.argv[1]
@LV
LV / aur.sh
Created May 3, 2020 10:59
Faster way of cloning AURs without having to type `git clone ...`
#!/bin/bash
if [ $# -ne 1 ];
then
echo "Invalid number of arguments!"
echo "Usage: aur reponame"
else
`git clone https://aur.archlinux.org/$1.git`
fi
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int const N = 9;
int const n = 3;
void printBoard(vector<vector<int> > board) {
for(int i=0; i<N; i++) {
@LV
LV / gcd.py
Created October 18, 2019 02:18
Computes the greatest common divisor between two positive integers m and n
# REQUIRES: integers m and n to be postitive and m >= n
m = int(input("Input positive integer m: "))
n = int(input("Input positive integer n: "))
if (n < 0 or m < 0 or n > m):
print("The values for m and n are not valid")
else:
r = m % n
while (r != 0):