Steps to install node_exporter
-
Add user for node_exporter
sudo useradd --no-create-home --shell /bin/false node_exporter
| reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v CacheID /f |
| // Swift's untyped errors are a goddam PiTA. Here's the pattern I use to try to work around this. | |
| // The goal is basically to try to guarantee that every throwing function in the app throws an | |
| // ApplicationError instead of some unknown error type. We can't actually enforce this statically | |
| // But by following this convention we can simplify error handling | |
| enum ApplicationError: Error, CustomStringConvertible { | |
| // These are application-specific errors that may need special treatment | |
| case specificError1 | |
| case specificError2(SomeType) |
| #!/bin/bash | |
| set -e | |
| SALT_VERSION='3001' | |
| if [ -z "$1" ]; then | |
| echo 'Please run this script with argument <salt-master address>' | |
| exit 1 | |
| fi |
| package graceful | |
| import ( | |
| "context" | |
| "log" | |
| "os" | |
| "os/signal" | |
| "sync" | |
| "syscall" | |
| "time" |
The script in this gist will help you buid the Google Protobuf library for use with Mac OS X and iOS. Other methods (such as homebrew or direct compilation) have issues that prevent their use. The libraries built by this script are universal and support all iOS device architectures including the simulator.
This gist was adapted from the original at https://gist.github.com/BennettSmith/7150245, and updated to deal with Xcode 7 and iOS 9, and download protobuf version 3.0.0.
| #!/bin/bash | |
| # Setup | |
| # | |
| # - Create a new Jenkins Job | |
| # - Mark "None" for Source Control Management | |
| # - Select the "Build Periodically" build trigger | |
| # - configure to run as frequently as you like | |
| # - Add a new "Execute Shell" build step | |
| # - Paste the contents of this file as the command |
| # YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM | |
| # YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU | |
| # | |
| # On your laptop, connect to the Mac instance with SSH (similar to Linux instances) | |
| # | |
| ssh -i <your private key.pem> ec2-user@<your public ip address> | |
| # | |
| # On the Mac |