Posts

My ToDo List for 2024 (daily updates)

waffarx cash back

Go language vs V Language

Go and V are two programming languages that have been gaining traction in recent years. Both languages are designed to be simple, fast, and efficient, but they have some key differences that make them suitable for different types of projects. In this article, we’ll compare Go and V to help you decide which language is best for your project. Go is a statically-typed language created by Google in 2009. It was designed to be a fast and efficient language for developing large-scale applications.

Open file via TextEdit program in Mac OS Terminal

Using open command doesn’t fulfil this job. So we need to use another command. We can use open -a TextEdit filename.ext for example open -a TextEdit pin.svg. This command will open the file in TextEdit program in Mac OS. We can use another flag with the open command to achieve the same goal. The command is open -e filename so we can use open -e /Users/mbp/Desktop/work/VectorAndClipart/pin.svg to open the pin.svg file in the Mac OS graphical text editor TextEdit.

ssh Handshake Failed Unable to Authenticate | Github Actions

I have set up the github action to deploy laravel website using appleboy ssh-action but all actions failed with this weird error message. 2022/09/03 23:46:24 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain The fix is simple. just change the permission of authorized-keys by this command. chmod 700 ~/.ssh/authorized_keys If it works, share it with a friend or colleage.

How to get your Mac's serial number?

Every Mac device has a serial number that tells its unique story. Mac serial numbers can show information such as purchase, manufacturing, or configuration details. However, they can also be a security risk when left unprotected. Depending on if you can access the device, are logged into your Apple account, or still have the original packaging, there are several ways to check your Mac’s serial number. Check the Underside of Your Mac 🔗 Serial numbers are printed or engraved on the underside of your iMac, MacBook, or Mac Mini.

10 Things You Must Do After Buying a New Mac

Set Up Your Apple ID 🔗 When you set up your Mac, you’re required to sign in to your Apple account. If you skipped it earlier, now is the time to do it via the Apple menu > System Preferences > Sign In. You can’t use the App Store, download updates, or use iCloud without logging into an Apple ID, so you definitely should. Activate Service and Support Coverage 🔗 A key thing to do is activate your Mac’s Service and Support Coverage.

Best Software Tools and Projects Written in Go Language

Hugo 🔗 Hugo is one of the most popular open source static site generators out there. Rinse and repeat in plain English, HUGO is a framework for building websites quickly. Over 29k live websites are built with HUGO and Wappalyzer reports that Hugo serves almost 50% of the static sites. It is hugely popular with public sector web developers and notable US government sites include vote.gov and digital.gov . Oh and guess what, Kubernetes’ own site is built using HUGO !

How to add search to a WordPress theme ?

adding search box to header.php 🔗 We would like to add that search field in the upper right area of the site, so what theme file do you think we might target to make modifications? That’s right, we’ll need to open up the header.php file and figure out a way to add some search functionality. We can do this with the built-in get_search_form() function, and also adding just a bit of CSS styling rules to the style.

How to Save Mac Screenshots as JPG, GIF, PDF, and Other Formats ?

When you press Cmd + Shift + 3 or Cmd + Shift + 4 to take a screenshot on Mac, it saves the file in PNG format. But if you can make Mac screenshots save automatically in other formats such as JPG, GIF, TIFF, HEIC, or even PDF. change screenshot image format in Terminal 🔗 Open Terminal from the Application > Utilities folder, or use Spotlight to open it. To save Mac OS screenshots in JPG format/extension, copy this command and paste it on your Terminal and click Enter.

How to see pip package sizes installed?

Use this command to see installed pip packages sorted by their descending order of sizes. pip list | tail -n +3 | awk '{print $1}' | xargs pip show | grep -E 'Location:|Name:' | cut -d ' ' -f 2 | paste -d ' ' - - | awk '{print $2 "/" tolower($1)}' | xargs du -sh 2> /dev/null | sort -hr If your installed pip is pip3 or pip3.7 or pip3.

How can I install pyrit on Ubuntu?

The pyrit package was last available for Ubuntu 18.04 LTS at pyrit version 0.4.0. But you can install it on Ubuntu 20.04 LTS and Ubuntu 22.04 LTS by manual package download using those commands. cd ~/Downloads wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pyrit/pyrit_0.4.0-7.1build2_amd64.deb sudo apt-get install ./pyrit_0.4.0-7.1build2_amd64.deb If you need to install the latest version of pyrit, you can get it from Github using these commands. sudo apt-get install python3-scapy libssl-dev zlib1g-dev libpcap0.8-dev python2-dev python-is-python2 cd ~/Downloads wget -c https://github.