In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
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
URxvt.saveLines: 2000 | |
URxvt.scrollBar: false | |
URxvt.foreground: #f9f7f1 | |
URxvt.depth: 32 | |
URxvt.secondaryScroll: true | |
URxvt.font: xft:DejaVu Sans Mono for Powerline:pixelsize=22:antialias=true | |
URxvt.perl-ext-common: default,matcher,selection-to-clipboard | |
URxvt.urlLauncher: chromium | |
URxvt.matcher.button: 1 | |
URxvt.tabbed.saveLines: 2000 |
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
# npm using https for git | |
git config --global url."https://github.com/".insteadOf [email protected]: | |
git config --global url."https://".insteadOf git:// | |
# npm using git for https | |
git config --global url."[email protected]:".insteadOf https://github.com/ | |
git config --global url."git://".insteadOf https:// |
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
############################################################################### | |
# Compiling the RPi kernel in situ, with optional memory leak debugging | |
# | |
# Extends https://www.raspberrypi.org/documentation/linux/kernel/building.md | |
############################################################################### | |
# On the Raspberry Pi | |
cd ~/Projects | |
# Install rerequisites |
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
# | |
# Original solution via StackOverflow: | |
# http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t | |
# | |
# | |
# Install via `conda` directly. | |
# This will fail to install all | |
# dependencies. If one fails, | |
# all dependencies will fail to install. |
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
# | |
# Configuration files for Manjaro i3 on Lenovo Yoga 2 pro | |
# to scale properly on HiDPI (3200x1800) | |
# | |
##################################################### | |
~/.profile # | |
##################################################### | |
# UI element scaling, icons | |
export GDK_SCALE=2 |
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
import os | |
import comtypes.client | |
app = comtypes.client.CreateObject('Photoshop.Application.60') # CS6 | |
# maya config | |
project_path = 'd:/project/alice/maya' | |
log_path = project_path + '/log' | |
images_path = project_path + '/images' | |
layers = ['master', 'prop_matte', 'shadow', 'wall_matte'] | |
passes = ['beauty', 'N'] |
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
import numpy as np | |
from scipy.spatial.distance import cdist | |
from .dtw import dtw | |
from .lb import envelope, lb_keogh_cdist, lb_keogh_from_bounds | |
from .window import window_ts | |
def dtw_nearest_neighbours(query, db, bound_reach, step_size, subseq=False): | |
assert query.ndim == 1 | |
assert db.ndim == 2 | |
assert query.flags.contiguous |
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
# Structural Cooccurrence Matrix - SCM | |
# OBS.: implementation of SCM for image analysis | |
# Geraldo Ramalho v0.8 ago/2016 | |
# | |
# please cite: | |
# Ramalho et al. Rotation-invariant Feature Extraction using a Structural Co-occurrence Matrix. | |
# Measurement, v.94, p.406-415, dec/2016. | |
# doi:10.1016/j.measurement.2016.08.012 | |
# lapisco.ifce.edu.br/?page_id=191 | |
# |
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
#!/bin/bash | |
### 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 |