How to install PhantomJS on Ubuntu 22.10

PhantomJS is a headless web browser for automating web page interactions. To install PhantomJS on Ubuntu 22.10, you can follow these steps: Update your system packages with sudo apt update && sudo apt upgrade Install the required packages with sudo apt install build-essential chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev Download the PhantomJS binary file from its official website with wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 Extract the file to /usr/local/share/ with sudo tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/ Create a symbolic link to the binary file with sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin Verify the installation with phantomjs --version

2023年4月27日 · 1 分钟 · 94 字 · Me

How to delete all files containing string in Linux

find -type f -name '*string*' -delete This command will delete all files whose filenames contain the string string. The * character is a wildcard that matches any number of characters. The -type f option tells find to only look for files, not directories. The -delete option tells find to delete the files it finds.

2023年4月27日 · 1 分钟 · 54 字 · Me

Collaboration in a DevOps Team

DevOps is a philosophy that emphasizes collaboration between development and operations teams. The goal of DevOps is to speed up the delivery of software while maintaining high levels of quality and security. Collaboration is key to the success of a DevOps team. One of the most important ways in which development and operations teams can collaborate is through the use of shared tools and platforms. These tools and platforms allow teams to share information and communicate effectively, which is critical for achieving the goals of DevOps. For example, a common platform for development and operations teams is a source code management system, such as Git. This system allows teams to collaborate on code and track changes, making it easier to identify and resolve issues. ...

2023年1月27日 · Shafiq Alibhai

Memento Mori

Memento Mori refers to the philosophical reminder of death’s inevitability. You could leave life right now. Let that determine what you do and say and think. It helps you remember the good things without arrogance and to let the bad things go with indifference. You control whether you waste time getting upset by things. And whether you waste time taking things personally.

2022年8月25日 · Shafiq Alibhai

Amor Fati

Amor fati is a phrase that may be translated as “love of one’s fate”. It is used to describe an attitude in which one sees everything that happens in one’s life, including suffering and loss, as good or, at the very least, necessary. You take what you can from life. You use it as fuel. You become better from it. You become improved by it. Make the most of it. Be better for it having happened.

2022年8月24日 · Shafiq Alibhai

You don't have to be crazy to live on Earth. But to some it helps to be.

You don’t have to be crazy to live on Earth. But to some it helps to be.

2022年7月20日 · Shafiq Alibhai

How to Resolve "Cannot Unregister the Machine While It Is Locked" Error in Vagrant

When working with Vagrant, a tool for building and managing virtual environments, you may encounter an error message that reads “Cannot unregister the machine while it is locked.” This is often accompanied by a block of error messages and command output, as shown below: vagrant destroy default: Are you sure you want to destroy the 'default' VM? [y/N] y ==> default: Destroying VM and associated drives… There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. ... VBoxManage: error: Cannot unregister the machine 'CnC_default_1643660523119_45689' while it is locked ... This error is usually thrown when attempting to destroy a Vagrant virtual machine (VM) using the vagrant destroy command. It signifies that the virtual machine is in a locked state, preventing it from being unregistered and deleted. ...

2022年2月1日 · Shafiq Alibhai

How to get a remote server SSL certificate

openssl s_client -connect {HOSTNAME}:{PORT} -showcerts

2021年6月15日 · Shafiq Alibhai

No good deed ever goes unpunished.

“No good deed ever goes unpunished.” Sometimes when you try to do something good or helpful, it can backfire and you end up in trouble or face negative consequences, sadly, even when you have the best intentions. This can happen even when you are trying to be kind or helpful towards those closest to us, such as our parents. It’s an unfortunate reality that good deeds don’t always result in positive outcomes.

2021年5月21日 · Shafiq Alibhai

Whenever you feel like criticizing any one, just remember that all the people in this world haven't had the advantages that you've had.

Whenever you feel like criticizing any one, just remember that all the people in this world haven’t had the advantages that you’ve had.

2021年5月20日 · Shafiq Alibhai