Kick off VSCode for C and GTK 3.
c_cpp_properties.json
{
"configurations": [
{
"name": "C Linux GTK3",| 1. # create new .py file with code found below | |
| 2. # install ollama | |
| 3. # install model you want “ollama run mistral” | |
| 4. conda create -n autogen python=3.11 | |
| 5. conda activate autogen | |
| 6. which python | |
| 7. python -m pip install pyautogen | |
| 7. ollama run mistral | |
| 8. ollama run codellama | |
| 9. # open new terminal |
| # ~/.config/starship.toml | |
| [battery] | |
| full_symbol = "🔋" | |
| charging_symbol = "🔌" | |
| discharging_symbol = "⚡" | |
| [[battery.display]] | |
| threshold = 30 | |
| style = "bold red" |
| { | |
| "terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe", | |
| "terminal.integrated.shellArgs.windows": ["--login"], | |
| "terminal.integrated.env.windows": { | |
| "CHERE_INVOKING":"1", | |
| "MSYSTEM":"MINGW64" | |
| } | |
| } |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int main(void){ | |
| while(1){ | |
| int command; | |
| printf("Commands...\n"); | |
| printf("Press..\n"); | |
| printf("1. Show List of files\n"); |
This approach uses update-alternatives to manage GCC and LLVM/CLANG C/C++ compiler toolchains.
Although tested on Linux Mint 18.3, this approach should work on any Debian based distro or for that matter any Linux distro with update-alternatives support, provided the packages are installed correctly.
There are 3 files
gcc-alternatives.sh installs GCC versions 5/6/7 and sets up alternatives for gcc/g++/cpp/gfortran.llvm-clang-alternatives.sh installs LLVM and CLANG versions 4/5 and sets up alternatives for various LLVM and CLANG programs including clang and clang++.cc-alternatives.sh sets up alternatives for the cc, cxx, and the ld commands. This script can be used to change systemwide default compiler/linker combination to either GCC or CLANG.Once these scripts are run you can change the system GCC/CLANG versions by running sudo update-alternatives --config gcc|clang. To change the default compiler/linker combo used by t
This is some red text.
rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)