-
Install CNTLM in a folder where you have full rights to run it as administrator.
-
Open
cntlm.ini
and fill it :
Username YOUR_USERNAME
Domain YOUR_DOMAIN
#!/usr/bin/env python2 | |
# -*- encoding:utf-8 -*- | |
from __future__ import print_function | |
import argparse | |
import datetime | |
import exifread | |
import flickrapi | |
import os | |
import sys |
import paramiko | |
import requests | |
import base64 | |
import json | |
from simple_salesforce import Salesforce | |
#--------------------------------- | |
# FTP portion | |
#--------------------------------- |
#!/usr/bin/python | |
''' | |
Script to count messages by user posted to a channel for a given date range. | |
Install: | |
# sudo pip install slackclient | |
Also you will need to obtain a slack API token: | |
https://api.slack.com/docs/oauth-test-tokens |
# busmon.py | |
# Monitor CloudWatch Logs for EventBridge traffic. | |
# | |
# This script assumes that there is a Lambda function snooping an EventBridge bus | |
# and logging the events to a CloudWatch Logs group. | |
# | |
# Your format will likely be different and will require slight adjustments to the parsing | |
# logic below. The default format assumed for this version is: | |
# timestamp and other stuff|field|field|field|SNOOPED detail-type: <eventName> jsonString | |
# That is 5 pipe-delimited fields, where the last field is the only field used. |
import multiprocessing | |
import multiprocessing.managers | |
import os | |
import sys | |
from typing import AnyStr, Union | |
class QueueManager(multiprocessing.managers.BaseManager): | |
def get_queue(self, ident: Union[AnyStr, int, type(None)] = None) -> multiprocessing.Queue: |
We were unable to process your request. | |
We're required by law to inform you of the exact fees you will incur for international wires, including fees from other banks. For this request, we do not have the exact fees from other banks and therefore are not able to process it. If your request was in US dollars, you may try again in foreign currency -- this may help us determine the exact fees incurred for this transaction and enable us to send the wire request successfully. If you have received this message for both US dollars and foreign currency, it means we cannot process this request. We are sorry for any inconvenience. | |
#!/bin/bash | |
# set -eux | |
# This a simple script that builds static versions of Python and LibPython using musl-libc | |
# Find the associated article at: http://general-purpose.io/2015/12/06/compiling-python-and-libpython-statically-using-musl-libc/ |
################################################################## | |
## Native hdfs access (only on the cluster) | |
# conda install -c conda-forge libhdfs3=2.3.0=1 hdfs3 --yes | |
import hdfs3 | |
import pandas as pd | |
nameNodeHost = 'hadoopnn1.localdomain' | |
nameNodeIPCPort = 8020 | |
hdfs = hdfs3.HDFileSystem(nameNodeHost, port=nameNodeIPCPort) |
Install CNTLM in a folder where you have full rights to run it as administrator.
Open cntlm.ini
and fill it :
Username YOUR_USERNAME
Domain YOUR_DOMAIN
# -*- coding: utf-8 -*- | |
# Print iterations progress | |
def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100): | |
""" | |
Call in a loop to create terminal progress bar | |
@params: | |
iteration - Required : current iteration (Int) | |
total - Required : total iterations (Int) |