Skip to content

Instantly share code, notes, and snippets.

@jesusprubio
jesusprubio / gist:4066845
Last active March 15, 2023 11:47
Kamailio.cfg with SIP over websockets support included.NOTE: For GRUU support change (line 363): modparam("registrar", "gruu_enabled", 1)
#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v4.1 - default configuration script
# - web: http://www.kamailio.org
# - git: http://sip-router.org
#
# Direct your questions about this file to: <[email protected]>
#
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.
@ddemidov
ddemidov / output.txt
Last active April 5, 2023 14:36
PyAMG vs AMGCL
PyAMG
----------------
multilevel_solver
Number of Levels: 5
Operator Complexity: 1.338
Grid Complexity: 1.188
Coarse Solver: 'pinv2'
level unknowns nonzeros
0 1048576 5238784 [74.73%]
@hideojoho
hideojoho / 0-How-to-setup-ubuntu-server-2004-for-gpu.md
Last active June 7, 2023 13:11
How to set up Ubuntu Server 20.04 with GPU to use TensorFlow and Pytorch via JupyterLab on Docker

How to set up Ubuntu Server 20.04 with GPU to use TensorFlow and Pytorch via JupyterLab on Docker

Environment

  • Ubuntu Server 20.04
  • CUDA Driver 10.2
  • Docker 19.03
  • NVIDIA Container Toolkit 2.3.0
  • NVIDIA RTX 2080ti (or other supported GPUs)
@Refsa
Refsa / URPSimpleLit.shader
Created October 31, 2020 09:03
Unity - Shader showing how to write a Simple Lit shader for Unity URP
Shader "Custom/URPSimpleLit"
{
Properties
{
_Color ("Color", Color) = (1,0,0,1)
}
SubShader
{
Tags {
"RenderPipeline" = "UniversalPipeline"