Skip to content

Instantly share code, notes, and snippets.

Avatar

Tomislav Brabec cromat

View GitHub Profile
@cromat
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 - 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 / Compile Redis with Cygwin.md
Last active Nov 4, 2019 — forked from pcan/README.md
Compile Redis with Cygwin
View Compile Redis with Cygwin.md

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 / 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]
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
@cromat
cromat / qradar_ariel_search_delete.py
Last active Jul 4, 2020
Small script for deleting list of QRadar searches
View qradar_ariel_search_delete.py
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 Jun 15, 2021
Run redis inside WSL as background service on Windows startup
View wsl-redis-start.md

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