GNAT is NOT Algorithmic Trading

GNAT GNAT is NOT Algorithmic Trading! GNAT is a financial tool with two goals in mind: To provide a dashboard with the detailed stock/crypto information of your choice. To provide confidence in the Harvest framework which GNAT heavily relies on. How to use pip install -r requirements.txt python gnat.py -OR- python gnat.py my_config.yaml Input the requested information and then go to localhost:8050 to see the dashboard. How it works On start, GNAT asks the user what assets they want to […]

Read more

Malicious shortcut generator for collecting NTLM hashes from insecure file shares

Lnkbomb is used for uploading malicious shortcut files to insecure file shares. The vulnerability exists due to Windows looking for an icon file to associate with the shortcut file. This icon file can be directed to a penetration tester’s machine running Responder or smbserver to gather NTLMv1 or NTLMv2 hashes (depending on configuration of the victim host machine). The tester can then attempt to crack those collected hashes offline with a tool like Hashcat. The payload file is uploaded directly […]

Read more

Sparse Progressive Distillation: Resolving Overfitting under Pretrain-and-Finetune Paradigm

This is the Pytorch implementation for sparse progressive distillation (SPD). For more details about the motivation, techniques and experimental results, refer to our paper here. Environment Preparation (using python3) pip install -r requirements.txt Dataset Preparation The original GLUE dataset could be downloaded here. We use finetuned BERT_base as the teacher. For each task of GLUE benchmark, we obtain the finetuned model using the original huggingface transformers code with the following script.

Read more

Width customizer for Streamlit Apps

As of now, you can only change your Streamlit app’s layout width from narrow (default) to wide. You can switch to the wide mode persistently by adding this code at the top of your streamlit_app.py file: # Use the full page instead of a narrow central column st.set_page_config(layout=”wide”) Now, wouldn’t it be nice to have custom layout widths? Wouldn’t it be cool to be able to change these custom widths on the fly? Wouldn’t it be even sweeter to change […]

Read more

Tinyman exploit finder for python

There was a big tinyman exploit. You can read about it here: https://www.reddit.com/r/HEADLINECrypto/comments/rufvse/tinyman_attack_report_1/?utm_source=share&utm_medium=web2x&context=3 This script works to find exploiters for a given pool. It currently only works for ASSET/ALGO pairs but can be trivially updated for ASSET/ASSET pairs. Installation Clone the repo. Install Python3 (https://www.python.org/downloads/). Install the tinyman SDK: pip3 install git+https://github.com/tinymanorg/tinyman-py-sdk.git. Set up a developer account on https://purestake.com. Put your API key in headers.json where there is currently a placeholder. Replace your asset ID for swapping in parse_for_exploiters.py as […]

Read more

An efficient sorting algorithm (implemented in Python) inspired by the Bucket Sort and the Pigeonhole Sort

An algorithm (implemented here in Python) mainly inspired by the Bucket Sort (and the Pigeonhole Sort) and works by placing the values of a given unsorted array into buckets where the number of buckets is equal to the length of the unsorted array. In addition, it recursively runs the sorting algorithm on any buckets that contain more than one element and is unsorted. For more, including why the algorithm has been implemented in this way and how it compares against […]

Read more

Run shell script in Jupyter with live output

ipylivebash is a library to run shell script in Jupyter with live output. Example %%livebash –save log.txt –save-timestamp find . Run find . and show the output in the Jupyter notebook and also save to log-${current_timestamp}.txt %%livebash –ask-confirm –notify set -e deploy_script Before running the deploy_script show a panel to ask for confirmation. Once it is finished, show a notification. Features Run shell script in Jupyter with live output The output in the notebook cell is not saved in the […]

Read more

Function Plotter: a simple application with GUI to plot mathematical functions

Function Plotter is a simple application with GUI to plot mathematical functions. User enter a function and its boundaries and the application plot the function. Application can only draw polynomial functions in which only these operators in the fucntion are allowed: + – * / ^ (where ^ is the power operator). Prerequisites python is needed to be installed on the device. In addition, install these libraries: PyQt5, matplotlib, and numpy using: pip install [library name] How to Run run […]

Read more

Benchmarks of how well different two dimensional spaces work for clustering algorithms

Benchmarks of how well different two dimensional spaces work for clustering algorithms This may be useful for guiding anyone optimizing using clustering for data science or machine learning problems. It also could be used to make cool animations. Benchmarking is done by putting different numbers of points in the space, letting them repel each other for long enough to achieve equilibrium, and measuring how close they get to everything being equidistant. To get metrics run benchmark.py from the command line. […]

Read more

A simple content site framework that harnesses the power of Django without the hassle

A simple content site framework that harnesses the power of Django without the hassle. Features Can be a standalone static site or added to INSTALLED_APPS to integrate into an existing Django site Renders markdown files automatically Can use data from JSON files in templates and content All the power of Django templates, template tags, and filters Can include other Django apps Build HTML output for a true static site (coming soon) Still a little experimental. 😉 Install Create a standalone […]

Read more
1 278 279 280 281 282 915