Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Jose Marcos Rodríguez Fernández jmrf

🏠
Working from home
Block or report user

Report or block jmrf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jmrf
jmrf / private_fork.md
Last active Aug 13, 2019 — forked from 0xjac/private_fork.md
Create a private fork of a public repository
View private_fork.md

The correct way of creating a private frok by duplicating the repo is documented here.

We assume the following:

  • Old or original repo is: git@github.com:<user>/<old-repo>.git
  • New mirror will be: git@github.com:<your_username>/mirror.git

For this, the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)
View conda_DL_environment.json
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
@jmrf
jmrf / conda_testDL_environment.yaml
Last active Jul 30, 2019
Conda test DL environment
View conda_testDL_environment.yaml
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
@jmrf
jmrf / convert_html_to_ipynb.py
Created May 29, 2019
Python script to convert an HTML jupyter notebook export to an actual ipynb file (ipython notebook)
View convert_html_to_ipynb.py
# 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:
@jmrf
jmrf / fix_guthub_https_repos.sh
Last active May 4, 2019
Convert in batch github HTTPS repos remote url to SSH
View fix_guthub_https_repos.sh
#/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
@jmrf
jmrf / mecab-install.md
Created Jan 27, 2019
Install mecab japanese tokenizer in Ubuntu 16.04
View mecab-install.md
@jmrf
jmrf / README.md
Last active Jan 27, 2019 — forked from Lazza/README.md
VPNGate Python script
View README.md

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

@jmrf
jmrf / index.js
Created Jan 4, 2019 — forked from miguelmota/index.js
Node.js Winston logger wrapper to display filename
View index.js
var log = require('./lib/logger')(module);
log.info('foo');
@jmrf
jmrf / reinstall.sh
Created Dec 30, 2018 — forked from 8enmann/reinstall.sh
Reinstall NVIDIA drivers without opengl Ubuntu 16.04 GTX 1080ti
View reinstall.sh
# 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-*
You can’t perform that action at this time.