Skip to content

Instantly share code, notes, and snippets.

View ionvision's full-sized avatar
🎯
Focusing

Xuejian Rong ionvision

🎯
Focusing
View GitHub Profile
@ionvision
ionvision / 3_install_deeplearning_libs.sh
Created October 2, 2015 21:08 — forked from graphific/3_install_deeplearning_libs.sh
Installation script for Deep Learning Libraries on Ubuntu 14.04
#!/usr/bin/env bash
# Installation script for Deep Learning Libraries on Ubuntu 14.04, by Roelof Pieters (@graphific)
# BSD License
orig_executor="$(whoami)"
if [ "$(whoami)" == "root" ]; then
echo "running as root, please run as user you want to have stuff installed as"
exit 1
fi
###################################
Atom Sync Settings
@ionvision
ionvision / imagemagick.md
Last active December 7, 2016 20:44
Basic usage of imagemagick
  • Convert a png file to jpg file

convert image.png image.jpg

  • Convert all png files to jpg files

mogrify -format jpg *.png

or loop version

@ionvision
ionvision / perl1line-ch.txt
Created December 7, 2016 20:45
Perl one-line commands
用 Perl 实现的有用的单行程序 1 28 2012 | 版本 1.08
------------------------ ----------- ------------
由 Peteris Krumins 编译 (peter@catonmat.net, @pkrumins on Twitter)
http://www.catonmat.net -- good coders code, great reuse
此文件最新版的总可以在下面的这个链接里获得:
http://www.catonmat.net/download/perl1line.txt
@ionvision
ionvision / bash_sed_powershell.txt
Created December 7, 2016 20:47
Some useful bash/powershell commands
Bash:
========================
find ./ -type f -name "*"|xargs grep "encoding" > /home/xrong/Documents/VOC2010/VOCdevkit/VOC2010/file.list
sed -i '/encoding/'d `awk -F: '{print $1}' /home/xrong/Documents/VOC2010/VOCdevkit/VOC2010/file.list`
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`
sed -i "s/www.bcak.com.cn/bcak.com.cn/g" `grep www.bcak.com.cn -rl /home`
@ionvision
ionvision / zshrc
Created December 7, 2016 20:48
~/.zshrc file for Ubuntu
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@ionvision
ionvision / zshrc_osx
Created December 7, 2016 20:48
~/.zshrc file for macOS
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@ionvision
ionvision / imagenet1000_clsid_to_human.txt
Created April 27, 2018 13:08 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class id to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@ionvision
ionvision / iterm2-solarized.md
Created May 7, 2018 21:48 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k