Skip to content

Instantly share code, notes, and snippets.

@mfcabrera
mfcabrera / ansible-macos-homebrew-packages.yml
Created May 6, 2019 18:33 — forked from mrlesmithjr/ansible-macos-homebrew-packages.yml
Install MacOS Homebrew Packages With Ansible
---
- name: Install MacOS Packages
hosts: localhost
become: false
vars:
brew_cask_packages:
- 'atom'
- 'docker'
- 'dropbox'
- 'firefox'
@mfcabrera
mfcabrera / installing_nvidia_driver_cuda_cudnn_linux.md
Created November 11, 2020 07:02 — forked from kmhofmann/installing_nvidia_driver_cuda_cudnn_linux.md
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

def apply_processors(processors, df, callback=None):
def _callback(processor, df):
if callback is None:
return
callback(processor, df)
for fn in processors:
df = fn(df)
_callback(fn, df)
(defun read-lines (filePath)
"Return a list of lines of a file at filePath."
(with-temp-buffer
(insert-file-contents filePath)
(split-string (buffer-string) "\n" t)))
(defun parse-spec (s)
(let ( (parsed (split-string s " " t) ) )
(list