Skip to content

Instantly share code, notes, and snippets.

View jankatins's full-sized avatar

Jan Katins jankatins

View GitHub Profile
@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
@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 / gittraing.ipynb
Created April 13, 2018 12:00
Git Training
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jankatins
jankatins / keybase.md
Created January 17, 2018 20:06
keybase.md

Keybase proof

I hereby claim:

  • I am jankatins on github.
  • I am jankatins (https://keybase.io/jankatins) on keybase.
  • I have a public key ASAocgZjsmfd988MWIoU3mQysw0mcof-eHXG_KTC3d1lPAo

To claim this, I am signing this object:

#!/bin/bash
# Generate a RStudio*.AppImage (either stable or one of the dailies) file which can be used by
# marking it as axecuteable and simply running it
#
# ./rstudio 1.1.90 # version downloads a daily
# chmod +x RStudio*.AppImage
# ./RStudio*.AppImage
# It uses the provided deb for an older ubuntu and adds the required packages from debian oldstable
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>SO 35827734</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<style type="text/css">
/*!
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Head"
]
},
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
@jankatins
jankatins / gist:816206cbf25e095393eb
Created April 19, 2015 12:28
Example plot in python
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [