Skip to content

Instantly share code, notes, and snippets.

View PramithaMJ's full-sized avatar
🎯
Unleashing the power of code to shape my life, one line at a time! ✨

Pramitha Jayasooriya PramithaMJ

🎯
Unleashing the power of code to shape my life, one line at a time! ✨
View GitHub Profile
@PramithaMJ
PramithaMJ / ns3-config-error.md
Created March 14, 2025 17:30
NS-3 Configuration Error on macOS

NS-3 Configuration Error on macOS

Error Message

❯ ./ns3 build
You need to configure ns-3 first: try ./ns3 configure
❯ ./ns3 configure --build-profile=debug --enable-examples --enable-tests
CMake Error: Could not create named generator Visual Studio 17 2022

Generators
@PramithaMJ
PramithaMJ / ompenmp-mac.txt
Last active March 14, 2025 17:32
If the compiler can't find the omp.h header file in MacOS
find /opt/homebrew -name "omp.h"
brew list libomp
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -L/opt/homebrew/opt/libomp/lib -lomp omp_hello.c -o hello
./hello
or
/opt/homebrew/bin/gcc-14 -fopenmp omp_hello.c -o hello
max virtual memory areas: Elasticsearch is failing a bootstrap check
sudo sysctl -w vm.max_map_count=262144
Install sonarQube
```bash
docker pull sonarqube
```
@PramithaMJ
PramithaMJ / gist:502d447627473b5ef9dfbf278d2ea83a
Created April 15, 2024 07:18
Jenkin gpg: no valid OpenPGP data found.
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc
sudo apt-key add -
git config --global http.version HTTP/1.1
git push
git config --global http.version HTTP/2
git config --global http.proxy http://10.50.225.222:3128
git config --global https.proxy https://10.50.225.222:3128
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config set https-proxy http://10.50.225.222:3128
npm config set proxy http://10.50.225.222:3128
npm config delete proxy
npm config delete https-proxy
vscode proxi
http://10.50.225.222:3128