Skip to content

Instantly share code, notes, and snippets.

Mark Maglana relaxdiego

Block or report user

Report or block relaxdiego

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ta.txt
log --graph --pretty=oneline --abbrev-commit --decorate --color --all
View gist:8506ee842f70c44ac2f0
kind: List
apiVersion: v1beta3
- kind: ReplicationController
apiVersion: v1beta3

Gateway IP ( is NOT specified

Host 1

root@host1:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         UG    0      0        0 eth0        *        U     0      0        0 eth0
relaxdiego / gist:be7b87cae8c2d51d5ee4
Last active Aug 13, 2018 — forked from dayyan/gist:e62bddc65ce1af735f0f
Setting up git send-email in OS X
View gist:be7b87cae8c2d51d5ee4
  1. Configure Gmail in you gitconfig:
  smtpserver =
  smtpserverport = 587
  smtpencryption = tls
  smtpuser = <gmail email address>
  from = <email address for From: field>
View aviator.yml
provider: openstack
name: identity
request: create_token
validator: list_tenants
api_version: v3
class TestSuite:
def test_case(self, mock_class):
# Delay the evaluation of Mock() so that we get
# a new mock object for each time the (mocked)
# class constructor is called.
def new_mock_obj(*args, **kwargs):
mock_obj = Mock()
mock_obj.some_function.return_value = 'w00t'
View bash_profile
# git completion
source /usr/local/etc/bash_completion.d/git-completion.bash
source /usr/local/etc/bash_completion.d/
# unstaged (*) and staged (+) changes
# If something is stashed, then a '$' will be shown next to the branch name
relaxdiego /
Last active Nov 4, 2019 — forked from surjikal/
Installing Graphite in OS X Mavericks

Follow these steps to install graphite on OS X Mavericks.


  • Homebrew
  • Python 2.7
  • Git

Install dependencies

Install Cairo and friends

View embracing_prototypal_object_model.js
RB.Object = {
// Douglas Crockford's technique for object extension
create: function(){
function F(){}
F.prototype = arguments[0];
var obj = new F();
// Add all the other arguments as mixins that
// 'write over' any existing methods
View mana output
[1] guard(main)> Run options: --seed 2796
# Running tests:
Finished tests in 0.001458s, 685.8711 tests/s, 685.8711 assertions/s.
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
You can’t perform that action at this time.