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
| @app.route('/slack/slack-reactions', methods=['POST']) | |
| def slack_reactions(): | |
| logger.info(request) | |
| slack_payload = request.get_json() | |
| # slack event subscription verification | |
| slack_request_timestamp = request.headers["X-Slack-Request-Timestamp"] | |
| request_body = request.get_data().decode() | |
| slack_signature = request.headers["X-Slack-Signature"] |
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
| - alert: Bandwidth_In_Allowance_Exceeded | |
| expr: increase(node_ethtool_bw_in_allowance_exceeded{cluster=“my-cluster”}[10m]) > 30000 | |
| for: 10m | |
| labels: | |
| severity: warning | |
| annotations: | |
| summary: "Instance {{ $labels.instance }} bandwidth-in exceeded" | |
| description: "Instance {{ $labels.instance }} from {{ $labels.cluster }} has a bandwidth in allowwance greater than {{ $value }}" | |
| - alert: Bandwidth_Out_Allowance_Exceeded |
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
| - sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
| - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
| - sudo apt-get update | |
| - sudo apt-get install docker-ce | |
| - sudo usermod -aG docker ${USER} |
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
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ index.php?/$1 [L] |
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
| Rails.application.config.assets.precompile += %w( style.css ) | |
| Rails.application.config.assets.precompile += %w( air.css ) | |
| Rails.application.config.assets.precompile += %w( font-awesome.min.css ) | |
| Rails.application.config.assets.precompile += %w( plugins.js ) | |
| Rails.application.config.assets.precompile += %w( jquery-ui.js ) | |
| Rails.application.config.assets.precompile += %w( main.js ) |
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
| require 'rubygems' | |
| require 'httparty' | |
| require 'pp' | |
| require 'json' | |
| class ReservationsController < ApplicationController | |
| before_action :authenticate_user! | |
| before_action :set_reservation, only: [:approve, :decline] | |
| PAYMENT_URL = "https://api.monetbil.com/widget/v2.1/seriv-key-goes-here" | |
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 | |
| wget https://storage.googleapis.com/golang/go1.11.4.linux-amd64.tar.gz | |
| tar -C /usr/local -xzf go1.11.4.linux-amd64.tar.gz | |
| # Add it to our path | |
| echo -e "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile | |
| source /etc/profile |
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
| input { | |
| tcp { | |
| host => "149.202.191.163" | |
| port => 10514 | |
| codec => "plain" | |
| type => "syslog" | |
| ssl_enable => 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
| package com.nkdroid.firstaid.translate_app; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.view.View; | |
| import android.view.WindowManager; | |
| import android.widget.ArrayAdapter; | |
| import android.widget.Button; |
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 com.nkdroid.firstaid; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.SharedPreferences; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.view.LayoutInflater; |
NewerOlder