-
log subdir
find . -type f \( -name “*.log” \) -exec tail -f “$file” {} +
-
Node cannot be added to the GPFS cluster
There is an indication leading you to the conclusion that a node cannot be added to a cluster and steps to follow to correct the problem. That indication is: You issue the mmcrcluster or mmaddnode command and receive the message: 6027-1598 Node nodeName was not added to the cluster. The node appears to already belong to a GPFS™ cluster. Steps […]
-
Turn any Linux host into proxy hosts very easy
you can turn any Linux computer into a SOCKS5 (and SOCKS4) proxy in just one command: ssh -N -D 0.0.0.0:1080 localhost And it doesn’t require root privileges. The ssh command starts up dynamic -D port forwarding on port1080 and talks to the clients via SOCSK5 or SOCKS4 protocols, just like a regular SOCKS5 proxy would! The -N option makes sure ssh stays […]
-
untar multiple files in one command
ls *.tar | xargs -i tar xf {}
-
change http to https in NGINX
According to nginx pitfalls, it’s slightly better to omit the unnecessary capture, using $request_uriinstead. In that case, append a question mark to prevent nginx from doubling any query args. server { listen 80; server_name signup.mysite.com; rewrite ^ https://$server_name$request_uri? permanent; }
-
Aggregation is the New Virtualization: How Microservices Are Taming Distributed Computing
Virtualization has been a key driver behind every major trend in software, from search to social networks to SaaS, over the past decade. In fact, most of the applications we use — and cloud computing as we know it today — would not have been possible without the server utilization and cost savings that resulted […]
-
Command line view webcam from ubuntu to browser
This took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked. First install motion: ~> sudo apt-get install motion Then create a config file: ~> mkdir ~/.motion ~> nano ~/.motion/motion.conf In it, the bare minimum to run a web server and view it […]
-
loop mount an image
sudo losetup /dev/loop0 /path/to/disk.img mkdir /mnt/image sudo mount /dev/loop0 /mnt/image
-
Bonnie++ cannot open file
bonnie++ Can’t open file While running bonnie++ , you may face this error : # ./bonnie++ -d /mnt -s 8056M -n 0 -m TEST_IO -f -b -u username Using uid:1000, gid:1000. Can’t open file ./Bonnie.3497.000 You need to add -u root:root , to the command line like : ./bonnie++ -d […]
-
adding custom route in mac osx
sudo route -n add -net 172.19.1.0/24 10.10.21.102