Skip to content

Instantly share code, notes, and snippets.

View Mrjavaci's full-sized avatar
🎯
Focusing

Osman Taha Mrjavaci

🎯
Focusing
View GitHub Profile
@thanuja919
thanuja919 / split-mysql-dump.sh
Created June 18, 2017 13:58
split-mysql-dump
#!/usr/bin/env bash
#When executing the script keep the main db dump in another folder.
AWK=awk
REGEX_NAME="Current Database: \`(.*)\`"
# Checks argument and prints usage if needed
if [ "$#" -lt "1" ]
then
@pthiers
pthiers / PHP-Array.groovy
Last active May 23, 2024 16:13
datagrip php array extractor
/*
* Available context bindings:
* COLUMNS List<DataColumn>
* ROWS Iterable<DataRow>
* OUT { append() }
* FORMATTER { format(row, col); formatValue(Object, col) }
* TRANSPOSED Boolean
* plus ALL_COLUMNS, TABLE, DIALECT
*
* where:
@brianhassel
brianhassel / PreventSleep.cs
Last active June 24, 2024 18:42
Prevent Computer Sleep in C#
internal static class NativeMethods {
public static void PreventSleep() {
SetThreadExecutionState(ExecutionState.EsContinuous | ExecutionState.EsSystemRequired);
}
public static void AllowSleep() {
SetThreadExecutionState(ExecutionState.EsContinuous);
}