- concat-stream
- express
- body-parser
- crypto
- fs
- path
- split
- through2
- level
- level-sublevel
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
| awk 'FNR==1{print "// ------------------------------------------------------------------------------------------------"}1' *.md > combined.md |
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
| FROM ubuntu:trusty | |
| COPY ./entrypoint.sh / | |
| COPY ./run.sh / | |
| RUN chmod +x /entrypoint.sh | |
| RUN chmod +x /run.sh | |
| ENTRYPOINT ["/entrypoint.sh"] | |
| CMD ["start"] |
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
| var bcrypt = require('bcrypt') | |
| function checkUser(encrypted_password, password) { | |
| bcrypt.compare(password, encrypted_password, function(err, res) { | |
| console.log(err) | |
| console.log(res) //true or false | |
| }; |
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
| FROM ubuntu:trusty | |
| # make the "en_US.UTF-8" locale so splunk will be utf-8 enabled by default | |
| RUN apt-get update && apt-get install -y locales wget \ | |
| && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | |
| #Install Splunk | |
| RUN wget -qO splunkforwarder.deb http://download.splunk.com/releases/6.2.3/universalforwarder/linux/splunkforwarder-6.2.3-264376-linux-2.6-amd64.deb -o splunkforwarder.deb \ | |
| && dpkg -i splunkforwarder.deb \ | |
| && rm splunkforwarder.deb |
-
in /etc/resolvconf/resolv.conf.d/base
nameserver 8.8.8.8 -
in /etc/resolvconf/resolv.conf.d/head
nameserver 8.8.4.4 -
then run
sudo resolvconf -u
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
| eval _time=strptime(some_time_field,"%Y-%m-%dT%H:%M:%S%z") | |
| dedup source sortby +_time |
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
| module Spree | |
| Address.class_eval do | |
| _validators.reject!{ |key, value| key == :phone } | |
| _validate_callbacks.each do |callback| | |
| callback.raw_filter.attributes.reject! { |key| key == :phone } if callback.raw_filter.respond_to?(:attributes) | |
| end | |
| end | |
| end |
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
| heat_template_version: 2013-05-23 | |
| description: Deploy a CoreOS cluster that tracks the Stable Channel | |
| parameters: | |
| count: | |
| description: Number of CoreOS machines to deploy | |
| type: number | |
| default: 3 | |
| constraints: |