Skip to content

Instantly share code, notes, and snippets.

View whusnoopy's full-sized avatar
🚀
we are hiring! www.meideng.net

Wen YE whusnoopy

🚀
we are hiring! www.meideng.net
View GitHub Profile
@whusnoopy
whusnoopy / autocomplete_fabric.sh
Created July 17, 2014 08:08
fabric auto complete builder
# source this file before use fab
# copy from github.com/jjanyan/joshix and modified
_fab_completion() {
COMPREPLY=()
# Fabfile in this folder?
[[ -e fabfile.py ]] || [[ -e fabfile/__init__.py ]] || return 0
local cur="${COMP_WORDS[COMP_CWORD]}"
@whusnoopy
whusnoopy / 0_reuse_code.js
Created March 19, 2014 02:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@whusnoopy
whusnoopy / develop_under_windows.md
Last active August 29, 2015 13:56
在 Windows 下开发 Linux 环境工程

Git

安装

安装 git for windows, 得到 git bash

修改编辑器为系统的 vim

将 Git 安装路径下 bin 目录里的 vim 改名备份, 在系统 Path 里将 vim.exe 所在路径加入

安装配置部分

配网络

vi /etc/network/interface

interface (part):

# The primary network interface

auto eth0

@whusnoopy
whusnoopy / virtual_box_mount.sh
Created September 10, 2013 06:01
VirtualBox 下虚拟机挂载宿主机共享目录
sudo mount -t vboxsf WorkSpace ~/workspace
# WorkSpace 是 VirtualBox 里设定的共享目录名, 非 Windows 下的文件路径或文件名
# ~/workspace 目录在 mount 前需要创建好