#Unix Toolbox
##Unix Toolbox revision 14.4
Error reports and comments are m
#!/bin/bash | |
# Colors | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NO_COLOR='\033[0m' | |
BLUE='\033[0;34m' | |
YELLOW='\033[0;33m' | |
NO_COLOR='\033[0m' |
Dear coworkers, | |
Earlier this week Puerto Rico was hit by one of the most powerful hurricanes ever recorded in the Atlantic. The life and economic loss are expected to be massive. In most of the islands roads are either blocked or washed out, and the electricity and telecoms systems went down broadly.(In a personal note: <ADD SOMETHING ABOUT YOUR FAMILY OR FRIENDS IN THE ISLAND>). | |
While it's still early to assess all damage, the early reports are incredibly awful. Much like the areas of US that were affected by Harvey and Irma, Maria will leave a painful scar. Electricity, food, & clean water will be scarce for months. Some areas will probably be completely disconnected from the outer world for a while. | |
I share this with you so you can appreciate the gravity of the situation and ask you for your help. | |
How to help: |
# app deps | |
sudo yum install git | |
# erlang deps | |
sudo yum groupinstall "Development Tools" | |
sudo yum install ncurses-devel | |
# erlang | |
wget http://www.erlang.org/download/otp_src_18.1.tar.gz | |
tar -zxvf otp_src_18.1.tar.gz |
#Unix Toolbox
##Unix Toolbox revision 14.4
module { | |
"name": "schema", | |
"description": "JSON Schema Inference", | |
"version": "0.0.3.1", | |
"homepage": "https://gist.github.com/pkoppstein/a5abb4ebef3b0f72a6ed", | |
"license": "MIT", | |
"author": "pkoppstein at gmail dot com" | |
}; | |
# NEWS: |
[Unit] | |
Description=consul-template | |
Requires=network-online.target | |
After=network-online.target consul.service vault.service | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/consul-template | |
Restart=on-failure | |
ExecStart=/usr/local/sbin/consul-template $OPTIONS -config=/etc/consul-template.d |
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist | |
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist | |
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz | |
sudo pkgutil --forget org.macosforge.xquartz.pkg | |
# Log out and log in |
(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.
A multi-level groupBy for arrays inspired by D3's nest operator.
Nesting allows elements in an array to be grouped into a hierarchical tree
structure; think of it like the GROUP BY
operator in SQL, except you can have
multiple levels of grouping, and the resulting output is a tree rather than a
flat table. The levels in the tree are specified by key functions.
See this fiddle for live demo.
[your-slack].slack.com/services/new/hubot
If you want to rename the automatically generated heroku domain name: