Skip to content

Instantly share code, notes, and snippets.

View SergioRibera's full-sized avatar
🦀

Sergio Alejandro Ribera Costa SergioRibera

🦀
View GitHub Profile
@SergioRibera
SergioRibera / flake.nix
Created March 2, 2024 07:54
Dotnet flake for NixOs
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nuget-packageslock2nix = {
url = "github:mdarocha/nuget-packageslock2nix/main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, nuget-packageslock2nix, ... }: {
@SergioRibera
SergioRibera / config.json
Last active December 7, 2023 02:40
Automate ArchLinux Install
{
"additional-repositories": [
"multilib"
],
"archinstall-language": "English",
"audio_config": {
"audio": "pipewire"
},
"bootloader": "Systemd-boot",
"config_version": "2.7.1",
@SergioRibera
SergioRibera / README.md
Last active November 4, 2022 16:26
Launch WorkDay application automaticaly

Launch work applications only on workdays

This guide will help you configure the necessary scripts and services so that when you turn on your computer it will automatically check if it is a working day or not, if so it will verify if it is a local holiday to be able to launch the applications and services needed to work comfortably.

Requirements

  • Create an API app (Google Calendar API) in the google developer account
  • Have systemd installer (or other if you know how manage services)

Instalation

IMPORTANT: Read each step of this guide

  • From the "Credentials" tab you can create an API key, you get something like this AIzaSyBcOT_DpEQysiwFmmmZXupKpnrOdJYAhhM
#!/bin/bash
# Reset
Color_Off='\033[0m' # Text Reset
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
@SergioRibera
SergioRibera / wallpaper.sh
Last active April 12, 2024 20:49
This script allow set image or video as background on linux, specially for WM's
#!/bin/bash
#
# author: Sergio Ribera
# github: @SergioRibera
#
set -e
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
@SergioRibera
SergioRibera / compile.sh
Created February 3, 2021 00:25
This simple script allows to compile dotnet for all platforms, windows (x86 and x64), linux (x64), mac (Minimum OS version is macOS 10.12 Sierra) and arm (x86 and x64). to run this script you must give it run permissions with `chmod +x compile.sh`. To run it the first parameter must be the path to the folder where the dotnet project is located (…
#!/bin/bash
rm -rf $2
cd $1
BLUE='\033[0;34m'
NC='\033[0m'
printf "${BLUE}\n"
printf " ____ ___ \n"
printf " / ___| / |\n"
printf " __ _/ /___ / /| |\n"