Monday, August 15, 2022

Top 7 Free Cyber Security Newsletters

The following is the list of the 7 free, most popular cyber security newsletters:
  1. The Hacker News
  2. SecurityWeek
  3. CSO
  4. SANS Newsletters
  5. WeLiveSecurity by ESET
  6. Cybersecurity Ventures
  7. Naked Security

Tuesday, August 09, 2022

[Solved] Error: No such keg: /usr/local/Cellar/gcc

If you are facing issues with Homebrew while installing or updating the GCC package (or any other module), follow this guide.

The error occurred for me recently during my periodic homebrew updates on my MacBook Pro.

devharsh@Devharshs-MacBook-Pro ~ % brew update && brew upgrade && brew cleanup                                                         

Already up-to-date.

Warning: Skipping gcc: most recent version 12.1.0 not installed

For some reason, I had a warning flashing up for GCC. So I tried to install the missing version.

devharsh@Devharshs-MacBook-Pro ~ % brew install -f gcc@12

Error: gcc 12.1.0_1 is already installed

To install 12.1.0, first run:

  brew unlink gcc

Which unsurprisingly did not work, so I tried unlinking it. 

devharsh@Devharshs-MacBook-Pro ~ % brew unlink gcc

Error: No such keg: /usr/local/Cellar/gcc

And this failed too, hence this post! After some troubleshooting, I could fix the issue.

[How To] Upgrade to Python 3.9 in Google Colab

Google Colaboratory, or “Colab” for short, is a product from Google Research. Colab allows anybody to write and execute arbitrary python code through the browser and is especially well suited to machine learning, data analysis, and education. More technically, Colab is a hosted Jupyter notebook service that requires no setup to use while providing access free of charge to computing resources, including GPUs.

By default, it starts the runtime with Python version 3.7. If you want to upgrade the version in your current notebook, then follow these steps in the given order:

1) !python --version
Python 3.7.13

2) !sudo apt-get update -y
Get:1 bionic InRelease [15.9 kB]
Hit:2 bionic InRelease
Get:3 bionic-cran40/ InRelease [3,626 B]
Get:4 bionic InRelease [15.9 kB]
Hit:5 bionic InRelease
Get:6 bionic-security InRelease [88.7 kB]
Hit:7 bionic InRelease
Get:8 bionic-updates InRelease [88.7 kB]
Get:9 bionic/main Sources [2,077 kB]
Ign:10  InRelease
Get:11  InRelease [1,581 B]
Hit:12  Release
Get:13 bionic/main amd64 Packages [1,064 kB]
Get:14 bionic-backports InRelease [74.6 kB]
Get:15 bionic/main amd64 Packages [45.3 kB]
Get:16  Packages [902 kB]
Get:18 bionic-security/main amd64 Packages [2,905 kB]
Get:19 bionic-updates/universe amd64 Packages [2,306 kB]
Get:20 bionic-updates/main amd64 Packages [3,336 kB]
Get:21 bionic-security/universe amd64 Packages [1,528 kB]
Fetched 14.5 MB in 9s (1,578 kB/s)
Reading package lists... Done