Skip to content

Instantly share code, notes, and snippets.

@fabnavigator
fabnavigator / README.md
Last active June 1, 2022 20:47
Bose SoundTouch dashboard remote control

This dashboard flow implements much of the SoundTouch control API. It sends GET and POST requests to your SoundTouch systems. It does not implement the WebSockets interface, but was specifically designed to work well without it.

Features:

  • Three volume settings (low, medium, and high) which can be configured per system.
  • Max volume level which can be configured per system.
  • System selection drop-down list.
  • Five preset buttons.
  • Mute, volume down, volume up, and three preset volume level buttons.
  • Previous track, next track, pause, play, and power buttons.
  • Shuffle settings.
Jenkins Best Practices
https://en.wikipedia.org/wiki/Continuous_integration<- Read this!
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Best+Practices
http://www.slideshare.net/andrewbayer/7-habits-of-highly-effective-jenkins-users
Set up version control of job configurations
Keep jobs simple! Don't put a ton of bash in each job. If a job needs to do something complex, put it in a script in GitHub and check it out as needed.
Use templated builders to simplify common tasks
Keep all scripts in version control - avoid running scripts that live on the Jenkins server filesystem
Don't install unnecessary plugins - plugins are often written by third parties and can interact with each other in strange ways
Use LDAP authentication if possible for traceability - avoid anonymous access
@dorentus
dorentus / 95-lolcat
Last active February 15, 2022 12:21
dynamically generated /etc/motd using fortune, cowsay & lolcat,save it as /etc/update-motd.d/95-lolcat.Google `pam_motd` or `update-motd` for more details of dynamically generated message-of-the-day.
#!/bin/bash
# see: http://blog.tomtung.com/2009/11/cowsay-fortune
# http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed
# https://github.com/busyloop/lolcat
# https://github.com/dorentus/mruby-lolcat-bin
#
# requires `fortune`, `cowsay`,
# and ruby gem `lolcat` or its mruby version equivalent
export LANG="en_US.UTF-8"