Skip to content

Instantly share code, notes, and snippets.

View cupen's full-sized avatar

咚咔 cupen

View GitHub Profile
@cupen
cupen / setup_msys2.md
Last active February 22, 2018 02:19
Setup msys2.

Install msys2 and core packages.

pacman -Syy
pacman -S openssh
pacman -S zsh # and setup with oh-my-zsh

Add right-click menu item named "Open XXX Here"

Save this text as file named xxx.reg, and double-click it. Done.

@cupen
cupen / install_git.txt
Last active December 15, 2017 07:20
install latest git from souce in centos 7
# https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
# compilre requirements.
yum install dh-autoreconf curl-devel expat-devel gettext-devel \
openssl-devel perl-devel zlib-devel
yum install asciidoc xmlto docbook2X getopt perl-ExtUtils-MakeMaker
# do it.
wget https://github.com/git/git/archive/v2.15.1.tar.gz
tar xvf v2.15.1.tar.gz
@cupen
cupen / just_biang_biang.sql
Last active August 29, 2015 14:06
nothing
CREATE TABLE `test` (
`i` int(255) NULL DEFAULT 0
)
ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
SELECT
t1.i as idx1,
t2.i as idx2