Skip to content

Instantly share code, notes, and snippets.

View donhector's full-sized avatar
😎

Donhector donhector

😎
View GitHub Profile
@donhector
donhector / Alpine.Dockerfile
Last active May 8, 2023 00:11
Dockerfile non root
# Image arguments can be overriden at build time via --build-arg KEY=VALUE
ARG ALPINE_VERSION=3
FROM alpine:${ALPINE_VERSION}
# User and group settings
ARG USER=appuser
ARG GROUP=${USER}
ARG UID=1000
ARG GID=1000
@donhector
donhector / candy.zsh-theme
Created December 10, 2021 16:13
Tweaked 'Candy' zsh theme with 24h format and directory path abbreviation
PROMPT=$'%{$fg_bold[green]%}%n@%m %{$fg[blue]%}%D{[%T]} %{$reset_color%}%{$fg[white]%}[%(5~|%-1~/…/%3~|%4~)]%{$reset_color%} $(git_prompt_info)\
%{$fg[blue]%}->%{$fg_bold[blue]%} %#%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}["
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
@donhector
donhector / conventional-commit-regex.md
Last active November 29, 2021 02:28
Conventional Commits Regex

Conventional Commit Regex

^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(\w+((,|\/|\\)?\s?\w+)+\))?!?: [\S ]{1,49}[^\.]$

This regex enforces the rules for the header line of the conventional commit specification.

  • Supports the standard types
  • Supports the breaking changes exclamation mark notation
@donhector
donhector / configuration.xml
Created February 23, 2021 01:13
Office Deployment Tool config file
<Configuration>
<Add OfficeClientEdition="64" Channel="PerpetualVL2019" ForceUpgrade="TRUE">
<Product ID="ProPlus2019Volume" PIDKEY="NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP">
<Language ID="MatchOS" />
<!-- If you need , comment it. -->
<!-- <ExcludeApp ID="Word" /> -->
<!-- <ExcludeApp ID="Excel" /> -->
<!-- <ExcludeApp ID="PowerPoint" /> -->
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
#!/usr/bin/env bash
sudo apt update
sudo apt install -y ffmpeg
pip install --user --upgrade youtube_dl
mkdir -p music && cd music
# Resource supports links to youtube videos and playlists