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
--- | |
# tasks file for roles/node-exporter | |
- name: check if node exporter exist | |
stat: | |
path: "{{ node_exporter_bin }}" | |
register: __check_node_exporter_present | |
- name: if node exporter exist get version | |
shell: "cat /etc/systemd/system/node_exporter.service | grep Version | sed s/'.*Version '//g" | |
register: __get_node_exporter_version |
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
--- | |
# tasks file for roles/node-exporter | |
- name: check if node exporter exist | |
stat: | |
path: "{{ node_exporter_bin }}" | |
register: __check_node_exporter_present | |
- name: if node exporter exist get version | |
shell: "cat /etc/systemd/system/node_exporter.service | grep Version | sed s/'.*Version '//g" | |
register: __get_node_exporter_version |
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
-- Week4 | |
CREATE TABLE flights_ls(year smallint, month smallint, day smallint, carrier varchar(80) distkey, origin char(3), dest char(3), aricraft_code char(3), miles int, departures int, minutes int, seats int, passangers int, freight_pounds int); | |
COPY flights_ls | |
FROM 's3://us-west-2-aws-training/awsu-spl/spl17-redshift/static/data/flights-usa' | |
credentials 'aws_iam_role=...' | |
GZIP | |
DELIMITER ',' | |
REMOVEQUOTES; | |
COMMIT; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Written by Brendan O'Connor, [email protected], www.anyall.org | |
# * Originally written Aug. 2005 | |
# * Posted to gist.github.com/16173 on Oct. 2008 | |
# Copyright (c) 2003-2006 Open Source Applications Foundation | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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
sub jwt { | |
if(req.http.cookie ~ "^([^;]+;[ ]*)*token=[^\.]+\.[^\.]+\.[^\.]+([ ]*;[^;]+)*$") { | |
set req.http.x-token = ";" + req.http.Cookie; | |
set req.http.x-token = regsuball(req.http.x-token, "; +", ";"); | |
set req.http.x-token = regsuball(req.http.x-token, ";(token)=","; \1="); | |
set req.http.x-token = regsuball(req.http.x-token, ";[^ ][^;]*", ""); | |
set req.http.x-token = regsuball(req.http.x-token, "^[; ]+|[; ]+$", ""); | |
set req.http.tmpHeader = regsub(req.http.x-token,"token=([^\.]+)\.[^\.]+\.[^\.]+","\1"); | |
set req.http.tmpTyp = regsub(digest.base64url_decode(req.http.tmpHeader),{"^.*?"typ"\s*:\s*"(\w+)".*?$"},"\1"); |
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
https://github.com/aspnet/EntityFramework |