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 -*- | |
| ## | |
| ## | |
| # Copyright (C) | |
| # | |
| # This program is free software; you can redistribute it and/or | |
| # modify it under the terms of the GNU General Public License | |
| # as published by the Free Software Foundation. | |
| # 本程序是免费软件,基于GPL许可发布。 |
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 ftplib | |
| import sys | |
| from progressbar import ProgressBar | |
| from progressbar.widgets import Percentage, FileTransferSpeed, ETA, Bar | |
| if len(sys.argv) < 4: | |
| print("请输入ftp地址,用户,密码和文件".decode("utf8")) | |
| sys.exit(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
| import java.io.IOException; | |
| import java.util.*; | |
| import org.apache.hadoop.conf.*; | |
| import org.apache.hadoop.io.*; | |
| import org.apache.hadoop.mapreduce.Job; | |
| import org.apache.hadoop.mapreduce.Mapper; | |
| import org.apache.hadoop.mapreduce.Reducer; | |
| import org.apache.hadoop.mapreduce.lib.input.*; | |
| import org.apache.hadoop.mapreduce.lib.output.*; |
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 |
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
| 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 | |
| # 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
| # 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
| # | |
| # 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 | |
| # |