Skip to content

Instantly share code, notes, and snippets.

View manboubird's full-sized avatar

Toshiaki Toyama manboubird

View GitHub Profile
@manboubird
manboubird / conda-requirements-practical-deep-learning-for-coders.txt
Last active May 13, 2017 09:24
conda requirements for Practical Deep Learning For Coders—18 hours of lessons for free http://course.fast.ai/index.html.
name: py27.keras
channels: !!python/tuple
- conda-forge
- defaults
dependencies:
- conda-forge::appnope=0.1.0=py27_0
- conda-forge::backports.shutil_get_terminal_size=1.0.0=py27_1
- conda-forge::backports_abc=0.5=py27_0
- conda-forge::bcolz=1.1.2=np112py27_0
- conda-forge::blas=1.1=openblas
@manboubird
manboubird / tensorflow-1.x-with-keras-and-jupyter-environment.yml
Created April 30, 2017 07:48
Tensorflow 1.1.0 Anaconda environment for keras and jupyter environemnt.
name: py35.tensorflow
channels: !!python/tuple
- conda-forge
- defaults
dependencies:
- _nb_ext_conf=0.3.0=py35_0
- anaconda-client=1.6.0=py35_0
- appnope=0.1.0=py35_0
- clyent=1.2.2=py35_0
- conda-forge::blas=1.1=openblas
FROM nvidia/cuda:8.0-cudnn5-devel
# Install dependencies
RUN apt-get -qq update && \
apt-get -qq install --assume-yes \
"build-essential" \
"git" \
"wget" \
"pkg-config" && \
rm -rf /var/lib/apt/lists/*
@manboubird
manboubird / gnu-parallel-bash-function-execution.sh
Last active May 21, 2024 21:58
GNU parallel bash fuction execution
#!/bin/bash
#
# GNU Parallel and Bash functions: How to run the simple example from the manual - Stack Overflow
# http://stackoverflow.com/questions/23814360/gnu-parallel-and-bash-functions-how-to-run-the-simple-example-from-the-manual
#
SCRIPT_DIR="$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)"
WORKSPACE=${WORKSPACE:-$(pwd)}
log() { echo "[$(date +"%F %T")] $@"; }
@manboubird
manboubird / readme.md
Created December 4, 2016 09:55 — forked from baraldilorenzo/readme.md
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
@manboubird
manboubird / Ansible CloudFormation Macros.md
Created November 26, 2016 16:50 — forked from jheller/Ansible CloudFormation Macros.md
Using Ansible/Jinja macros to generate CloudFormation templates

Generating CloudFormation Templates from YAML Dictionaries

The security group and Network ACLs parts of CloudFormation templates can be difficult to read. This template containing Jinja macros converts easier-to-read YAML dictionaries of security group and NACL rules into JSON.

Here ais a generic macro template and some example files showing how to use it.

  • cloudformation.macros.j2 - the macros
  • cf_vars.yml - YAML dictionaly of security groups and NACLs, including some complex rules for both
  • test.template.j2 - a simple CloudFormation template that uses the macro file
  • cf_test.yml - a simple Ansible playbook that generates CloudFormation JSON from thr previous file.

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

@manboubird
manboubird / python2+3.md
Created September 18, 2016 02:05 — forked from splhack/python2+3.md
MacVim with Python 2.x and Python 3.x
  • Install python 2.7.11

command line

$ PYTHON_CONFIGURE_OPTS="--enable-shared" \
    LDSHARED="clang -bundle" \
    LDCXXSHARED="clang++ -bundle" \
    BLDSHARED="clang -bundle -lpython2.7" \
    pyenv install 2.7.11
@manboubird
manboubird / Jenkinsfile
Created August 15, 2016 09:49 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}