Skip to content

Instantly share code, notes, and snippets.

View varaskkar's full-sized avatar

Felipe Delgado varaskkar

  • Spain
View GitHub Profile
@gesellix
gesellix / Caddyfile
Created August 2, 2018 06:42 — forked from Ocramius/Caddyfile
Example docker + docker-compose + caddy + traefik setup that routes to multiple apps from one exposed HTTP port
:80 {
root /serve
}
@villeheilala
villeheilala / .muttrc
Last active November 2, 2023 12:24
Minimal configuration for Neomutt/Mutt and Gmail/G Suite
# A minimal configuration for Neomutt/Mutt and Gmail/G Suite
# For more information, see:
# https://heilala.medium.com/command-line-email-with-neomutt-and-gmail-d558864ac3c8?source=friends_link&sk=4dbd90b6b7aebca3bce8d94c9a053168
# Decrypts passwords quietly
# see: https://wiki.archlinux.org/index.php/Mutt#Passwords_management
source "gpg -dq $HOME/.my-pwds.gpg |"
# Username and password for your Gmail/G Suite account
set imap_user = "john.snow@winterfell.ext"
@juanbrusco
juanbrusco / detect-duplicate.ftl
Created September 5, 2018 20:54
Detect duplicates into list - Freemarker
<#assign newList = [] />
<#list response.data.items as originalList>
<#if ! newList?seq_contains(originalList.xValue)>
<#assign newList = newList + [originalList.xValue] />
</#if>
</#list>
@npearce
npearce / install-docker.md
Last active March 28, 2024 11:51
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active March 26, 2024 13:44
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@TheWebDevel
TheWebDevel / .zshrc
Created April 20, 2019 03:48
My zshrc
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# Load Nerd Fonts with Powerlevel9k theme for Zsh
POWERLEVEL9K_MODE='nerdfont-complete'
source ~/powerlevel9k/powerlevel9k.zsh-theme
# Customise the Powerlevel9k prompts
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(ssh dir vcs newline status)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active March 27, 2024 18:26
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@XVilka
XVilka / FontShapingSupport.md
Created October 26, 2019 03:09
Font shaping e.g. ligatures support in terminal emulators and applications

This gist will show the support of font shaping support in the terminal emulators and console programs.

Supporting font shaping

local wezterm = require 'wezterm';
return {
default_prog = {"/usr/bin/zsh", "-l"},
font = wezterm.font_with_fallback({"Iosevka Term SS09 Light"},{foreground="#b0b0b0"}),
font_size = 12.0,
dpi = 96.0,
font_dirs = {"/usr/share/fonts/iosevka-term"},
font_rules = {
{
italic = true,
@V-Juarez
V-Juarez / Entorno de Desarrollo para php usando Docker.md
Last active March 25, 2024 01:20
Configuración de docker, php y nginx

Entorno de Desarrollo para php usando Docker 🐳

Quieres aprender php, pero las configuraciones te han abrumado y el deseo de aprender van mermando. No, no detengas tu aprendizaje, siempre existe una solución a los problemas. Instalar php, configurar un servidor web en Windows es muy sencillo, en Linux y macOS es otra situación. Debes conocer sobre la terminal, un editor de código, vim, nano, ser avanzado... y mucho más.

La herramienta que vamos a utilizar y que permite trabajar con php, un servidor web y la terminal es Docker.

Docker: Es una plataforma de software que permite crear, probar e implementar aplicaciones rápidamente.

Docker-compose: Es una herramienta para definir y ejecutar aplicaciones; es multicontenedor que permite simplificar el uso de Docker a partir de archivos YAML, de esta forma es más sencillo generar contendores que se relacionen entre sí, conectarlos, habilitar puertos, volúmenes, etc.