bash – Noobient
Menu

Tag: bash

Display files without empty lines or comments

Paste the following in your shell: cat << EOF >> ~/.bashrc alias nocom=’sed -e “/^\s*#/d” -e “/^\s*$/d”‘ EOF This sets up an alias, so that you don’t have to memorize it (which is impossible to begin with). If you want this to be available for all new users, also add this to the /etc/skel/.bashrc file […]

Updating GitBucket Avatars from Intranet Website

Let’s assume you have a corporate site where you host profile pictures of your colleagues in the same naming scheme as they log into your GitBucket instance. Because unified login via LDAP is cool. In this case I have good news for you: I wrote a simple, slightly hackish script which allows you to pull […]