Skip to content

Instantly share code, notes, and snippets.

@reilg
reilg / publish.sh
Created March 12, 2025 10:31 — forked from shuckster/publish.sh
Publish a new version of an npm package
#!/bin/sh
#
# Publish a new version of an npm package.
#
# - Runs linter, tests
# - Asks if next version is major, minor or patch
# - Calculates the next version from this
# - Checks that the CHANGELOG references the new version
# - Tags/publishes the new version via git/npm
@reilg
reilg / xbacklightmon.sh
Created December 15, 2019 19:15
XPS 15 7590 - Backlight Script
#!/bin/bash
#use LC_NUMERIC if you are using an European LC, else printf will not work because it expects an comma instead of a decimal point
LC_NUMERIC="en_US.UTF-8"
#Exit with 1 if $DISPLAY env isn't set. Helps when using the start up script below
[ -z "$DISPLAY" ] && exit 1;
# modify this path to the location of your backlight class
path=/sys/class/backlight/intel_backlight