This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/data/models/index.js | |
import mongo from '../mongo'; | |
import User from './User'; | |
import UserLogin from './UserLogin'; | |
import UserClaim from './UserClaim'; | |
import UserProfile from './UserProfile'; | |
async function sync() { | |
await mongo.disconnect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun dont-kill-emacs() | |
"Disable C-x C-c binding execute kill-emacs." | |
(interactive) | |
(error (substitute-command-keys "To exit emacs: \\[kill-emacs]"))) | |
(global-set-key (kbd "C-x C-c") 'dont-kill-emacs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; late-night-theme.el --- Late Night theme for Emacs 24 | |
;; Author: Alex Schroeder | |
;; Maintainer: Daehyub Kim <lateau at gmail.com> | |
;; URL: https://gist.github.com/4420862 | |
;; Version: 0.0 | |
;; Keywords: theme, color | |
;;; Commentary: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; simple-mode-line.el --- Simplified Mode Line for Emacs 24 | |
;; Author: Daehyub Kim <lateau at gmail.com> | |
;; URL: https://gist.github.com/4511988 | |
;; Version: 0.3 | |
;; Keywords: mode-line, color | |
;;; Commentary: | |
;; This simplified mode line is adjusted to *white* themes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install ChefDK | |
2. Launch "Chef Development Kit" as administrator | |
3. gem install kitchen-hyperv | |
4. Configure driver on .kitchen.yml per | |
driver: | |
name: hyperv | |
parent_vhd_name: TestKitchen.vhd | |
parent_vhd_folder: "C:/Users/Public/Documents/Hyper-V/Virtual Hard Disks/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This remove all keybindings to commands. | |
const commands = services['commands']; | |
Object.keys(commands.commands).forEach(c => { | |
var cmd = commands.commands[c], | |
noBinding = ''; | |
commands.bindKey(noBinding, cmd); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get all commands | |
/*global services*/ | |
const commands = services['commands']; | |
var keys = Object.keys(commands.commands); // ['passKeysToBrowser, cancelBrowserAction, ...] | |
// Complete list | |
// Some are not listed on their key bindings and API documentation. | |
addCursorAbove | |
addCursorAboveSkipCurrent | |
addCursorBelow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
############################################### | |
# To use: | |
# wget -c https://gist.github.com/lateau/6238598/raw/7f7fa79be5104a7fa6a54a62e1ce6348313bc9a9/install-redis.sh | |
# chmod 777 install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
declare -r install_redis_redis_version="2.6.14" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun copy-forward-all() | |
(interactive) | |
(kill-ring-save (point) (line-end-position)) | |
(message "Yanked!")) | |
;; (global-set-key (kbd "M-k") 'copy-forward-all) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun delete-forward-all () | |
(interactive) | |
(let ((beg (point))) (move-beginning-of-line 1) (delete-region beg (point)))) | |
(global-set-key (kbd "C-u") 'delete-forward-all) |
NewerOlder