Skip to content

Instantly share code, notes, and snippets.

@leo-from-spb
leo-from-spb / SQL-Inserts-MultirowSynthax.sql.groovy
Last active November 5, 2024 07:56
DataGrip data exporting script
SEP = ", "
QUOTE = "\'"
NEWLINE = System.getProperty("line.separator")
begin = true
def record(columns, dataRow) {
if (begin) {
OUT.append("INSERT INTO ")
@leoheck
leoheck / fix-ubuntu-18.10-on-dell-xps-9570
Last active December 17, 2022 11:11
Fix Ubuntu 18.10 on Dell XPS 9570
#
# Run this from the Live USB.
#
#############################
# EDIT YOUR PARTITIONS HERE #
#############################
root_partition=/dev/nvm0n1p2
sudo mount ${root_partition} /mnt