This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'faraday' | |
require 'faraday_middleware' | |
require 'json' | |
require 'pry' | |
class SpacesApi | |
LIBRATO_API = 'https://metrics-api.librato.com' | |
LIBRATO_API_VERSION = 'v1' | |
ENDPOINT = [LIBRATO_API, LIBRATO_API_VERSION].join('/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ======================================= | |
# OS X — ONE CLICK — EJECT ALL DISKS | |
# ======================================= | |
# Open Script Editor on OS X | |
# Copy and paste this file in | |
# Pre-High Sierra: Save As > Application | |
# High Sierra: Export > File Format > Application | |
# Name it "Eject All Disks" | |
# Drag created application to Dock | |
# Now you can eject all external disks with one click from Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# References | |
# http://www.computerhope.com/unix/nc.htm#03 | |
# https://github.com/daniloegea/netcat | |
# http://unix.stackexchange.com/questions/26715/how-can-i-communicate-with-a-unix-domain-socket-via-the-shell-on-debian-squeeze | |
# http://unix.stackexchange.com/questions/33924/write-inside-a-socket-open-by-another-process-in-linux/33982#33982 | |
# http://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip | |
# http://www.dest-unreach.org/socat/ | |
# http://stuff.mit.edu/afs/sipb/machine/penguin-lust/src/socat-1.7.1.2/EXAMPLES |