Skip to content

Instantly share code, notes, and snippets.

View jankatins's full-sized avatar

Jan Katins jankatins

View GitHub Profile
@jankatins
jankatins / mssql debconf.md
Last active July 17, 2018 18:00
Idea how to make ms odbc deb preinst easier to work with
check_eula_acceptance()
{
    if [ "$ACCEPT_EULA" == "y" ] && [ "$ACCEPT_EULA" == "Y" ]; then
        # to support the old way...
       db_set msodbcsql/accept_eula true
    fi
    db_get msodbcsql/accept_eula || true
    if [ "$RET" != "true" ]; then
 db_set msodbcsql/accept_eula false
@jankatins
jankatins / exa-wrapper.sh
Created September 1, 2022 13:03 — forked from eggbean/eza-wrapper.sh
Wrapper script for exa to give it nearly identical switches and appearance to ls. Also automatically adds --git switch when in a git repository.
#!/bin/bash
## Change following to '0' for output to be like ls and '1' for exa features
# Don't list implied . and .. by default with -a
dot=0
# Show human readable file sizes by default
hru=1
# Don't show group column
fgp=0
# Don't show hardlinks column