Skip to content

Instantly share code, notes, and snippets.

View Taragolis's full-sized avatar
🐢
¯\_(ツ)_/¯

Andrey Anshin Taragolis

🐢
¯\_(ツ)_/¯
View GitHub Profile

Custom pytest plugins

Apache Airflow pytest plugin

This plugin help set up Apache Airflow unit test environment

Plugin capability

@Taragolis
Taragolis / .zshrc
Last active July 4, 2017 09:56
oh-my-zsh interactive shell config file
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="agnoster"
CASE_SENSITIVE="false"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="yyyy-mm-dd"
plugins=(sudo git command-not-found)
source $ZSH/oh-my-zsh.sh
export HISTFILE=$HOME/.zsh_history
export HISTSIZE=3000
@Taragolis
Taragolis / .psqlrc
Created July 4, 2017 09:28
psql interactive shell config file
\set QUIET ON
\set HISTFILE ~/.psql_history- :HOST - :DBNAME
\set HISTSIZE 2000
\set COMP_KEYWORD_CASE upper
\x
\pset linestyle unicode
\pset border 2
\pset null '[NULL]'
@Taragolis
Taragolis / mssql_create_user_on_each_db.sql
Last active June 7, 2017 20:15
T-SQL script to create login and add user read\write role to each DB
/* ## Variables ## */
DECLARE @username VARCHAR(50) = 'db_reader'
DECLARE @password VARCHAR(50) = 'asecuredpassword'
DECLARE @can_read VARCHAR(1) = 'Y'
DECLARE @can_write VARCHAR(1) = 'N'
/* ## Variables ## */
DECLARE @tsql_return INT
DECLARE @tsql_statement NVARCHAR(MAX)
@Taragolis
Taragolis / dbeaver-ubuntu-installer.sh
Last active May 22, 2017 13:17
dbeaver ubuntu install script
#!/bin/sh
#
# Copyright 2017 Andrey Anshin
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0