Skip to content

Instantly share code, notes, and snippets.

@cromat
cromat / qradar_ariel_search_delete.py
Last active July 4, 2020 11:17
Small script for deleting list of QRadar searches
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# Example (with slash at the end) https://qradarurl.com/api/ariel/searches/
url = ""
username = ""
password = ""
@cromat
cromat / wsl-redis-start.md
Last active January 8, 2024 21:32
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
cromat / Compile Redis with Cygwin.md
Last active June 30, 2021 15:37 — forked from pcan/README.md
Compile Redis with Cygwin

Prerequisites

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.

Patch

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

@cromat
cromat / winlin_tools.txt
Last active October 17, 2018 12:52
Windows productive tools - Linux alternatives
# 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 - https://cygwin.com/install.html (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 - https://www.python.org/downloads/
@cromat
cromat / datagrip.desktop
Created July 15, 2016 11:49
JetBrains DataGrip Ubuntu launcher shortcut and icon
// Create file
// sudo vim /usr/share/applications/datagrip.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=DataGrip
// Change path to DataGrip directory
Icon=/home/tomislav/apps/DataGrip-2016.1.1/bin/product.png
// Change path to DataGrip directory