Skip to content

Instantly share code, notes, and snippets.

@lateau
lateau / c9-remove-default-keybindings.js
Last active February 16, 2016 04:00
Cloud9 Remove default keybindings
// 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);
});
@lateau
lateau / test-kitchen-hyperv.txt
Created October 31, 2016 12:46
Test Kitchen(ChefDK) Hyper-V
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/"
@lateau
lateau / models.js
Last active February 26, 2022 10:54
kriasoft/react-starter-kit with mongoosejs
// 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();