by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
require 'rubygems' | |
require 'rake' | |
require 'rdoc' | |
require 'date' | |
require 'yaml' | |
require 'tmpdir' | |
require 'jekyll' | |
require 'reduce' | |
require 'serve' |
.highlight .hll { background-color: #ffffcc } | |
.highlight { background: #323b3d; color: #bdd6db; background-color: #323b3d } | |
.highlight .c { color: #537178; background-color: #323b3d } /* Comment */ | |
.highlight .err { color: #bdd6db; background-color: #323b3d } /* Error */ | |
.highlight .g { color: #bdd6db; background-color: #323b3d } /* Generic */ | |
.highlight .k { color: #b1e2f2; background-color: #323b3d } /* Keyword */ | |
.highlight .l { color: #bdd6db; background-color: #323b3d } /* Literal */ | |
.highlight .n { color: #bdd6db; background-color: #323b3d } /* Name */ | |
.highlight .o { color: #bdd6db; background-color: #323b3d } /* Operator */ | |
.highlight .x { color: #bdd6db; background-color: #323b3d } /* Other */ |
defmodule Phtest.OrientConnector do | |
use Jazz | |
@base_url "http://localhost:2480/" | |
@database "Phtest" | |
@user "admin" | |
@password "admin" | |
@basic_auth [basic_auth: {@user, @password}] | |
def get(document_id, type) do | |
OrientConnector.get_document(document_id) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# /etc/security/limits.d/10tuning.conf | |
# max number of open files | |
* soft nofile 999999 | |
* hard nofile 999999 | |
root soft nofile 999999 | |
root hard nofile 999999 | |
# max stack size (KB) | |
* soft stack unlimited |
#!/bin/bash | |
# Fixes sudo issues | |
if (($EUID != 0)); then | |
if [[ -t 1 ]]; then | |
sudo "$0" "$@" | |
else | |
exec 1>output_file | |
gksu "$0 $@" | |
fi |
#!/bin/bash | |
# Fixes sudo issues | |
if (($EUID != 0)); then | |
if [[ -t 1 ]]; then | |
sudo "$0" "$@" | |
else | |
exec 1>output_file | |
gksu "$0 $@" | |
fi |