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
| ################################################################## | |
| # /etc/elasticsearch/elasticsearch.yml | |
| # | |
| # Base configuration for a write heavy cluster | |
| # | |
| # Cluster / Node Basics | |
| cluster.name: logng | |
| # Node can have abritrary attributes we can use for routing |
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 client; | |
| // cc BatchSameRowExample Example application using batch operations, modifying the same row | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import org.apache.hadoop.conf.Configuration; | |
| import org.apache.hadoop.hbase.HBaseConfiguration; | |
| import org.apache.hadoop.hbase.TableName; |
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
| # setup | |
| # delete index | |
| curl -XDELETE 'http://localhost:9200/hotels/' | |
| # create index | |
| curl -XPOST 'http://localhost:9200/hotels/' | |
| # create mapping | |
| curl -XPOST localhost:9200/hotels/nested_hotel/_mapping -d '{ | |
| "nested_hotel":{ | |
| "properties":{ | |
| "rooms": { |
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
| # | |
| # Licensed to the Apache Software Foundation (ASF) under one or more | |
| # contributor license agreements. See the NOTICE file distributed with | |
| # this work for additional information regarding copyright ownership. | |
| # The ASF licenses this file to You 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 | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
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
| # This is an example of the Stack Exchange Tier 1 HAProxy config | |
| # The only things that have been changed from what we are running are: | |
| # 1. User names have been removed | |
| # 2. All Passwords have been remove | |
| # 3. IPs have been changed to use the example/documentation ranges | |
| # 4. Rate limit numbers have been changed to randome numbers, don't read into them | |
| userlist stats-auth | |
| group admin users $admin_user | |
| user $admin_user insecure-password $some_password |
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
| # coding: utf-8 | |
| # command example: | |
| # $ spark-submit spark_log_extract.py \ | |
| # --name test \ | |
| # --notblankkeys dn,stm,ev_ac,pg_url \ | |
| # --filterregex ".*(=ac_pl\`|=ac_dl\`).*" \ | |
| # --usegzip \ | |
| # /path/to/source \ | |
| # /path/to/atom \ |
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
| server { | |
| listen 80; | |
| server_name www.yupyupnope.com; | |
| rewrite ^/(.*) https://yupyupnope.com/$1 permanent; | |
| } | |
| server { | |
| listen 80; | |
| server_name yupyupnope.com; | |
| rewrite ^/(.*) https://yupyupnope.com/$1 permanent; |
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
| # coding: utf-8 | |
| from TCLIService import TCLIService | |
| from TCLIService.ttypes import TOpenSessionReq, TGetTablesReq, TFetchResultsReq, \ | |
| TStatusCode, TGetResultSetMetadataReq, TGetColumnsReq, TType, TTypeId, \ | |
| TExecuteStatementReq, TGetOperationStatusReq, TFetchOrientation, TCloseOperationReq, \ | |
| TCloseSessionReq, TGetSchemasReq, TCancelOperationReq, THandleIdentifier, \ | |
| TOperationHandle, TOperationState | |
| from thrift import Thrift |
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
| #!/usr/bin/env python | |
| #coding:utf-8 | |
| import logging | |
| import requests | |
| import json | |
| _session = requests.Session() | |
| #APT KEY |