Skip to content

Instantly share code, notes, and snippets.

View ZheFeng's full-sized avatar

Zhe Feng ZheFeng

  • Alibaba Group
  • Hangzhou, China
View GitHub Profile
set :application, "appname"
set :deploy_to, "/var/www"
set :scm, :git
set :repository, "git@github.com:user/app.git"
default_run_options[:pty] = true
set :user, "www-data"
set :domain, "foo.tld"
set :normalize_asset_timestamps, false

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
'use strict';
module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
front: [
'./dest/public/html',
{
"name": "application-name",
"version": "0.0.1",
"main": "app.js",
"private": true,
"scripts": {
"start": "node app"
},
"devDependencies": {
"chai": "*",
location /api {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
rewrite /api/(.*) /$1 break;
proxy_pass http://localhost:1234;
proxy_redirect off;
}
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Material-Theme (SL).tmTheme",
"default_encoding": "UTF-8",
"detect_indentation": true,
"draw_indent_guides": true,
"draw_white_space": "all",
"enable_tab_scrolling": true,
# robots.txt generated at http://portal.qiniu.com
User-agent: Baiduspider
Disallow: /
User-agent: Sosospider
Disallow: /
User-agent: sogou spider
Disallow: /
User-agent: YodaoBot
Disallow: /
User-agent: Googlebot
@ZheFeng
ZheFeng / iterm2-solarized.md
Created June 16, 2016 14:19 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + oh my zsh + solarized + Meslo powerline font (OSX)

Solarized

@ZheFeng
ZheFeng / .vimrc.after
Created June 17, 2016 00:16 — forked from wilmoore/.vimrc.after
Vim Configuration
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" My Personal Vim Configuration
" Wil Moore III <wil.moore@wilmoore.com>
"
" I keep this configuration documented here:
" https://gist.github.com/3901161
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""
"" base
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->