This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
set SCRIPT_ROOT=%~dp0 | |
exit /b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Strict mode. | |
Set-StrictMode -Version Latest | |
# Error action. | |
$ErrorActionPreference = "Stop" | |
# Script's parent path. | |
$PSScriptRoot | |
# Sets execution policy bypass. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -u | |
SCRIPT_ROOT="$(dirname "$0")" | |
exit $? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CUDA: grid stride looping | |
#define CUDA_KERNEL_LOOP(i, n) \ | |
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < (n); \ | |
i += blockDim.x * gridDim.x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nvidia/cuda:11.0-devel-ubuntu20.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
# Installs packages. | |
RUN echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" \ | |
> /etc/apt/sources.list.d/nvidia-ml.list && \ | |
# apt packages | |
apt update && \ | |
apt install -y software-properties-common && \ | |
apt install -y \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Asynchronous IO | |
Boost.Asio | |
## Audio | |
PortAudio | |
## CLI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visual Studio Code settings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python snippets. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enables EPEL. | |
sudo yum -y --enablerepo=extras install epel-release | |
# Installs GNU Global. | |
sudo yum install -y gcc | |
sudo yum install -y ncurses-devel | |
cd /usr/local/src | |
sudo wget https://ftp.gnu.org/pub/gnu/global/global-6.6.tar.gz | |
sudo tar xvfz global-6.6.tar.gz | |
cd global-6.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Status. | |
pg_ctl status | |
# Start. | |
pg_ctl start | |
# Stop. | |
pg_ctl stop | |
# Restart. |
OlderNewer