Skip to content

Instantly share code, notes, and snippets.

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

Kane Blueriver kxxoling

💉
💊💊💊
View GitHub Profile
""""""""""""""""""""""
" Leader
""""""""""""""""""""""
" let mapleader=,
" can't set leaders in Obsidian vim, so the key just has to be used consistently.
" However, it needs to be unmapped, to not trigger default behavior: https://github.com/esm7/obsidian-vimrc-support#some-help-with-binding-space-chords-doom-and-spacemacs-fans
unmap ,
" map ; to : in normal mode, so that I don’t rely on the shift key
" nmap ; :
@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 / gist:cafbd26dd7f4b4ed680e
Last active August 29, 2015 14:26 — forked from ianbattersby/gist:4641450
Ubuntu TeamCity agent setup
#!/bin/bash
# THESE ARE NOTES, NOT TESTED AS SCRIPT!
# We need the following to get and run teamcity agent
sudo apt-get install openjdk-7-jre-headless
sudo apt-get install unzip #For unzipping buildAgent.zip
# For compiling Simple.Web
sudo apt-get install ruby1.9.1
@kxxoling
kxxoling / teamcity-agent-ubuntu.md
Last active August 29, 2015 14:26 — forked from guifromrio/teamcity-agent-ubuntu.md
Instructions to Setup Teamcity Agent on EC2 Ubuntu 12.04.2 Linux with NodeJS and PhantomJS

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kxxoling
kxxoling / Makefile
Last active August 29, 2015 14:17 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# 这里我将向大家介绍 `make` 的优秀之处,虽然语法上有点“奇怪”,但却是一个高效、
# 快速、强大的程序构建解决方案。
#
# 学完了这里的基础之后,建议你前往 GNU 官网
# http://www.gnu.org/software/make/manual/make.html
# 更加深入 `make` 的用法。
# `make` 命令必须在一个存在 `Makefile` 文件的目录使用,当然,你也可以使用