Problem scenario You want to install Puppet Master version 6.x on a RHEL version 8.x server. What do you do?
Solution Run this script:
#!/bin/bash
# Written by continualintegration.com
yum -y update
rpm -ivh https://yum.puppetlabs.com/puppet6/puppet6-release-el-8.noarch.rpm
# rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-8.noarch.rpm
# To install a legacy version of Puppet (3.x), comment out the first rpm stanza and uncomment out the second.
yum -y install puppetserver
ln -s /opt/puppetlabs/puppet/bin/puppet /usr/bin/puppet
Problem scenario The threads of the door frame hinges in your house have been stripped. The door latch is not secure to the frame now. Is there an affordable method to secure the door latch to the frame/wall?
Solution Push a part of a cleanex or tissue paper into the hole. Use a skinny screwdriver or ice pick to jam the tissue paper into the hole. Now the screw should stay in the hole as it will hold on to the tissue paper after it is screwed in.
Problem scenario You have a SATA hard drive. You want to copy data to a laptop via USB. What should you do?
Solution Use a Vantec disk reader. (With IDE disk drives and Vantec disk readers for IDE drives, the disk reader can take 15 minutes before data is available.)
Question You have heard the terms cognitive therapy, cognitive behavioral therapy, and behavioral therapy. What are the differences among these three things?
Answer "If one were to view both behavior and cognitive therapies as opposite ends of a spectrum, then cognitive-behavioral theory is somewhere in between. " Taken from http://www.drkot.com/whatare.html
Cognitive therapy involves a professional listening and understanding the beliefs of a patient. It may involve the patient cultivating new opinions that are constructive and valid as certain maladaptive cognitions can harmful to the patient.
Cognitive behavioral therapy subsumes cognitive therapy. To learn about the differences between CT and CBT, see these two postings:
Behavioral therapy involves modifying the environment. Behavioral therapy has nothing to do with changing attitudes to more valid, constructive beliefs. An example of behavioral therapy to treat insomnia would be to control the amount of stimulus received in the bedroom (taken from page 12 of Cognitive Behavioral Treatment of Insomnia).
"No small art is it to sleep: it is necessary for that purpose to keep awake all day." (Taken from page 36 of Thus Spake Zarathustra (Squid Classics 2017)).
Problem scenario You are using Debian or Ubuntu Linux and you want to enter the PostgreSQL command prompt. What do you do?
Solution Run these commands:
sudo su postgres psql
You are done. Optionally you can run these passwords if you want: postgres=# create user jdoe with password 'goodpassword'; postgres=# create database foobar with OWNER=jdoe;
Problem scenario You know Oracle VirtualBox on Linux has access to different network interfaces. The names of these NICs needs to be correct for some purpose of yours. How do you view or list this (for the purposes of creating a Vagrantfile)?
Solution Run this command if you are running Unix/Linux: VBoxManage list bridgedifs
Problem scenario You want to change the knock code itself or totally disable it on your Android tablet or phone. What do you do?
Solution To remove the knock code: Go to Settings -> Display -> Lock Screen -> Select screen lock Enter the knock code and click "next". Click on "None". You are done.
To change the knock code: Go to Settings -> Display -> Lock Screen -> Select screen lock Enter the knock code and click "next". Enter the knock code and click "Continue". Repeat the above step. You are done.