Skip to content

Instantly share code, notes, and snippets.

@edi9999
edi9999 / conemuconfig.xml
Last active Aug 29, 2015
Configuration for ConEmu for my projects
View conemuconfig.xml
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2014-03-21 11:36:56" build="140310">
<value name="ColorTable00" type="dword" data="00362b00"/>
<value name="ColorTable01" type="dword" data="00423607"/>
<value name="ColorTable02" type="dword" data="00756e58"/>
<value name="ColorTable03" type="dword" data="00837b65"/>
<value name="ColorTable04" type="dword" data="002f32dc"/>
<value name="ColorTable05" type="dword" data="00c4716c"/>
View .vimrc
execute pathogen#infect()
set nocompatible
let mapleader = ","
au BufReadCmd *.docx call zip#Browse(expand("<amatch>"))
" Sets how many lines of history VIM has to remember
set history=700
" Enable filetype plugins
filetype plugin on
@edi9999
edi9999 / gist:11367676
Created Apr 28, 2014
Flush the database with Laravel
View gist:11367676
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class CreateNewDatabase extends Command {
/**
* The console command name.
View .vimrc
execute pathogen#infect()
set nocompatible
let mapleader = ","
au BufReadCmd *.docx call zip#Browse(expand("<amatch>"))
" Sets how many lines of history VIM has to remember
set history=700
" Enable filetype plugins
filetype plugin on
View gist:9244d3c0482097a27ad1
<?php
class AccountController extends \BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
View beequick.conf
<VirtualHost beequick:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
View test.js
(function() {
var MongoClient, config;
config = require('../config.js');
MongoClient = require('mongodb').MongoClient;
MongoClient.connect("mongodb://127.0.0.1:27017/" + config.General.database, function(err, db) {
var callback, callbackOne;
callback = function(err, hands) {
View test.js
(function() {
var MongoClient, config;
config = require('../config.js');
MongoClient = require('mongodb').MongoClient;
MongoClient.connect("mongodb://127.0.0.1:27017/" + config.General.database, function(err, db) {
var callback, callbackCount, condition;
callback = function(err, hands) {
View io.js_on_travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
env:
- NODE_SCRIPT=node
- NODE_SCRIPT=./iojs-v1.0.2-linux-x64/bin/iojs
View gist:27340c3b95de31596f89
language: node_js
node_js:
- "0.12"
- "0.11"
- "0.10"
- "iojs"