Skip to content

Instantly share code, notes, and snippets.

View kxxoling's full-sized avatar
💉
💊💊💊

Kane Blueriver kxxoling

💉
💊💊💊
View GitHub Profile

2016 MacBook Pro 问题总结

现状

通过 CE-LINK 的 type-c 转 DP 接口与 DELL U2515 H 显示器连接,通过耳机口连接耳机。

问题

睡眠时唤醒问题

猜测与 HandOff 功能有关,通过关闭蓝牙已解决。

;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@kxxoling
kxxoling / mysql2sqlite.sh
Created August 31, 2016 03:27 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
@kxxoling
kxxoling / .spacemacs.el
Created August 23, 2016 12:08 — forked from anonymous/.spacemacs.el
Spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@kxxoling
kxxoling / gitlab-ce-ci-docker.md
Created August 12, 2016 07:53
使用 docker 安装 GitLab CE 和 GitLab CI

使用 docker 安装 GitLab CE 和 GitLab CI

安装 gitlab-ce:

docker run -p 8030:80 -d --name gitlab-ce\
    -v $HOME/app-conf/gitlab/etc:/etc/gitlab \
    -v $HOME/app-conf/gitlab/var/opt:/var/opt/gitlab \
    -v $HOME/app-conf/gitlab/log:/var/log/gitlab \
    gitlab/gitlab-ce

使用 glances 监控系统状态

在 docker 中运行

终端模式:

docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances

browser 模式:

for i in $( seq -f "%03g" 1 151 )
do
wget http://assets.pokemon.com/assets/cms2/img/pokedex/full/$i.png
done

GitBook 没有自动识别代码类型,指定代码类型后就可以根据语言语法高亮了,比如:

```html
<div class="some-div"></div>
```

的结果是:

@kxxoling
kxxoling / .editorconfig
Created July 20, 2016 06:18
.editorconfig file in my Python web project example.
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true