Skip to content

Instantly share code, notes, and snippets.

View josemarcosrf's full-sized avatar
🏔️
Working from a mountain top

Jose Marcos RF josemarcosrf

🏔️
Working from a mountain top
View GitHub Profile
@josemarcosrf
josemarcosrf / conda_DL_environment.json
Created June 20, 2019 11:55
Conda DL environment
name: DL
channels:
- pytorch
- caffe2
- conda-forge
- soumith
- defaults
dependencies:
- _nb_ext_conf=0.4.0=py36_1
- anaconda-client=1.6.3=py36_0
@josemarcosrf
josemarcosrf / conda_testDL_environment.yaml
Last active July 30, 2019 14:55
Conda test DL environment
name: testDL
channels:
- pytorch
- soumith
- defaults
dependencies:
- blas=1.0=mkl
- ca-certificates=2018.12.5=0
- certifi=2018.11.29=py36_0
- cffi=1.11.5=py36he75722e_1
@josemarcosrf
josemarcosrf / convert_html_to_ipynb.py
Created May 29, 2019 17:46
Python script to convert an HTML jupyter notebook export to an actual ipynb file (ipython notebook)
# Script originally posted by stackOverflow user 'sgDysregulation':
# https://stackoverflow.com/questions/28972614/ipython-notebook-convert-an-html-notebook-to-ipynb
# Requirements:
# beautifulsoup4==4.7.1
# lxml==4.3.3
# urllib3==1.24.1
# simplejson==3.13.2
# To check if lxml is available as a parser:
@josemarcosrf
josemarcosrf / fix_github_https_repos.sh
Last active August 28, 2020 16:17
Convert in batch github HTTPS repos remote url to SSH
#/bin/bash
# Script to convert HTTPS to SSH github remote URLs providing a parent folder
# containing all the repo directories (i.e.: with a .git subdirectory)
#
# This script was inspired by https://gist.github.com/m14t/3056747
directoryContainingAllRepos=$1
cd $directoryContainingAllRepos
@josemarcosrf
josemarcosrf / NaturalLanguageDatasets.md
Last active February 19, 2023 11:59
List of Language related open datasets. NLP NLU Dataset
@josemarcosrf
josemarcosrf / mecab-install.md
Created January 27, 2019 21:10
Install mecab japanese tokenizer in Ubuntu 16.04
@josemarcosrf
josemarcosrf / README.md
Last active January 27, 2019 12:27 — forked from Lazza/README.md
VPNGate Python script

vpngate.py

This is a port of the original gist to python 3.

This script allows to use the free VPN service provided by VPNGate in an easy way. The user just needs to provide the desidered output country, and the script automatically chooses the best server.

After this step, OpenVPN is launched with the proper configuration. The VPN can be terminated by pressing Ctrl+C.

Usage

@josemarcosrf
josemarcosrf / index.js
Created January 4, 2019 19:09 — forked from miguelmota/index.js
Node.js Winston logger wrapper to display filename
var log = require('./lib/logger')(module);
log.info('foo');
@josemarcosrf
josemarcosrf / install_cuda_ubuntu-1604.sh
Last active May 21, 2020 12:03 — forked from 8enmann/reinstall.sh
Reinstall NVIDIA drivers without opengl Ubuntu 16.04 GTX 1080ti
# Download installers
mkdir ~/Downloads/nvidia
cd ~/Downloads/nvidia
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/384.59/NVIDIA-Linux-x86_64-384.59.run
sudo chmod +x NVIDIA-Linux-x86_64-384.59.run
sudo chmod +x cuda_8.0.61_375.26_linux-run
./cuda_8.0.61_375.26_linux-run -extract=~/Downloads/nvidia/
# Uninstall old stuff
sudo apt-get --purge remove nvidia-*
@josemarcosrf
josemarcosrf / wav-mp3
Created December 28, 2018 21:07 — forked from championofblocks/wav-mp3
Command line bash to convert all wav to mp3
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done