This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux [2023/10/22 19:11] – jotasandoku | linux [2025/10/25 14:23] (current) – jotasandoku | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| note that tar by itself just packetize not compress. We need flags as z compress. ALSO, tar is oriented ro ' | note that tar by itself just packetize not compress. We need flags as z compress. ALSO, tar is oriented ro ' | ||
| - | tar -cvf vmx.tar / | + | tar -czfv vmx.tar.gz / |
| + | tar -xzvf ansiblepi.tar.gz | ||
| tar -xvf docs.tar # to extract it, folder tree same but from the point we are | tar -xvf docs.tar # to extract it, folder tree same but from the point we are | ||
| tar -xvf cvd.tar.gz * | tar -xvf cvd.tar.gz * | ||
| Line 536: | Line 537: | ||
| git diff origin/ | git diff origin/ | ||
| # Choose to merge or rebase (I prefer rebase) | # Choose to merge or rebase (I prefer rebase) | ||
| - | git rebase | + | |
| + | | ||
| + | ! The above, rebases ‘feature’ into main. But IMPORTANT, I am still in feature and need to merge it: | ||
| + | git checkout main | ||
| + | git merge feature | ||
| | | ||
| # And if either I or somebody else makes a commit that breaks something: | # And if either I or somebody else makes a commit that breaks something: | ||
| Line 557: | Line 562: | ||
| - | \\ | + | ---- |
| - | GITLAB NOTES:\\ | + | GITHUB NOTES |
| + | |||
| + | [[https:// | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | GITLAB NOTES: | ||
| If we have merged in gitlab but there' | If we have merged in gitlab but there' | ||
| Line 1010: | Line 1024: | ||
| ==== Coding Assistants ==== | ==== Coding Assistants ==== | ||
| === Captain Stack === | === Captain Stack === | ||
| + | //find binary search in javascript. << stop just after the dot and wait for the suggestions | ||
| + | |||
| + | **Use Alt+] and Alt+[ to move through suggestions** | ||
| === Github Copilot === | === Github Copilot === | ||
| Line 1015: | Line 1032: | ||
| * Suggestions | * Suggestions | ||
| * Ask with a hash and then really helps more hashes and ''# | * Ask with a hash and then really helps more hashes and ''# | ||
| + | * To move between suggestions there are key shortcuts [[https:// | ||
| * Unit tests | * Unit tests | ||
| Line 1053: | Line 1071: | ||
| !The below (like .pre-commit-config.yaml) **needs to be run in every new repo we want pre-commit to be!** | !The below (like .pre-commit-config.yaml) **needs to be run in every new repo we want pre-commit to be!** | ||
| pre-commit install | pre-commit install | ||
| - | pre-commit | + | pre-commit |
| | | ||
| And be sure both .gitignore an .pre-commit-config.yaml are added to the repo: | And be sure both .gitignore an .pre-commit-config.yaml are added to the repo: | ||
| Line 1704: | Line 1722: | ||
| (in cron (TBC)): | (in cron (TBC)): | ||
| + | | ||
| + | |||
| + | ---- | ||
| + | ===== UBUNTU 22 - NEW INSTALLS ===== | ||
| + | ** Important **: During installation, | ||
| + | Example : santosj uid: 1010 ; gui: 1010 | ||
| + | |||
| + | ==== NFS ==== | ||
| + | For the installation (server and client), follow this link: [[https:// | ||
| + | |||
| + | In the server Add a new line like this to ''/ | ||
| + | / | ||
| + | systemctl restart nfs-server | ||
| + | exportfs -av | ||
| + | |||
| + | In the server as well We create the same user as the client (with the same uid). Then we add that user to the '' | ||
| + | useradd -u 1010 santosj | ||
| + | usermod -a -G pi santosj | ||
| + | chmod -R ug+rw / | ||
| + | | ||
| + | In the client we create the mounting folder, we add fstab for automount and also can try to mount in manually | ||
| + | sudo cat /etc/fstab | ||
| + | 192.168.0.112:/ | ||
| + | # | ||
| + | (santosj)$ mkdir nfs | ||
| + | (santosj)$ mount 192.168.0.112:/ | ||
| + | | ||
| + | |||
| + | ==== Audio ==== | ||
| + | If headphones connect but no audio, remove pulseaudio and install new pipewire [[https:// | ||
| + | |||
| + | |||
| + | |||