Skip to content

Instantly share code, notes, and snippets.

View ripleymj's full-sized avatar

Mike Ripley ripleymj

  • 12:11 (UTC -04:00)
View GitHub Profile
@ripleymj
ripleymj / bash4thewin.md
Created June 8, 2024 19:16 — forked from dan4thewin/bash4thewin.md
Bash idioms and tools

This page collects a set of bash scripting idioms and tools for easy reference.

Improved Error Detection: set -e and set -u

With -e (errexit), bash exits immediately if an unchecked command exits with a nonzero value. A checked command is part of a while, until, if, elif, or an expression with && or ||. Everything else is unchecked. For a pipeline, only the last command is considered. Adding "or no-op", || :, ensures a command is safe, e.g., do-something | grep 'may_not_match' || :. NB. Calling a bash function in a checked context effectively disables -e for all commands in the function. Use the optional shellcheck, check-set-e-suppressed, to alert on this.

sudo raspi-config
#Interfacing options -> Enable SPI and I2C
Python2
apt-get install python-bme680 python-smbus python-numpy
apt-get install python-dev python-pip libfreetype6-dev libjpeg-dev build-essential libopenjp2-7 libtiff5
Python3
apt-get install python3-bme680 python3-smbus python3-numpy
apt-get install python3-dev python3-pip libfreetype6-dev libjpeg-dev build-essential libopenjp2-7 libtiff5
@ripleymj
ripleymj / applyPT856Upgrade.ps1
Created February 25, 2019 18:14 — forked from iversond/applyPT856Upgrade.ps1
Powershell script to run the PeopleTools 8.56 Upgrade job headlessly. A few assumptions with the script: All manual steps are marked as complete.; your PT Client installs are at c:\client-8.xx.xx
<#PSScriptInfo
.SYNOPSIS
Apply the PeopleTools 8.56 Upgrade Project
.DESCRIPTION
Automate the Change Assistant job that applies the PTU856 project to a database.
.PARAMETER DATABASE
Which database to encrypt the password
.PARAMETER PT_VERSION
PeopleTools version to apply
.PARAMETER CA_BASE
/opt/eclipse/eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://eclipse-cs.sourceforge.net/update/ -installIU net.sf.eclipsecs.feature.group
ripleymj@ripleymj-VirtualBox:~$ cat ./eclipse-workspace/.metadata/.plugins/net.sf.eclipsecs.core/checkstyle-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle-configurations file-format-version="5.0.0" default-check-configuration="Molloy2">
<check-configuration name="Molloy2" location="/home/ripleymj/CS149-Checkstyle.xml" type="external" description="">
<additional-data name="protect-config-file" value="false"/>
</check-configuration>
</checkstyle-configurations>
Cedar Hills Group, Inc. - PeopleSoft Experts
http://www.cedarhillsgroup.com/blog
http://www.cedarhillsgroup.com/articles.xml
Graham's PeopleSoft Blog (Graham Smith)
http://i-like-trains.blogspot.com/
http://i-like-trains.blogspot.com/feeds/posts/default
leanITdesigns
https://leanitdesigns.wordpress.com/