Skip to content

Instantly share code, notes, and snippets.


Tomislav Brabec cromat

View GitHub Profile
cromat /
Last active Jul 4, 2020
Small script for deleting list of QRadar searches
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
# Example (with slash at the end)
url = ""
username = ""
password = ""
cromat /
Last active Jun 15, 2021
Run redis inside WSL as background service on Windows startup

Step by step guide to run redis-server inside WSL(Windows Subsystem for Linux) on Windows

I have tried to setup redis as starting background task with wsl-autostart, Task Scheduler and with lot vbs scripts including one described here but none of them seemed to work.

In the end I have manually created a simple one that does the job. This script basically starts a hidden Ubuntu Window and starts redis-server inside it.

  1. Install WSL (this is tested with Ubuntu 18.04 version)
  2. Install redis-server inside WSL sudo apt install redis-server
  3. Add sudo permission to your user to execute service command without password
cromat / Compile Redis with
Last active Nov 4, 2019 — forked from pcan/
Compile Redis with Cygwin
View Compile Redis with


Install Cygwin with make, gcc, g++ and tcl.
(If you use apt-cyg you can install them with apt-cyg install make, apt-cyg install gcc-core and apt-cyg install tcl
Download Redis tar.gz package, unpack it.


Edit deps/hiredis/net.c and add following line before include directives:

cromat / winlin_tools.txt
Last active Oct 17, 2018
Windows productive tools - Linux alternatives
View winlin_tools.txt
# These are handy tools for Windows and to make it more Linux-like. Tools tested and used on Windows 7
# Python version 3.6 is installed in process
cygwin - (need to add vim, wget, curl, lynx, procps-ng, python3-pip, python-setuptools in installation)
in cygwin bash run:
easy_install-3.6 pip
pip install virtualenv
Download and install python for windows -
cromat / datagrip.desktop
Created Jul 15, 2016
JetBrains DataGrip Ubuntu launcher shortcut and icon
View datagrip.desktop
// Create file
// sudo vim /usr/share/applications/datagrip.desktop
[Desktop Entry]
// Change path to DataGrip directory
// Change path to DataGrip directory