-
Time of writing: Jan 18, 2023, updated on Sep 22, 2024. The following assumes that you're trying to install CUDA on WSL2 Ubuntu.
-
Check support matrix first before you install any version of CUDA, because chances are the latest CUDA does not have cuDNN support yet, then you would have to re-install older version if you found out later.
https://docs.nvidia.com/deeplearning/cudnn/support-matrix/index.html#cudnn-cuda-hardware-versionsAt the time of writing, the latest cuDNN version is 8.7 and it supports CUDA 11.8.
-
Windows 10 must be build
20145or later, or you should be on Windows 11.
UPM: How to make a custom package So, Unity has this shiny new package manager, and you have code you want to share between projects - wouldn't it be great if we could bundle up our shared code and plug it into all the projects that need it? Let's figure out how to make our own Package!
Todo
- Modify the project manifest
- Make a package manifest
- Package the manifest up with some test code
- Try it out in Unity!
| # Aldec ActiveHDL .gitignore | |
| # Sergey Kostyuk, 2017, Public Domain | |
| *.asdb/ | |
| log/ | |
| Edfmap.ini | |
| *.wsp | |
| *.wsf | |
| *.log | |
| *.erf |
| # !/usr/bin/env bash | |
| # File path should be ./bin/post_compile | |
| # (.sh extension added in Gist just to enable shell syntax highlighting. | |
| # https://discussion.heroku.com/t/django-automaticlly-run-syncdb-and-migrations-after-heroku-deploy-with-a-buildpack-or-otherwise/466/7 | |
| echo "=> Performing database migrations..." | |
| python manage.py migrate |
| #!/usr/bin/env python3 | |
| # vim: sw=4 ts=4 et tw=100 cc=+1 | |
| # | |
| #################################################################################################### | |
| # DESCRIPTION # | |
| #################################################################################################### | |
| # | |
| # Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to | |
| # compress e. g. bookmark backups (*.jsonlz4). | |
| # |
The purpose of this gist is to set up a virtual machine in such a way that the on-disk image in the host machine automatically grows and shrinks as needed by the guest machine. This utilizes the (still undocumented) "--discard" and "--nonrotational" parameters in "VBoxManage storageattach" which make the attached image appear as an SSD to the guest. Guest OS will then issue TRIM commands to the virtual controller where such an image is attached. VirtualBox is then able to capture the commands and punch holes in the attached VDIs.
Although there is some initial setup needed, I think the time saved with babysitting the VDIs is worth it. Usually you would need to zero out the free space with zerofree or sdelete and then run "VBoxManage --compact" on your images. With this setup you can allocate a large dynamic VDI (1TB or so) and it will keep itself at minimum size for easy syncing, backup, etc. You can also set it up in a template machine if you use one for clones etc.
- Linux
| int main() { | |
| int n = 1; | |
| struct foo { | |
| char a; | |
| int b[n]; | |
| }; | |
| struct foo a; | |
| a.a = 'a'; | |
| a.b[0] = 1; | |
| n = 2; |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |