Skip to content

Instantly share code, notes, and snippets.

View uriberma's full-sized avatar
👋

Maycol Uribe Romero uriberma

👋
  • Rohde & Schwarz
  • Germany
  • 13:58 (UTC +02:00)
View GitHub Profile
@uriberma
uriberma / finder.bash
Last active July 15, 2023 09:20
find files older than $days and delete them
1 │ #!/bin/bash
2 │
3 │ path=$1
4 │ days=$2
5 │
6 │ # verify if path and days are set
7 │ if [ -z $path ] || [ -z $days ]; then
8 │ echo "Usage: $0 path_to_folder file_age_in_days"
9 │ exit 1
10 │ fi
@uriberma
uriberma / ScopeFunctions.kt
Last active March 28, 2022 19:23
Scope Functions in Kotlin
import java.time.LocalDate
import java.time.Period
import kotlin.system.exitProcess
fun main() {
println("Please insert your birthday in this format: yyyy-MM-dd")
readLine().takeUnless {
it.isNullOrBlank() || it.isEmpty()
}?.let {
LocalDate.parse(it)
@uriberma
uriberma / install_nano_v4.0_on_mac.sh
Created February 15, 2022 21:20 — forked from fevangelou/install_nano_on_macos_without_homebrew.sh
Install Nano Editor v4.0 (with syntax highlighting) on the Mac
#!/bin/bash
# Install Nano Editor (https://www.nano-editor.org) with syntax highlighting on the Mac
# Version 4.0 ("Thy Rope of Sands") released March 24th 2019
cd ~/
wget https://www.nano-editor.org/dist/v4/nano-4.0.tar.gz
tar -xvf nano-4.0.tar.gz
mv nano-4.0 .nano
cd .nano/
@uriberma
uriberma / ohmyzsh.md
Created January 3, 2022 21:23 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.