PQ is a jq-like viewer/processing tool for pickle files

PQ is a jq-like viewer/processing tool for pickle files. # pq ” file.pkl {‘other’: 456, ‘test’: 123} # pq ‘table’ file.pkl |other|test| | 456 |123 | # pq ‘keys’ file.pkl [‘test’, ‘other’] # pq ‘.[“test”]’ file.pkl 123 Filter Usage Description flat .[] Extract elements from list to apply filters on each table table When elements are dictionaries, display common keys as a table keys    

Read more

Building a web server in python without using any external libraries

Building a web server in python without using any external libraries Dependencies: Install php-cgi library in Ubuntu: sudo apt-get update -y sudo apt-get install -y php-cgi USAGE: python3 server.py 127.0.0.1 8000 #http python3 server.py 127.0.0.1 8000 private.key public.cert #https Send Requests GET request to 127.0.0.1:8000/handleGet.php?firstName=Virat&lastName=Kohli POST request to 127.0.0.1:8000/handlePost.php where body=firstName=Virat&lastName=Kohli Attacking the server Attacking the webserver: Check out the attacking_server.pdf GitHub View Github    

Read more

Self Portal is a cross-platform desktop application used to deploy software across your endpoint fleet via Chef

Self Portal is a cross-platform desktop application used to deploy software across your endpoints fleet via Chef while providing the same user experience across multiple platforms Self Portal is in beta. Test throughly before using in production. Supports macOS Windows Linux ✅ Monterey ✅ Win 11 ✅ Ubuntu User Interface macOS – Monterey Windows 11 Linux – Ubuntu Chef Requirements: Chef server and cookbooks needs to be pre-configured before using Self Portal. pyinstaller to build executables Self Portal Requirements: PyQt5 […]

Read more

Inject chaos to Lambda functions without changing function code

Using lambda-chaos-extension to inject chaos to Lambda functions without any modification to function code. This demo inject two faults: Add 5 minutes delay to 10% of function invokes, causing the function to timeout. Replace function response for 50% of invokes. Deploy the sample application To build and deploy your application for the first time, run the following in your shell: sam build –use-container sam deploy –guided Chaos Tests Browse the API Gateway URL or curl it from command line for […]

Read more

Source files for a free pyRevit toolbar

(WIP) PyRoovit is/will be a toolbar for the use with pyRevit built by Gavin Crump (aka Aussie BIM Guru). Having used and taught Dynamo for many years now, he’s come to see pyRevit as a natural ‘next step’ for users looking to package up more efficient, stable and scalable tools to organisations. Over time, tools will be introduced to this resource in tandem with related educational content on the Aussie BIM Guru YouTube channel. These tools will generally be aimed […]

Read more

Reverse Engineering Framework for the Polyend Tracker

RETracker is a reverse engineering framework for the Polyend Tracker written in Python.It is based on unofficial patches that it applies to the vendor’s stock firmware.These patches replace the Tracker’s MTP file transfer functionality (disabled by Polyend with the introduction of firmware v1.4.0) with a custom USB HID handler. The RETracker’s custom USB handler introduces new, non-official features to the Polyend Tracker that can be controlled from a computer via USB. The RETracker firmware’s basic features comprise the following: Reading/dumping […]

Read more

A Windows Based Open Source Application For Fixing and Repairing your Windows OS Images and Verifying Corrupted Files

Version 1.0.0 a Windows Based Open Source Application For Fixing and Repairing your Windows OS Images and Verifying Corrupted Files. Language and technologies used in This Project WorkSpace First of All Clone the project from here ~ git clone https://github.com/shervinbdndev/WindowsMedicator.git Then go To Project’s Directory with ~ cd WindowsMedicator-master No Matters if Your Using Windows or Linux. For Running in Python Console 👇    

Read more

GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Models

Dependencies This code is written using PyTorch and HuggingFace’s Transformer repo. Running GrIPS with GPT-2 models requires access to GPUs. The search is quite light-weight (no model training involved) and therefore one GPU should suffice. On the other hand, running GrIPS with InstructGPT or GPT-3 models requires an OpenAI API key. Please add your key to the openai_key.txt file. Installation The simplest way to run our code is to start with a fresh environment. conda create -n GrIPS python=3.9 source […]

Read more

Refine video frame based on nearby frames

Introduction Refine a video frame based on nearby frames. WIP CLI Usage Installation git clone [email protected]:hzwer/ResynNet.git cd ResynNet pip3 install -r requirements.txt Download the pretrained model from here. Unzip and move the pretrained parameters to train_log/* Run python3 inference_img.py –origin example/origin.png –ref example/ref0.png example/ref1.png Sponsor Many thanks to Grisk. 感谢支持 Paypal Sponsor: https://www.paypal.com/paypalme/hzwer GitHub View Github    

Read more

Build a Hash Table in Python With TDD

Invented over half a century ago, the hash table is a classic data structure that has been fundamental to programming. To this day, it helps solve many real-life problems, such as indexing database tables, caching computed values, or implementing sets. It often comes up in job interviews, and Python uses hash tables all over the place to make name lookups almost instantaneous. Even though Python comes with its own hash table called dict, it can be helpful to understand how […]

Read more
1 198 199 200 201 202 928