2016 Nebraska Cornhuskers Football Schedule
2016 Nebraska Cornhuskers Football Schedule: The 2016 Nebraska Cornhuskers Football Schedule with dates, times, TV network, and links to tickets.
CentOS7: HOWTO show running services
[root@tony ~]# systemctl --no-page -t service -a --state running --no-legend
auditd.service loaded active running Security Auditing Service
crond.service loaded active running Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
dovecot.service loaded active running Dovecot IMAP/POP3 email server
getty@tty1.service loaded active running Getty on tty1
gssproxy.service loaded active running GSSAPI Proxy Daemon
lvm2-lvmetad.service loaded active running LVM2 metadata daemon
NetworkManager.service loaded active running Network Manager
ntpd.service loaded active running Network Time Service
polkit.service loaded active running Authorization Manager
postfix.service loaded active running Postfix Mail Transport Agent
rsyslog.service loaded active running System Logging Service
sshd.service loaded active running OpenSSH server daemon
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-udevd.service loaded active running udev Kernel Device Manager
tuned.service loaded active running Dynamic System Tuning Daemon
vmtoolsd.service loaded active running Service for virtual machines hosted on VMware
wpa_supplicant.service loaded active running WPA Supplicant daemon
[root@tony ~]#
auditd.service loaded active running Security Auditing Service
crond.service loaded active running Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
dovecot.service loaded active running Dovecot IMAP/POP3 email server
getty@tty1.service loaded active running Getty on tty1
gssproxy.service loaded active running GSSAPI Proxy Daemon
lvm2-lvmetad.service loaded active running LVM2 metadata daemon
NetworkManager.service loaded active running Network Manager
ntpd.service loaded active running Network Time Service
polkit.service loaded active running Authorization Manager
postfix.service loaded active running Postfix Mail Transport Agent
rsyslog.service loaded active running System Logging Service
sshd.service loaded active running OpenSSH server daemon
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-udevd.service loaded active running udev Kernel Device Manager
tuned.service loaded active running Dynamic System Tuning Daemon
vmtoolsd.service loaded active running Service for virtual machines hosted on VMware
wpa_supplicant.service loaded active running WPA Supplicant daemon
[root@tony ~]#
Here's a fun little script using the Google Maps Geocoding API:
Awesome!
[pete@server1 ~]# cat latlong.sh
#!/bin/bash
if [[ -z $@ ]]; then
echo "Works better with an address..."
exit 1
fi
if [[ ! -x /usr/bin/curl ]]; then
echo "ERROR: Can't work without /usr/bin/curl"
exit 1
fi
if [ ! -x /usr/bin/xml2 ]; then
echo "ERROR: Please install package xml2 from the EPEL repo first."
exit 1
fi
address="$(echo $@ | sed 's/ /+/g')"
curl -s "http://maps.googleapis.com/maps/api/geocode/xml?address=${address}" \
-o /tmp/file.xml eval $(xml2 < /tmp/file.xml | tr '/, ' '___' | grep =) if [[ $_GeocodeResponse_status == "OK" ]]; then echo "Address: $(echo $address | sed 's/+/ /g')" echo "Lattitude: $_GeocodeResponse_result_geometry_location_lat" echo "Longitude: $_GeocodeResponse_result_geometry_location_lng" else echo "No results" fi exit 0 [pete@server1 ~]# ./latlong.sh 1600 Pennsylvania Ave, Washington, DC Address: 1600 Pennsylvania Ave, Washington, DC Lattitude: 38.8791981 Longitude: -76.9818437 [pete@server1 ~]#
Awesome!
Pete's Holiday Wish Lists for 2015
People have asked, so here it is for your Holiday shopping convinience:
Merry Christmas!
How to download all the RHEL7 docs
You can easily download all of the available Red Hat Enterprise Linux
7 Documentation (in PDF format) from a BASH prompt, by using the
following command line:
This is very handy when you are studying for RHEL 7 Certification (RHCSA/RHCE). All the answers to the test are in these docs... :-)
curl -s
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/ |
grep -o '[^"]*Linux/7/pdf[^"]*' | xargs -I{} wget
https://access.redhat.com{}This is very handy when you are studying for RHEL 7 Certification (RHCSA/RHCE). All the answers to the test are in these docs... :-)
Official RHEL7 Information
Here's a list of links to Official Red Hat Enterprise Linux information:
- Red Hat website provides the official documentation*,
- Red Hat Enterprise Linux blog gives general information,
- Red Hat Developer blog offers information to developers,
- Red Hat Community blog communicates about general events,
- Red Hat Security blog talks about security,
- Red Hat Storage blog discusses storage topics (Big Data, Ceph, GlusterFS, etc),
- Red Hat Services blog provides information for IT professionals,
- Red Hat customer portal provides a place for discussions on technical topics,
- Red Hat Certified Professionals Facebook account gives information about trainings and certifications,
- Red Hat LinkedIn group is a place to meet other Red Hat Certified Professionals,
- CentOS 7 blog offers the last news about CentOS 7,
- Oracle Linux provides an Administrator’s Guide for Release 7,
- Red Hat offers a RHEL 7 Network Performance Tuning Guide and a RHEL 7 Real-Time Installation Guide.
RHEL 7 Reference Cards
Red Hat provides these quick reference PDF files for their Red Hat Enterprise Linux products:
- Red Hat Systemd cheat sheet, Linoxide Systemd cheat sheet,
- Red Hat ip command cheat sheet,
- Red Hat yum command cheat sheet,
- RHEL 5/6/7 cheat sheet, RHEL 5/6/7 common administrative commands.
How to delete blank rows in MS Excel
How to quickly and easily delete all blank rows from an Excel Spreadsheet:
http://www.howtogeek.com/206696/how-to-quickly-and-easily-delete-blank-rows-and-columns-in-excel-2013/
http://www.howtogeek.com/206696/how-to-quickly-and-easily-delete-blank-rows-and-columns-in-excel-2013/
How to write a shell script to ensure only one instance of the script runs for each user.
In a BASH Script:
Start by determining a name for the lock file. In this case, the lock file is generated by suffixing a common name with the username of the current user. Then, check if the lock file exists and if the PID contained within the lock file is running. If it is, exit with a message.
Create a trap to remove the lock file on a clean exit, or unclean exits (any exit with the signal
LOCKFILE=/tmp/lock-`whoami`
if [ -e ${LOCKFILE} ] && kill -0 `cat ${LOCKFILE}`; then
echo "Already running!"
exit 1
fi
trap "rm -f ${LOCKFILE}; exit" INT TERM EXIT
echo $$ > ${LOCKFILE}
Start by determining a name for the lock file. In this case, the lock file is generated by suffixing a common name with the username of the current user. Then, check if the lock file exists and if the PID contained within the lock file is running. If it is, exit with a message.
Create a trap to remove the lock file on a clean exit, or unclean exits (any exit with the signal
INT or TERM). Finally, if the script has not exited yet, create the lock file, and store the PID of the current process ($$) in it.
Subscribe to:
Posts (Atom)



