Skip to content

Instantly share code, notes, and snippets.

@ksonbol
ksonbol / JSON-Flat.json.groovy
Last active December 4, 2025 18:09
IntelliJ IDEA extractor script for SQL output for JSON format but with each row on a new line
/*
* NOTE: This script was generated with the help of Claude AI
* To make it accessible, download the file and add it in the this directory inside
* your IntelliJ installation:
* "extensions/com.intellij.database/data/extractors/JSON-Flat.json.groovy"
* Your intelliJ installation on mac can be found at: "/Users/your.user/Library/Application Support/JetBrains/IntelliJIdea{VERSION}"
*
* Available context bindings:
* COLUMNS List<DataColumn>
* ROWS Iterable<DataRow>

Instructions for installing SoftiWARP and common issues encountered, tested with Ubuntu 16.04.1 with Kernel 4.15.0-45-generic.

- Setting up the Linux kernel dev environment:

 sudo apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge
 sudo apt-get build-dep linux
 sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev binutils-dev

- Setting up the Infiniband / libibverbs environment

@ksonbol
ksonbol / Ubuntu 18.04 Customization
Last active May 7, 2019 10:18
Customizations I do after each Ubuntu installation
Ubuntu 18.04
- Brightness Indicator (not needed anymore in Ubuntu 18.04
# sudo add-apt-repository ppa:indicator-brightness/ppa
# sudo apt install indicator-brightness
- Add Show Desktop to Menu
sudo apt-get install xdotool
gedit ~/.local/share/applications/show-desktop.desktop
Fill file with this:
@ksonbol
ksonbol / gist:7e982915df032092512a
Created October 1, 2014 16:50
Generate random Mobile number (EGYPT)
'01' + [0, 1, 2].sample.to_s + 8.times.map { rand(10) }.join