Skip to content

Instantly share code, notes, and snippets.

View hansogj's full-sized avatar

Hans Ole Gjerdrum hansogj

  • Systek AS
  • Nesodden, Norway
View GitHub Profile
@hansogj
hansogj / npmu
Last active July 24, 2024 07:53 — forked from lebbe/npmu
Automatically perform npm updates and make it a pull request
#!/bin/bash -x
# Update all minor and patch versions of your own dependencies, and thereafter
# update all transitive dependencies. Use the JIRA-number as first and only argument.
# Put this, for instance, in /usr/bin and make it executable:
#
# sudo mv npmu /usr/bin/npmu
# sudo chmod 744 /usr/bin/npmu
function npm-clean-force-install() {
@hansogj
hansogj / mvncolor.sh
Last active December 17, 2015 18:49 — forked from katta/mvncolor.sh
#!/usr/bin/env bash
# Formatting constants
export BOLD=`tput bold`
export UNDERLINE_ON=`tput smul`
export UNDERLINE_OFF=`tput rmul`
export TEXT_BLACK=`tput setaf 0`
export TEXT_RED=`tput setaf 1`
export TEXT_GREEN=`tput setaf 2`
export TEXT_YELLOW=`tput setaf 3`