Skip to content

Instantly share code, notes, and snippets.

View ericmdev's full-sized avatar

Eric Mugerwa ericmdev

  • Manchester, United Kingdom
View GitHub Profile
@ericmdev
ericmdev / 0_reuse_code.js
Created February 6, 2016 11:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# to install the latest stable version:
brew install scala --with-docs
# to install scala-2.10:
brew install https://raw.github.com/gist/4340744/scala.rb --with-docs
# to switch versions (from https://github.com/mxcl/homebrew/wiki/External-Commands):
brew switch scala 2.9.2
brew switch scala 2.10.0
@ericmdev
ericmdev / README.md
Created January 11, 2016 13:25 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@ericmdev
ericmdev / 1_phpunit-api.md
Created January 10, 2016 13:50 — forked from loonies/1_phpunit-api.md
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this->anything()
@ericmdev
ericmdev / docker-remove-all.sh
Last active October 20, 2021 09:15 — forked from JeffBelback/docker-destroy-all.sh
Docker - stop and remove all containers and images.
#!/bin/bash
# Stop all containers.
docker stop $(docker ps -a -q)
# Delete all containers.
docker rm $(docker ps -a -q)
# Delete all images.
docker rmi --force $(docker images -q)
@ericmdev
ericmdev / .gitconfig
Created December 28, 2015 16:53 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@ericmdev
ericmdev / readme.md
Created December 26, 2015 19:03 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@ericmdev
ericmdev / gsm_test.sh
Created December 24, 2015 16:55
Test git submodule for gsm (Git Submodule Manager - https://github.com/ericmdev/gsm)
#!/bin/sh
echo 'You successfully added this git submodule to your project using gsm (Git Submodule Manager)'
@ericmdev
ericmdev / ansible_install_requirements.sh
Last active December 23, 2015 20:42
Install Ansible playbook requirements via Ansible Galaxy.
#!/bin/sh
# We use `--ignore-errors` on rerun to skip existing roles.
ansible-galaxy install -r $(PWD)/requirements.yml -p $(PWD)/roles/ --ignore-errors
@ericmdev
ericmdev / mac_install_ansible.sh
Last active December 23, 2015 19:03
Install Ansible on Mac OS X El Capitan via Pip.
#!/bin/sh
sudo easy_install pip
sudo pip install ansible