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 July 28, 2024 17:25
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 July 26, 2024 20:56
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