Skip to content

Instantly share code, notes, and snippets.

View Millon15's full-sized avatar

Vitautas Brazas Millon15

  • Kiev, Ukraine
  • 22:18 (UTC +03:00)
  • LinkedIn in/vbrazas
View GitHub Profile
<keymap version="1" name="millon's macOS keymap" parent="Mac OS X 10.5+">
<action id="ActivateTerminalToolWindow">
<keyboard-shortcut first-keystroke="alt f12" />
<keyboard-shortcut first-keystroke="ctrl back_quote" />
</action>
<action id="ChangesView.Move" />
<action id="ChangesView.SetDefault" />
<action id="ClassNameCompletion" />
<action id="CommentByBlockComment">
<keyboard-shortcut first-keystroke="shift meta slash" />
-- PostgreSQl DB maintenance clauses.
-- Sources:
-- https://wiki.postgresql.org/wiki/Index_Maintenance#Index_size.2Fusage_statistics
-- https://xzilla.net/blog/2008/Jul/Index-pruning-techniques.html
-- Index Maintenance
-- Source: https://wiki.postgresql.org/wiki/Index_Maintenance#Index_size.2Fusage_statistics
-- Index summary
SELECT pg_class.relname,
#!/bin/bash
# CONFIGURE script for setting up docker under UNIT school infrastructure
# To INSTALL docker follow instructions below:
# $> curl -fsSL https://rawgit.com/kube/42homebrew/master/install.sh | zsh
# Then relaunch terminal... and fire next command:
# $> brew install docker docker-machine docker-compose
# Alternate way to install docker-compose:
sudo pacman -Syyu
sudo pacman -S vim emacs snapd zsh \
nginx postgresql php php-fpm composer \
peek autojump cowfortune fortune-mod \
tree bat erlang rabbitmq go rust
sudo sed -i 's/^;extension=soap$/extension=soap/' /etc/php/php.ini
sudo sed -i 's/^;extension=pgsql$/extension=pgsql/' /etc/php/php.ini
sudo sed -i 's/^;extension=pdo_pgsql$/extension=pdo_pgsql/' /etc/php/php.ini
@Millon15
Millon15 / .zshrc
Last active October 22, 2023 13:25
Default .zshrc
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.