Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To make Pageant automatically run and load keys at startup: | |
| - Find the location of pageant.exe | |
| - Windows key + R to open the 'run' dialog box | |
| - Type: 'shell:startup' in the dialog box | |
| - Create a shortcut to the pageant.exe and put into this startup folder. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " An example for a vimrc file. | |
| " | |
| " Maintainer: Bram Moolenaar <Bram@vim.org> | |
| " Last change: 2008 Jul 02 | |
| " | |
| " To use it, copy it to | |
| " for Unix and OS/2: ~/.vimrc | |
| " for Amiga: s:.vimrc | |
| " for MS-DOS and Win32: $VIM\_vimrc | |
| " for OpenVMS: sys$login:.vimrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| readelf -n /usr/local/cuda/lib64/libcudart.so | |
| # ... Build ID: 70f26eb93e24216ffc0e93ccd8da31612d277030 | |
| # Open https://cudatoolkit-symbols.nvidia.com/libcudart.so/70f26eb93e24216ffc0e93ccd8da31612d277030/index.html to find out a filename | |
| wget https://cudatoolkit-symbols.nvidia.com/libcudart.so/70f26eb93e24216ffc0e93ccd8da31612d277030/libcudart.so.12.2.128.sym | |
| eu-unstrip /usr/local/cuda-12.2/targets/x86_64-linux/lib/libcudart.so.12.2.128 libcudart.so.12.2.128.sym –o /usr/local/cuda-12.2/targets/x86_64-linux/lib/libcudart.so.12.2.128 | |
| # Or deploy as symbol file | |
| cp libcudart.so.12.2.128.sym /usr/lib/debug/.build-id/70/f26eb93e24216ffc0e93ccd8da31612d277030.debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.brendangregg.com/perf.html | |
| # Install perf | |
| sudo apt install linux-tools-common | |
| sudo apt install linux-tools-generic | |
| sudo apt install linux-tools-`uname -r` | |
| # Remove restriction from recording kernel symbols | |
| echo 0 | sudo tee /proc/sys/kernel/kptr_restrict | |
| echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cstdlib> | |
| #include <iostream> | |
| #include <chrono> | |
| using std::chrono::steady_clock; | |
| using std::chrono::system_clock; | |
| constexpr inline std::chrono::seconds timeout1 = | |
| std::chrono::seconds(60 * 60); | |
| constexpr inline std::chrono::minutes timeout2 = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Configure | |
| cmake -Bbuild/release -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja -S. | |
| # Build | |
| cmake --build build/release --target program_exe | |
| # Test | |
| ctest --verbose --test-dir build/release/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Extracts the contents of a the_package.deb package into tmp | |
| dpkg-deb -R the_package.deb tmp | |
| ## Find a package for a file | |
| dpkg -S /usr/bin/ssh | |
| # Find a package dependencies | |
| apt-cache depends openssh-client | grep libssl3 | |
| # Find all packages dependent on libssl3 |