This file contains hidden or 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
| import sublime, sublime_plugin | |
| import os | |
| class DetectFileTypeCommand(sublime_plugin.EventListener): | |
| """ Detects current file type if the file's extension isn't conclusive """ | |
| """ Modified for Ruby on Rails and Sublime Text 2 """ | |
| """ Original pastie here: http://pastie.org/private/kz8gtts0cjcvkec0d4quqa """ | |
| def on_load(self, view): | |
| filename = view.file_name() |
This file contains hidden or 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
| ./target/debug/vector -q --config test.toml | |
| {"bar":2} | |
| {"foo":1} | |
| {"baz":3} | |
| {"foo":1} | |
| {"bar":2} | |
| {"baz":3} | |
| {"bar":2} | |
| {"foo":1} | |
| {"baz":3} |
This file contains hidden or 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
| ./target/debug/vector -q --config vector.toml | |
| {"foo":true} | |
| {"bar":true} |
This file contains hidden or 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
| source /usr/local/share/chruby/chruby.sh | |
| source /usr/local/share/chruby/auto.sh | |
| chruby 2 &>/dev/null | |
| if [ "$?" -eq "1" ] | |
| then | |
| chruby 1 &>/dev/null | |
| fi |
This file contains hidden or 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
| #![warn( | |
| unused, | |
| unused_import_braces, | |
| unused_lifetimes, | |
| unused_qualifications, | |
| unused_results, | |
| )] | |
| #![forbid( | |
| unsafe_code, | |
| future_incompatible, |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "time" | |
| "golang.org/x/net/context" | |
| "golang.org/x/oauth2/google" | |
| compute "google.golang.org/api/compute/v1" |
This file contains hidden or 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
| # apiVersion defines the version of the charts.yaml structure. Currently, | |
| # only "v1" is supported. | |
| apiVersion: v1 | |
| # name is the .Release.Name template value that charts can use in their | |
| # templates, which can be overridden by the "--name" CLI flag. If omitted, | |
| # "--name" is required. | |
| name: my-bundled-apps |
This file contains hidden or 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
| --- | |
| hello: world |
This file contains hidden or 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 | |
| # | |
| # This file is managed by Chef, using the <%= node.name %> cookbook. | |
| # Editing this file by hand is highly discouraged! | |
| # | |
| # Copyright (c) 2014 Jean Mertz <jean@mertz.fm> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or 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 | |
| source /etc/environment | |
| name=$(cat /etc/machine-id) | |
| if [ ! -f /opt/consul ]; then | |
| mkdir /opt | |
| mkdir /var/lib/consul | |
| wget https://dl.bintray.com/mitchellh/consul/0.4.1_linux_amd64.zip | |
| unzip 0.4.1_linux_amd64.zip |
NewerOlder