Skip to content

Instantly share code, notes, and snippets.

@breezhang
breezhang / gist:10221587
Created April 9, 2014 02:47
build win32 vim for many perl :)!
build vim for win32 for perl
vim --> perl 514
vim --> perl 516
vim --> perl 518
get source [ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2]
@breezhang
breezhang / t1.html
Created April 6, 2014 09:09
Winjs 2.0 web Sample
<!-- Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html>
<html>
<head>
<title>base</title>
<!-- WinJS references -->
<link type="text/css" rel="styleshee
@breezhang
breezhang / gist:10001780
Created April 6, 2014 05:11
mintty for msysgit issue
mintty set
======make cmd||bat file
pushd d:\msysgit\bin
@mintty.exe -c %HOMEDRIVE%%HOMEPATH%\.minttyrc -e D:\msysgit\bin\sh.exe --login -i
popd
exit;
====path=========== add you profile || bashrc ....
if [ $TERM = "xterm-256color" ]; then
@breezhang
breezhang / gist:10000176
Created April 6, 2014 01:15
base64 cmd sample
certutil.exe //%SystemRoot%\system32\certutil.exe
powershell code
[System.Text.ASCIIEncoding]::ASCII.GetBytes("ssh")
|ConvertTo-Base64 --> c3No
perl code
perl -MMIME::Base64 -e "print encode_base64(qw/ssh/)"
@breezhang
breezhang / color.xml
Created April 5, 2014 14:54
Console2 nice color sch
<color id="0" r="238" g="232" b="213"/>
<color id="1" r="38" g="139" b="210"/>
<color id="2" r="133" g="153" b="0"/>
<color id="3" r="42" g="161" b="152"/>
<color id="4" r="220" g="50" b="47"/>
<color id="5" r="211" g="54" b="130"/>
<color id="6" r="181" g="137" b="0"/>
<color id="7" r="7" g="54" b="66"/>
<color id="8" r="0" g="43" b="54"/>
<color id="9" r="38" g="139" b="210"/>
1.github https replace ssh so .... check credential-winstore.exe
2.powershell can use Haacked -->windows git ...
resource
http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password
https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git
https://help.github.com/
vim input \e || 033
i mode ==>'ctrl' + 'v' + '['
@breezhang
breezhang / rd.cmd
Created April 4, 2014 08:34
cmd tools
@ECHO off
@CHOICE /M " :DEL ALL FILES!"
IF ERRORLEVEL 2 GOTO N
IF ERRORLEVEL 1 GOTO Y
GOTO end
:Y
RD /S/Q %*
IF ERRORLEVEL 0 ECHO DONE!
GOTO end
:N
@breezhang
breezhang / show simple .... .txt
Last active August 7, 2022 13:06
ansi detail ...
ANSI Escape Sequences
Wherever you see '#', that should be replaced by the appropriate number.
ESC code sequence Function
------------------- ---------------------------
Cursor Controls:
ESC[#;#H or ESC[#;#f Moves cusor to line #, column #
ESC[#A Moves cursor up # lines
ESC[#B Moves cursor down # lines