Skip to content

Instantly share code, notes, and snippets.

View mrprajesh's full-sized avatar
😎
Busy coding 🥇

Rajesh Pandian M mrprajesh

😎
Busy coding 🥇
View GitHub Profile
@denguir
denguir / cuda_install.md
Last active May 8, 2025 16:23
Installation procedure for CUDA / cuDNN / TensorRT

How to install CUDA / cuDNN / TensorRT on Ubuntu

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@jmftrindade
jmftrindade / copilot_neovim.md
Last active March 23, 2023 02:22
Install + setup github Copilot for Neovim on Ubuntu

Assumes:

  1. You already have access to github's Copilot (Copilot Chat is not yet available for neovim as of Mar 22nd 2023).
  2. Ubuntu 20.04+ (should work for other Debian distros as well).
  3. If you were using vim before, that your .vimrc does not rely on features that are not supported by neovim. I use powerline and YouCompleteme for vim, which don't vibe with neovim, so I had to make a couple of changes to my .vimrc. Take a look at this commit for an example on how to do that.

Step 1 - Install Neovim

Docs

@dougallj
dougallj / 0-readme.txt
Last active February 26, 2025 08:11
Intel/AGX ternary logic optimisation tables (VPTERNLOGD -> AGX/x86/BMI/SSE2)
Usage: evaluate a ternary bitwise function with the values a=0xf0, b=0xcc, c=0xaa.
On AVX-512 you can pass the result directly to VPTERNLOGD. On other platforms,
look up the value in the following tables to find a short, equivalent sequence of
operations.
For A64/SVE/Neon see https://gist.github.com/dougallj/10c3ffdbd07229db2cc8b0430d7ccd39
The tables here are:
* agx: "not" and all binary operations (as used in Apple GPUs, but possibly useful elsewhere):
@tyleransom
tyleransom / gcc-5.4.0-install.sh
Last active August 12, 2024 13:11 — forked from jdhao/gcc-5.4.0-install.sh
The script will install GCC 5.4.0 on your CentOS 7 system, make sure you have root right.
echo "Downloading gcc source files..."
curl https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O
echo "extracting files..."
tar xvfj gcc-5.4.0.tar.bz2
echo "Installing dependencies..."
yum install gmp-devel mpfr-devel libmpc-devel
echo "Configure and install..."
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 7, 2025 20:12
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@citrusui
citrusui / dropdown.md
Last active May 7, 2025 20:05
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@stefanmaric
stefanmaric / copy-to-clipboard-bookmarklet.md
Created September 7, 2016 20:54
Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard

Copy-to-clipboard Bookmarklet

Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard.

This is the base javascript:

(function (text) {
  var node = document.createElement('textarea')
  var selection = document.getSelection()
@mortehu
mortehu / zip-test.cc
Last active May 23, 2022 12:00
C++ zip
#include <cstdio>
#include <list>
#include <vector>
#include "zip.h"
int main() {
std::vector<int> one{{1, 11}};
auto two = [] { return std::vector<short>{{2, 22}}; };
const std::list<float> three{{3, 33}};
# Geany's snippets configuration file
#
# use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR).
# use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode.
# use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue').
# use %key% for all keys defined in the [Special] section.
# use %cursor% to define where the cursor should be placed after completion. You can define multiple
# %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor
# position in the completed snippet.
# You can define a section for each supported filetype to overwrite default settings, the section
@ax3l
ax3l / CUDA_Compilers.md
Last active March 27, 2025 17:02
CUDA Compilers