Skip to content

Instantly share code, notes, and snippets.

View rename_directory.py
from pathlib import Path
import os
p = Path('03_Books/')
for ix, path in enumerate(sorted(os.listdir(p))):
if '.DS_Store' not in path:
full_path = os.path.join(p, path)
if os.path.isdir(full_path):
if ix < 10:
@rodrigorivera
rodrigorivera / cisco_vpn.md
Last active Oct 31, 2019
Notes on the cisco vpn at skoltech
View cisco_vpn.md

Working with Windows and the Ubuntu bash

  • Check install instructions at http://cdn.skoltech.ru/files/manuals/VPN_access_instruction_eng.pdf
  • Download the cisco client
  • First run on powershell: Get-DnsClientServerAddress -AddressFamily IPv4 | Select-Object -ExpandPropert ServerAddresses
  • Copy the ip listed
  • Open the Ubuntu bash
  • Open resolv.conf
  • sudo nano /etc/resolv.conf
  • Edit the /etc/resolv.conf and replace all nameserver {ip} with the ones generated by the top one.
  • Save file
View .gitignore
*.csv
output/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
View jupyter_commands
jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace TSFresh_per_Cluster1-Copy3.ipynb
@rodrigorivera
rodrigorivera / adase_gpu_tf_conda
Last active Jun 14, 2018
List of steps to build TensorFlow gpu with conda in the adase servers
View adase_gpu_tf_conda
git clone https://github.com/DhavalThkkar/DeepLearningDocker.git
# Comment out everything but last line in bash nvidia_docker.sh
bash nvidia_docker.sh
nano Dockerfile.gpu
# Edit the version of the cuda image
# 9.1-cudnn7-devel-ubuntu16.04
# Add latest versions
# https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh
# https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.8.0-cp36-cp36m-linux_x86_64.whl
docker build -t riverar_docker_tfgpu_conda -f Dockerfile.gpu .
View keybase.md

Keybase proof

I hereby claim:

  • I am rodrigorivera on github.
  • I am rodrigorivera (https://keybase.io/rodrigorivera) on keybase.
  • I have a public key ASB2WCkTk9i1lGUMwomV2whMoqUcFGej4DLpnwpqTp3tQAo

To claim this, I am signing this object: