Skip to content

Instantly share code, notes, and snippets.

View simbo's full-sized avatar
:octocat:

Simon Lepel simbo

:octocat:
View GitHub Profile
# oh-my-zsh config
export ZSH=$HOME/.oh-my-zsh
export UPDATE_ZSH_DAYS=13
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="dd.mm.yyyy"
plugins=(git emoji-clock nvm)
# paths
export PATH=$HOME/.bin:/usr/local/bin:$PATH
export MANPATH="/usr/local/man:$MANPATH"
@simbo
simbo / Preferences.sublime-settings
Created April 8, 2015 11:33
Preferences.sublime-settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 1,
"caret_style": "smooth",
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme",
"font_face": "Menlo",
"font_size": 17,
@simbo
simbo / Package Control.sublime-settings
Created April 8, 2015 11:36
Package Control.sublime-settings
{
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"All Autocomplete",
"ApacheConf.tmLanguage",
"AutoFileName",
@simbo
simbo / node-run-shell-cmd.js
Created April 28, 2015 09:01
[node] run shell commands without using an extra package.
var childProcess = require('child_process');
var cwd = process.cwd();
var childProcessOptions = {
stdio: 'inherit',
cwd: cwd
};
childProcess.spawnSync('my-super-commandline-command', ['param1', 'param2'], childProcessOptions);
@simbo
simbo / create-a-vagrant-box.md
Last active August 29, 2015 14:21
Create a vagrant box

Create a vagrant box

Configure the virtual hardware

Create a new Virtual Machine in VirtualBox with the following settings:

  • Name: my-vagrant-box
  • Type: Linux
@simbo
simbo / create-and-publish-a-node-package.md
Last active August 29, 2015 14:26
Create and publish a node package.

Create and publish a node package.

…or actually…

__How to create and publish a node package using JSHint and JSCS for linting, Mocha for testing, Istanbul for code coverage,

@simbo
simbo / setup-sublimelinter.md
Created August 3, 2015 13:53
Setup SublimeLinter with Linters for Javascript and Stylus
'use strict';
var autoPlug = require('auto-plug'),
glob = require('glob'),
path = require('path');
function Plug() {
this.dir = path.join(path.dirname(module.parent.filename), '.gulpplug');
this.tasksDir = path.join(this.dir, 'tasks');
this.taskGlob = '**/*.js';
@simbo
simbo / use-github-project-subfolder-as-github-project-page.md
Created October 5, 2015 22:00
Use GitHub project subfolder as GitHub pages project page

Create an empty branch for your github page:

git checkout --orphan gh-pages

Commit at least one file to this branch and push it to GitHub.

Switch to your master branch.

'use strict';
var values = ['A', 'B', 'C', 'D'];
function getCombinations(parts) {
var mix = function(rest) {
return rest.length === 0 ? '' : rest.join('');
};
var combine = function(combinations, firstPart, i, _parts) {
var rest = _parts.filter(function(part) {