Skip to content

Instantly share code, notes, and snippets.

View genedna's full-sized avatar
🦀
Rust !

Quanyi Ma genedna

🦀
Rust !
View GitHub Profile
@genedna
genedna / gentoo-install-manual.md
Last active March 26, 2024 10:19
Gentoo 安装手册

Gentoo 安装手册

第一步:下载安装介质

GentooMinimal Install CD 每周都会自动构建一个版本,服务器一般使用最新的 x86_64 版本。 国内的镜像下载地址是:

第二步:启动机器,设置网络环境和开启 SSH 服务

@genedna
genedna / fix-brew-link.sh
Created May 6, 2014 08:38
Fix the brew link git permissions problem.
@genedna
genedna / mysql.sql
Created May 8, 2014 09:34
MySQL 日常操作的一些 SQL 语句
INSERT INTO mysql.user(Host,User,Password) VALUES ('localhost', 'arkors', password('arkors'));
FLUSH PRIVILEGES;
CREATE DATABASE `arkors_test` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON arkors_test.* TO arkors@localhost IDENTIFIED BY 'arkors';
FLUSH PRIVILEGES;
@genedna
genedna / app.go
Last active August 29, 2015 14:01
Martini With Ginkgo
package main
import (
"github.com/go-martini/martini"
"github.com/martini-contrib/render"
"net/http"
"strconv"
)
type Application struct {
@genedna
genedna / email.go
Created July 2, 2014 15:44
Golang 从腾讯企业邮箱的发送邮件和一个 HTML 模板。
package main
import (
"crypto/tls"
"fmt"
"log"
"net"
"net/smtp"
)

#Golang Markdown Librarise Analytics

package main
import (
"fmt"
"reflect" // 这里引入reflect模块
)
type User struct {
Name string "user name" //这引号里面的就是tag
Passwd string "user passsword"
FROM docker.cn/docker/docker-dev:v1.2.0
VOLUME /var/lib/docker
WORKDIR /go/src/github.com/docker/docker
ENV DOCKER_BUILDTAGS apparmor selinux
ENTRYPOINT ["hack/dind"]
COPY . /go/src/github.com/docker/docker
@genedna
genedna / .vimrc
Last active August 29, 2015 14:08
set fo+=o " Automatically insert the current comment leader after hitting 'o' or 'O' in Normal mode.
set fo-=r " Do not automatically insert a comment leader after an enter
set fo-=t " Do no auto-wrap text using textwidth (does not apply to comments)
set nu
set nowrap
set textwidth=0 " Don't wrap lines by default
set wildmode=longest,list " At command line, complete longest common string, then list alternatives.
set backspace=indent,eol,start " more powerful backspacing
@genedna
genedna / gist:99853b7aa85f70dab7b6
Last active March 21, 2019 06:34
Terminal Developing Environment Config
git clone https://github.com/vim/vim.git
sudo yum install -y ruby ruby-devel lua lua-devel luajit luajit-devel ctags mercurial python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed ncurses-devel
./configure --with-features=huge --enable-multibyte --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --enable-luainterp --enable-gui=gtk2 --enable-cscope --with-tlib=ncurses --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim80
sudo make install