Skip to content

Instantly share code, notes, and snippets.

@pkvk
pkvk / cuda_installation_on_ubuntu_18.04
Last active September 13, 2018 11:36 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
cuda 9.0 complete installation procedure for ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.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
###
@pkvk
pkvk / XPS: arch linux (alternative notes)
Last active April 21, 2023 06:48
Install Arch Linux on XPS 13 9370
# Installation on Dell XPS
# Please also consult official documentation:
# https://wiki.archlinux.org/index.php/Installation_Guide
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360)
# https://wiki.archlinux.org/index.php/Dell_XPS_15_(9550)
# Enter BIOS with F2 and configure:
# - "System Configuration" > "SATA Operation": "AHCI"
# - "Secure Boot" > "Secure Boot Enable": "Disabled"
@pkvk
pkvk / arch_xps-part2
Last active February 3, 2019 19:21
A lightweight arch linux dev station
# Arch linux packages (install via $ pacman -S <package name>)
base
base-devel
# Zsh config:
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Edit .zshrc: add extract to plugins list
# GUI
@pkvk
pkvk / arch_xps-part1.sh
Last active December 16, 2025 19:42 — forked from elbowz/Install Archlinux on XPS 13 9370 DualBoot with Windows
Install Archlinux on XPS 13 9370 DualBoot
# Resource
# https://gist.github.com/brammitch/281e9a2f3aca57ae4a333fc63732f602
# https://wiki.archlinux.org/index.php/Installation_guide
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370)
# Enter BIOS with F2 and configure:
# - "System Configuration" > "SATA Operation": "AHCI"
# - "Secure Boot" > "Secure Boot Enable": "Disabled"
# Set the keyboard layout and font
@pkvk
pkvk / Chimera.hs
Last active September 25, 2018 16:30
Chimera model with two different delays
-- Chimera and dissipative solitons demonstrations in a system
-- with two strongly different delays \tau_2 = 100*\tau_1 from arXiv:1712.03283
--
-- How to execute:
-- 1. Save the code to Chimera.hs
-- 2. Install stack (command line interface is marked by $):
-- $ wget -qO- https://get.haskellstack.org/ | sh
-- OR
-- $ curl -sSL https://get.haskellstack.org/ | sh
-- 3. Run: