Skip to content

Instantly share code, notes, and snippets.

View anthonytranDev's full-sized avatar
🦀
Rustacian

Toni Tran anthonytranDev

🦀
Rustacian
View GitHub Profile
@Jeff-Russ
Jeff-Russ / Demo: String Templates in Bash .md
Last active October 17, 2025 11:14
The best way to create a multiline document template (shell)

Demo: String Templates in Bash

The best way to create a multiline string template variable which has variables within it and contains double quotes.

IMPORTANT: The variable inserts must be assigned before the string template is declared and before it's used! EACH TIME THE INSERTS ARE MODIFIED, THE TEMPLATE MUST BE RE-RECLARED! For this reason it's sometimes handy to put the template def inside a function so you can call/re-call it before using it.

@lx-88
lx-88 / MIT_license_template.py
Last active March 21, 2019 22:22
MIT License Template
"""
MIT License (MIT)
Copyright (c) 2015. <Authors>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@idleberg
idleberg / fish_shell.md
Last active October 7, 2025 17:54
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish