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 / cloudSettings
Last active September 30, 2019 22:01
VS Code Settings
{"lastUpload":"2019-09-30T22:01:28.238Z","extensionVersion":"v3.4.3"}
{"lastUpload":"2019-05-02T11:02:57.132Z","extensionVersion":"v3.2.9"}