###Quick links to get started:
http://nithinbekal.com/posts/rails-presenters/
http://eewang.github.io/blog/2013/09/26/presenting-the-rails-presenter-pattern/
This is a collection of links, examples and rants about Presenters/Decorators in Rails.
###Quick links to get started:
http://nithinbekal.com/posts/rails-presenters/
http://eewang.github.io/blog/2013/09/26/presenting-the-rails-presenter-pattern/
This is a collection of links, examples and rants about Presenters/Decorators in Rails.
| #!/usr/bin/env bash | |
| # based on discussion: https://github.com/atom-haskell/haskell-ghc-mod/issues/160 | |
| origdir=$PWD | |
| # Source nix env because this script is intended to be | |
| # used by editors, e.g. Atom which doesn't source .bashrc, | |
| # and we need NIX_PATH to be set correctly. | |
| source ~/.nix-profile/etc/profile.d/nix.sh |
I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.
There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:
:vs **/*<partial file name><Tab>Kafka 0.11.0.0 (Confluent 3.3.0) added support to manipulate offsets for a consumer group via cli kafka-consumer-groups command.
kafka-consumer-groups --bootstrap-server <kafkahost:port> --group <group_id> --describeNote the values under "CURRENT-OFFSET" and "LOG-END-OFFSET". "CURRENT-OFFSET" is the offset where this consumer group is currently at in each of the partitions.
| # | |
| # Ubuntu 18.04 (Bionic Beaver) | |
| # | |
| # Basic packages i usually install. | |
| # | |
| # Author: Julius Beckmann <[email protected]> | |
| # | |
| # Upgraded Script from 17.04: https://gist.github.com/h4cc/09b7fe843bb737c8039ac62d831f244e | |
| # Upgraded Script from 16.04: https://gist.github.com/h4cc/fe48ed9d85bfff3008704919062f5c9b |
| streams | |
| .store("my_entity_store", QueryableStoreTypes.keyValueStore()); | |
| .get(entityId); |
| #cloud-config | |
| # Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease). | |
| hostname: myhost | |
| # Authorize SSH keys for the `rancher` sudoer user | |
| ssh_authorized_keys: | |
| - ssh-rsa AAA...ZZZ example1@rancher | |
I largely followed Florin's blog post, but have a few notes to add regarding issues I encountered:
gpg-agent only automatically starts when gpg is used; for ssh, you'll need to ensure it's running.list command inside gpg --edit-card, look for the Key attributes line to see what is currently selected. On my YubiKey 4, it defaulted to 2048 bits for all keys:Key attributes ...: rsa2048 rsa2048 rsa2048
| #!/bin/bash | |
| # !!WARNING!! | |
| # This will DELETE all efforts you have put into configuring nix | |
| # Have a look through everything that gets deleted / copied over | |
| nix-env -e '.*' | |
| rm -rf $HOME/.nix-* | |
| rm -rf $HOME/.config/nixpkgs |