Skip to content

Instantly share code, notes, and snippets.

@pkvk
pkvk / arch_xps-part1.sh
Last active August 14, 2018 12:15 — 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 / 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 / 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:
@pkvk
pkvk / haskell-install.sh
Created November 23, 2018 11:32 — forked from arnabdas/haskell-install.sh
Install Haskell on Ubuntu 18.04
#!/bin/bash
add-apt-repository -y ppa:hvr/ghc
apt-get install -y cabal-install-2.4
apt install ghc-8.6
curl -sSL https://get.haskellstack.org/ | sh
# to install intero, either install

Global Clash installation with Stack

Tested on Ubuntu 18.04. NB: The following commands should not be run in a directory containing a stack.yaml file.

Install Stack from https://haskellstack.org

 $ curl -sSL https://get.haskellstack.org/ | sh

Run

@pkvk
pkvk / Iris.hs
Last active December 11, 2018 13:50
-- 0. Download x.data and y.dat from https://www.kaggle.com/masterdezign/iris-with-onehotencoded-targets
-- 1. Install stack (command line interface is marked by $):
-- $ wget -qO- https://get.haskellstack.org/ | sh
-- (alternatively, curl -sSL https://get.haskellstack.org/ | sh)
-- 2. Install open-blas from https://www.openblas.net/ (needed for hmatrix package)
-- 3. Run
-- $ stack --resolver lts-10.6 --install-ghc runghc --package hmatrix-0.18.2.0 Iris.hs
import Numeric.LinearAlgebra as LA
import qualified Data.Vector.Storable as V
@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 / 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"