# subscription-manager repos –enable=rhel-7-server-rpms # subscription-manager repos –enable=rhel-7-server-extras-rpms # subscription-manager repos –enable=rhel-7-server-optional-rpms yum install docker reboot the machinedocker yum install podman skopeo buildah -yRead More →

First , you need to share your files in MacOS Do the following things in redhatyum install samba-client cifs-utils edit this file : /etc/fstabad this line //192.168.1.6/Documents /data cifs user=user,password=password 0 0 then run: mount -a if you receive the error mount error(95): Operation not supported Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) then change the line to (vers=3.0) //192.168.1.6/Documents /data cifs user=user,password=password,vers=3.0 0 0Read More →

A colleague just came to me and asked me for a solution to hide “Create New Dashboard” button. The reason behind this is that we have some splunk dashboard, we just want the user to read it, we don’t want them to do any search on our Search Head, we have some roles to hide all search function, but the “Create New Dashboard” is like a backdoor – we want to avoid this. After digging through the source code, we found that this button is generated from this file: /opt/splunk/share/splunk/search_mrsparkle/exposed/build/pages/enterprise/dashboards/dashboards.js The location of this file might be different depending on your Splunk version , myRead More →

When i run multiple sitespeed docker , i faced this error [2020-04-02 22:14:11] INFO: Versions OS: linux 3.10.0-1062.1.2.el7.x86_64 nodejs: v10.16.0 sitespeed.io: 10.0.1 browsertime: 6.0.1 coach: 4.0.1 [2020-04-02 22:14:11] ERROR: Error: _XSERVTransSocketUNIXCreateListener: …SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running (EE) Fatal server error: (EE) Cannot establish any listening sockets – Make sure an X server isn’t already running(EE) at ChildProcess.self._process.on (/usr/src/app/node_modules/@cypress/xvfb/index.js:189:23) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Socket.stream.socket.on (internal/child_process.js:389:11) at Socket.emit (events.js:198:13) at Pipe._handle.close (net.js:606:12) To fix this i have to add 2 parameters to sitespeed command: –browsertime.xvfb “true” –browsertime.xvfbParams.display “$(((RANDOM % 1000)+100))” It turned out that the above fix will kill the video capture. AfterRead More →

I recently see a good deal from Staples for a Dell monitor – it’s 50% off , unfortunately it’s out of stock very soon. I can’t visit it everyday, so let do some funny stuff , writing a simple command to alert me when it’s in stock again. Here is what it comes with curl -s -A “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36” https://www.staples.com/dell-24-led-montior-hdmi-2-x-watt-speakers-1920-x-1080-s2419h/product_24330114 | grep “This item is out of stock for delivery” || echo “https://www.staples.com/dell-24-led-montior-hdmi-2-x-watt-speakers-1920-x-1080-s2419h/product_24330114” | mail -a “From: [email protected]” -s “Staples:Dell S2419H 24 LED Monitor is available” [email protected] #this is my cronjob 1 * *Read More →

The most common problem with all Mac machine is overheating. if you are using a Macbook Pro or Imac , you sometime feel it’s too hot. This might result in killing your graphic card. It’s very expensive to replace that card or unable to replace it ( you have to replace the whole mother board). I have experienced this with my Macbook Pro 2011 and IMac 2011, they are all dead after sometimes because the overheat. Since then, i need to find a way to monitor my cpu temperature and adjust the fan speed to cool down the cpu. For a normal user, i suggestRead More →