Skip to content

Instantly share code, notes, and snippets.

View numlock1052's full-sized avatar

François Betscha numlock1052

View GitHub Profile
@numlock1052
numlock1052 / humhub-javascript-task-number.md
Last active November 4, 2023 05:52
Display the job number wherever it should be visible in HumHub without modifying the PHP code

image

To use this script open your HumHub with admin rights and go to:

# Top menu -> Administration -> Settings -> Advanced -> Statistics

Inside the "HTML tracking code" copy paste this code :

@numlock1052
numlock1052 / terminal-git-branch-name.md
Created January 13, 2020 15:37 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {