Skip to content

Instantly share code, notes, and snippets.

Mahedi-61 / cuda_11.3_installation_on_Ubuntu_20.04
Last active Jul 3, 2022
Instructions for CUDA v11.3 and cuDNN 8.2 installation on Ubuntu 20.04 for PyTorch 1.11
View cuda_11.3_installation_on_Ubuntu_20.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
### to verify your gpu is cuda enable check
View mixins.scss
/// Andy.SCSS: Open-Source Collection of Useful SASS Mixins Library.
/// URL:$
/// Repository:
/// By: Gilles Bertaux | | @gillesbertaux
/// The purpose of Andy is to gather useful mixins and avoid endless research
/// or heavy framework use. Feel free to fork it on Github and add your own mixins:
cgonzalezdai /
Last active Jul 3, 2022
Como subir un proyecto local a github

Como subir un proyecto local a github.

desde la web de github

Creamos un nuevo repositorio en Le damos nombre, descripción, seleccionamos si va a ser un proyecto publico o privado si es el caso, y dejamos el check de crear README sin marcar. Le damos a crear repositorio y con esto ya tenemos el repositorio donde alojaremos nuestro proyecto.

desde la terminal del equipo donde esta el proyecto que queremos subir a github

Nos vamos a la carpeta del proyecto y ejecutamos estos comandos.

git init

git add .
qoomon /
Last active Jul 3, 2022
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats


bgalvao /
Last active Jul 3, 2022
Make the fix so that kde shows chrome app icons, like in Loops through desktop files in ~/Desktop.
#!/usr/bin/env python3
import os
from shutil import copyfile
home_dir = os.getenv('HOME') # only works on Linux
desktop_dir = os.path.join(home_dir, 'Desktop')
chrome_based_browsers = ['brave', 'chrome', 'chromium', 'vivaldi']

Half-Life 2 on the Switch

This is a guide for running Half-Life 2 on your Switch. Please be aware that this isn't a great way of playing Half-Life 2 - do not expect this mod to work perfectly.

NOTE: I am assuming that you have basic knowledge about how modding games on the Switch works. I will not provide support for questions like "how do I install Atmosphère / CFW", "how do I make an emuMMC", "how do I extract games", etc. For help with modding your console, see the NH Switch Guide.

WARNING: While this mod should be fairly safe to use, I do not take any responsibility if your Portal save data is deleted, you get banned from Nintendo Switch Online, or if your Switch explodes.


View Wine vs Beer.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Tamal /
Last active Jul 3, 2022
Solution for 'ssh: connect to host port 22: Connection timed out' error
$ git clone my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T
ssh: connect to host port 22: Connection timed out
$ # but this might work
andrelandgraf / createSitemap.ts
Last active Jul 3, 2022
sitemap.xml generator for
View createSitemap.ts
import childProcess from 'child_process';
import fs from 'fs';
import dotenv from 'dotenv';
import prettier from 'prettier';
const rootDir = process.cwd();
path: `${rootDir}/.env.production`,
View BIPoverhaul.mediawiki

  BIP: 324
  Layer: Peer Services
  Title: Version 2 P2P Encrypted Transport Protocol
  Author&#58; Dhruv Mehta <>
          Tim Ruffing <>
          Jonas Schnelli <>
          Pieter Wuille <bitcoin&#45;>
  Status&#58; Draft
  Type&#58; Standards Track