If this codebase is production, handles money, or touches sensitive data: treat this audit loop as a high-risk operation. Run with least privilege, avoid exporting long-lived credentials in your shell, and keep the agent in read-only mode.
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
| { | |
| "displayName": "Python Programming", | |
| "blocks": [ | |
| { | |
| "type": "input", | |
| "inputType": "firehose", | |
| "id": "aaaexaacrvo2o", | |
| "firehoseSeconds": 604800 | |
| }, | |
| { |
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 torch, grp, pwd, os, subprocess | |
| devices = [] | |
| try: | |
| print("\n\nChecking ROCM support...") | |
| result = subprocess.run(['rocminfo'], stdout=subprocess.PIPE) | |
| cmd_str = result.stdout.decode('utf-8') | |
| cmd_split = cmd_str.split('Agent ') | |
| for part in cmd_split: | |
| item_single = part[0:1] | |
| item_double = part[0:2] |
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
| // ==UserScript== | |
| // @name Recaptcha Solver (Automatically solves Recaptcha in browser) | |
| // @namespace Recaptcha Solver | |
| // @version 2.1 | |
| // @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser | |
| // @author engageub | |
| // @match *://*/recaptcha/* | |
| // @connect engageub.pythonanywhere.com | |
| // @connect engageub1.pythonanywhere.com | |
| // @grant GM_xmlhttpRequest |
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 | |
| """ | |
| Written by Nathan Prziborowski | |
| Github: https://github.com/prziborowski | |
| This code is released under the terms of the Apache 2 | |
| http://www.apache.org/licenses/LICENSE-2.0.html | |
| The property collector can be used to fetch a subset of properties | |
| for a large amount of objects with fewer round trips that iterating. | |
| This sample shows how to use the TraversalSpec to get properties | |
| of another object without multiple calls. |
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 bash | |
| # Launch Centos/RHEL 7 VM with at least 8 vcpu / 32Gb+ memory / 100Gb disk | |
| # Then run: | |
| # curl -sSL https://gist.github.com/abajwa-hw/9bf11bcaadaa7f94f9075432ce5b3d0b/raw | sudo -E sh | |
| export create_image=${create_image:-true} | |
| export ambari_version=2.7.3.0 | |
| #export mpack_url="http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.4.0.0/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.0.0-155.tar.gz" | |
| #export mpack_url="http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.4.1.0/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.0-5.tar.gz" | |
| export mpack_url="http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz" |
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 bash | |
| # Launch Centos/RHEL 7 Vm with at least 4 cores / 16Gb mem / 60Gb disk | |
| # Then run: | |
| # curl -sSL https://gist.github.com/abajwa-hw/c37d0e847054cf519813066401c33388/raw | sudo -E sh | |
| export ambari_password=${ambari_password:-StrongPassword} | |
| export db_password=${db_password:-StrongPassword} | |
| export nifi_password=${nifi_password:-StrongPassword} | |
| export ambari_services="ZOOKEEPER STREAMLINE NIFI KAFKA STORM REGISTRY NIFI_REGISTRY KNOX AMBARI_METRICS" | |
| export cluster_name=${cluster_name:-hdf} |
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
| # -*- encoding: utf-8 -*- | |
| # requires a recent enough python with idna support in socket | |
| # pyopenssl, cryptography and idna | |
| from OpenSSL import SSL | |
| from cryptography import x509 | |
| from cryptography.x509.oid import NameOID | |
| import idna | |
| from socket import socket |
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
| version: '3' | |
| services: | |
| splunksh: | |
| hostname: splunksh | |
| image: splunk/splunk:6.6.3 | |
| environment: | |
| SPLUNK_START_ARGS: --accept-license --answer-yes --no-prompt | |
| OPTIMISTIC_ABOUT_FILE_LOCKING: '1' | |
| ports: |
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 | |
| import argparse | |
| import os | |
| import sys | |
| from keystoneauth1 import loading | |
| from keystoneauth1 import session | |
| from cinderclient import client | |
| def get_client(args): |
NewerOlder