I’ve had success using Homebrew in a multi-user environment the following way:
Create a new (non-GUI) user, group and home directory:
sudo /usr/sbin/sysadminctl -addUser brew \
-fullName 'Homebrew' -admin -home /var/brew \
-password - -UID 430 \
I recently stumbled upon Falsehoods programmers believe about time zones, which got a good laugh out of me. It reminded me of other great lists of falsehoods, such as about names or time, and made me look for an equivalent for Ethereum. Having found none, here is my humble contribution to this set.
estimateGas will return the gas required by my transactionCalling estimateGas will return the gas that your transaction would require if it were mined now. The current state of the chain may be very different to the state in which your tx will get mined. So when your tx i
| const prom = require('prom-client'); | |
| const pm2 = require('pm2'); | |
| let pm2Bus; | |
| const REQ_TOPIC = 'get_prom_register'; | |
| function pm2exec(cmd, ...args) { | |
| return new Promise((resolve, reject) => { | |
| pm2[cmd](...args, (err, resp) => (err ? reject(err) : resolve(resp))); |
| <?php | |
| namespace AppBundle\Entity; | |
| use AppBundle\DependencyInjection\Container; | |
| class ActiveRecord extends Container | |
| { | |
| protected static function getDoctrine() | |
| { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Alpha Component</key> | |
| <real>1</real> | |
| <key>Blue Component</key> | |
| <real>0.19522881507873535</real> |
| <?php | |
| namespace AppBundle\Command; | |
| use Sylius\Component\Core\Model\ChannelPricingInterface; | |
| use Sylius\Component\Core\Model\ProductInterface; | |
| use Sylius\Component\Core\Model\ProductVariantInterface; | |
| use Sylius\Component\Product\Model\ProductAssociationInterface; | |
| use Sylius\Component\Product\Model\ProductAssociationTypeInterface; | |
| use Sylius\Component\Taxonomy\Model\TaxonInterface; |
| #!/bin/bash | |
| FROM=$1 | |
| [[ -n "$FROM" ]] || exit 1 | |
| for ITEM in ns secrets configmaps rc deployments svc; do | |
| for OBJ in $(kubectl --context=$FROM get $ITEM -o name); do | |
| kubectl --context=$FROM get $OBJ -o yaml | kubectl create -f - | |
| done |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
| <?php | |
| /** | |
| * User: bekco (Behçet Mutlu) | |
| * Date: 17/11/16 | |
| * Time: 17:52 | |
| */ | |
| namespace Acme\Oauth2Bundle\Oauth\Extension; |