export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T);Before [email protected]
type DeepPartial = {| #!/bin/bash | |
| # Please give all credit to this stackoverflow post | |
| # https://stackoverflow.com/questions/42950501/delete-node-modules-folder-recursively-from-a-specified-path-using-command-line | |
| find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + |
| #!/bin/bash | |
| cat file | jq -sR . |
export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T);type DeepPartial = {| If, like me, your are booting with UEFI (because having a triple boot ubuntu-windows-mac or because UEFI is the most modern type of bootloader and successor of EFI :p), you have to sign the proprietary modules each time they are recompiled (or upgrade kernel version) so that they are allowed to be loaded in the kernel. | |
| 1) Step one, create a self-signed certificate to sign nvidia driver: | |
| sudo openssl req -new -x509 -newkey rsa:2048 -keyout UEFI.key -outform DER -out UEFI.der -nodes -days 36500 -subj "/CN=rambou_nvidia/" | |
| 2) step two load and store certificate in a supplementary key database MOC | |
| sudo mokutil --import UEFI.der | |
| 3) step three reboot your system | |
| At this step after reboot you will be prompted to select your certificate to import in in key database. If you have inserted a password at certificate creation you'll be prompted to insert it. If you are not prompted, you may have to enter the BIOS by using function keys at boot time. |
| #Install Gource in Ubuntu | |
| ======================== | |
| #Go to the folder.... and | |
| #see http://tylerfrankenstein.com/code/install-gource-ubuntu-1010-visualize-git-repo | |
| sudo apt-get update | |
| sudo apt-get install libsdl2-dev libsdl2-image-dev libpcre3-dev libfreetype6-dev libglew-dev libglm-dev libboost-filesystem-dev libpng12-dev libsdl1.2-dev libsdl-image1.2-dev libtinyxml-dev | |
| ./configure | |
| make | |
| sudo make install |