Skip to content

Instantly share code, notes, and snippets.

View RubenZagon's full-sized avatar
🏝️
Working from home

Ruben Zagon RubenZagon

🏝️
Working from home
View GitHub Profile
@ismanapa
ismanapa / 📖 book.md
Created September 5, 2022 14:34
New book template for Obsidian and Templater

<%* const http = require("https"); const fs = require("fs");

isbn = await tp.system.prompt("ISBN");

const downloadFile = (url) => { return new Promise((resolve) => { const path = ${tp.file.path().split("/").slice(0,-1).join("/")}/attachments; const fileName = url.split("/").pop();

@danidiaz
danidiaz / _01_modify_delete_conflicts.md
Last active November 26, 2023 21:06
Truquillos Git

conflictos modify/delete

(NOTA: Los primeros "truquillos Git" fueron redactados antes de que en Git la rama por defecto pasase a ser main, y he usado --initial-branch=master como manera fácil de adaptar los ejemplos para que siguiesen funcionado. Los "truquillos" posteriores ya usan main.)

Ejecutar este script en Git Bash crea un repositorio y lo deja en un estado de conflicto de merge:

mkdir conflicto.01
cd conflicto.01
git init --initial-branch=master

echo "zzz" > foo.txt

@mikepruett3
mikepruett3 / shell-setup.ps1
Last active November 6, 2024 04:07
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@vratiu
vratiu / .bash_aliases
Last active November 16, 2024 06:21
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset