Skip to content

Instantly share code, notes, and snippets.

View zimmem's full-sized avatar

Zimmem zimmem

  • Tencent
  • Shenzhen China
View GitHub Profile
@zimmem
zimmem / code
Last active April 19, 2017 12:26
vs code for cygwin
#!/usr/bin/env bash
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
NAME="Code"
# This file should probably be in your home dir (~/.my.cnf)
# or /etc/my.cnf
# Version 2.1 by Jani Tolonen
[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
user = multi_admin
password = multi
@zimmem
zimmem / .gitconfig
Created September 19, 2014 01:21
git 在cygwin 上的配置
[i18n]
logoutputencoding = gbk
[user]
name = zhaowen.zhuang
email = [email protected]
[color]
status = auto
diff = auto
branch = auto
interactive = auto
package org.apache.lucene.spatial;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
@zimmem
zimmem / gist:9810775
Created March 27, 2014 15:54
sublime text 安装 package controll(ctrl+` 打开 console)
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())