Skip to content

Instantly share code, notes, and snippets.

📛
Getting schooled.

Bryant Luk bluk

📛
Getting schooled.
Block or report user

Report or block bluk

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 keybase.md

Keybase proof

I hereby claim:

  • I am bluk on github.
  • I am bluk (https://keybase.io/bluk) on keybase.
  • I have a public key whose fingerprint is 916E DDD8 3F26 1884 C87D 39FB 640B B0CB 9E01 E8B7

To claim this, I am signing this object:

View Consul ACL
key "_rexec/" {
policy = "write"
}
service "" {
policy = "read"
}
event "" {
policy = "write"
@bluk
bluk / reinstall.sh
Last active Aug 29, 2015
Sample Magento 2 Development Environment Reinstall Script
View reinstall.sh
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2015 Bryant Luk
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@bluk
bluk / AddressFactory.php
Last active Aug 29, 2015
Magento 2 Generated Code Examples
View AddressFactory.php
<?php
namespace Magento\Customer\Model;
/**
* Factory class for \Magento\Customer\Model\Address
*/
class AddressFactory
{
/**
* Object Manager instance
View consul.service.sh
#!/bin/bash
source /etc/environment
if etcdctl mk /consul.io/bootstrap_node ${COREOS_PRIVATE_IPV4}; then
flags=""
else
flags="::$( etcdctl get /consul.io/bootstrap_node )"
fi
@bluk
bluk / bootstrap-consul.sh
Last active Aug 24, 2016
Consul Bootstrap on CoreOS
View bootstrap-consul.sh
#!/bin/bash
# From https://gist.github.com/philips/56fa3f5dae9060fbd100
source /etc/environment
name=$(cat /etc/machine-id)
if [ ! -f /opt/consul ]; then
mkdir /opt
mkdir /var/lib/consul
You can’t perform that action at this time.