Guillaume Papin(@Sarcasm) has a thorough article about compilation databases.
% mkdir build
% (cd build; cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=YES ..)
% ln -s build/compile_commands.json| #!/usr/bin/bash -xe | |
| cat <<EOF > "${HOME}/.config/systemd/user/zoom.slice" | |
| [Slice] | |
| AllowedCPUs=0-4 | |
| MemoryHigh=6G | |
| EOF | |
| cat /usr/share/applications/Zoom.desktop | sed -E 's#^(Exec=).*$#Exec=/usr/bin/systemd-run --user --slice=zoom.slice /opt/zoom/ZoomLauncher#' > "${HOME}/.local/share/applications/Zoom.desktop" |
Guillaume Papin(@Sarcasm) has a thorough article about compilation databases.
% mkdir build
% (cd build; cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=YES ..)
% ln -s build/compile_commands.json| Prerequisite : Public Key Setup is required for using this setup | |
| 1. First open ~/.ssh/config file and add these lines filling the appropriate details. | |
| This will setup a netcat tunnel through jump server which will forward all your traffic to mail machine. | |
| ``` | |
| Host <HOSTNAME> | |
| User <USERNAME> | |
| HostName <HOSTNAME> | |
| ProxyCommand ssh <JUMPSERVER-USER>@<JUMPSERVER-ADDR> nc %h %p 2> /dev/null | |
| ``` | |
| 2. ssh -v -D :port: :username:@:hostname: |
Requirements VcXsrv, i3wm in wsl.
The three files below must be stored in the same directory (%UserProfile%\Desktop).
| [Presets] | |
| Preset0=Classical | |
| Preset1=Club | |
| Preset2=Dance | |
| Preset3=Flat | |
| Preset4=Live | |
| Preset5=Laptop Speakers/Headphone | |
| Preset6=Rock | |
| Preset7=Pop |
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |