Skip to content

Instantly share code, notes, and snippets.

Avatar

Khapota khapota

View GitHub Profile
View config.el
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
(setq exec-path (append '("~/bin" "~/.asdf/shims" "/usr/local/bin" "/usr/local/sbin") exec-path))
(add-to-list 'load-path "/Volumes/iMacPro/Src/tern/emacs/")
(autoload 'tern-mode "tern.el" nil t)
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Kan"
View config.el
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
(setq exec-path (append '("~/bin" "~/.asdf/shims" "/usr/local/bin" "/usr/local/sbin") exec-path))
(add-to-list 'load-path "/Volumes/iMacPro/Src/tern/emacs/")
(autoload 'tern-mode "tern.el" nil t)
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Kan"
View config.el
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
(setq exec-path (append '("~/bin" "~/.asdf/shims" "/usr/local/bin" "/usr/local/sbin") exec-path))
(add-to-list 'load-path "/Volumes/iMacPro/Src/tern/emacs/")
(autoload 'tern-mode "tern.el" nil t)
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Kan"
View config.el
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
(setq exec-path (append '("~/bin" "~/.asdf/shims" "/usr/local/bin" "/usr/local/sbin") exec-path))
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Kan"
user-mail-address "khanhpt@tuta.io")
View How to install tmux on centos 7
tmux is a "terminal multiplexer", it enables a number of terminals to be accessed and controlled from a single terminal.
If you use Debian/Ubuntu, you can just run apt-get install tmux, and voila.
Since the title was about centos 7, then do the following step to install tmux.
(1). tmux has a library dependency on libevent which, of course, isn’t installed by default.
$ wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
$ tar xzvf libevent-2.0.21-stable.tar.gz
$ cd libevent-2.0.21-stable
@khapota
khapota / mongoperf.md
Last active Aug 25, 2017
Mongo Performance check and tune
View mongoperf.md
@khapota
khapota / mongokill.js
Created Aug 21, 2017
Kill long query
View mongokill.js
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5 && op.op == 'query') printjson(op);
}
)
@khapota
khapota / mongokill.js
Created Aug 21, 2017
Kill long query
View mongokill.js
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5 && op.op == 'query') printjson(op);
}
)
@khapota
khapota / vundle.sh
Created Aug 18, 2017
Install vundle
View vundle.sh
#!/bin/bash
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
View vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
You can’t perform that action at this time.