Skip to content

Instantly share code, notes, and snippets.

// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
angular.module('App', [
'ngCookies',
'ngResource',
'ngSanitize',
'btford.socket-io',
'ui.router',
'ui.bootstrap',
'angularUtils.directives.dirPagination',
'ncy-angular-breadcrumb',
'ngImgCrop'
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['mocha','chai'],
@suryakun
suryakun / README.md
Created July 8, 2017 05:12 — forked from Jxck/README.md
libuv TCP server/client sample

how to compile

$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices server.c -o server
$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices client.c -o client
FROM elixir:latest
WORKDIR /usr/src
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
RUN apt-get install -y nodejs && apt-get install -y inotify-tools
RUN mix archive.install --force https://github.com/phoenixframework/archives/raw/master/phx_new.ez
version: "3"
services:
serverphx:
build: .
volumes:
- ./:/usr/src
ports:
- "4000:4000"
db:
image: "postgres:latest"
@suryakun
suryakun / recreate-docker-compose
Created January 1, 2018 13:11
Recreate force docker-compose container
docker-compose rm -f
docker-compose pull
docker-compose up --build -d
@suryakun
suryakun / tmux-cheatsheet.markdown
Created January 6, 2018 04:57 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@suryakun
suryakun / macros.md
Created February 18, 2018 15:09 — forked from jessejanderson/macros.md
Don't Write Macros (but do learn how they work)
@suryakun
suryakun / install_elixir.md
Created June 7, 2018 22:00 — forked from rubencaro/install_elixir.md
Elixir installation guide

Elixir installation guide

Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.

The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir and you are good to go.

Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to a specific version, you will need to compile it yourself. Then asdf is your best friend.