Skip to content

Instantly share code, notes, and snippets.

I am working

Dzianis StenHigh

I am working
View GitHub Profile
#!/usr/bin/env bash
sudo apt update &&
sudo apt upgrade -y &&
#php for phpstorm and composer
sudo apt install sudo apt install php7.1 php-cli libapache2-mod-php7.1 php7.1-common php7.1-gmp php7.1-curl php7.1-soap php7.1-bcmath php7.1-intl php7.1-mbstring php7.1-xmlrpc php7.1-mcrypt php7.1-mysql php7.1-gd php7.1-xml php7.1-cli php7.1-zip -y
sudo apt install curl git unzip -y
#install composer
cd ~
View .conkyrc
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
View .tmux.conf
# Vim-like key bindings for pane navigation (default uses cursor keys).
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l # normally used for last-window
bind l select-pane -R

# Status bar.
StenHigh /
Last active May 29, 2019
libinput-gestures for kde touch pad
#!/usr/bin/env bash
sudo gpasswd -a $USER input &&
sudo apt install xdotool wmctrl -y &&
sudo apt install libinput-tools -y &&
git clone &&
cd libinput-gestures &&
sudo make install &&
libinput-gestures-setup autostart
cat > ~/.config/libinput-gestures.conf <<EOL
StenHigh / .Xresources
Last active May 17, 2019
rxvt config
View .Xresources
! Color-scheme : Relic Dark
! Author : stark <>

*background: #1D2426
*foreground: #8FA388
*font: xft:Monospace:size:8
! Alternate foreground
!*foreground: #AB9C71

*cursorColor: #BE5E1E

*color0: #39474A
*color1: #986345
View .vimrc
syntax on
set number
set expandtab
set tabstop=4
set hlsearch
set incsearch
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'jiangmiao/auto-pairs'
Plug 'tpope/vim-fugitive'
StenHigh /
Created Mar 5, 2019
deploy script for magento 2
#!/usr/bin/env bash
usage() {
echo "Usage: $0 [-e <staging|local>]" 1>&2; exit 1;
maintenanceEnable() {
touch maintenance.enable
php bin/magento maintenance:enable
StenHigh /
Last active May 29, 2019
permission dir and files for magento 2
#!/usr/bin/env bash
echo 'start';
echo 'chmod 644';
find . -type f -exec chmod 644 {} \;
echo 'chmod 755';
find . -type d -exec chmod 755 {} \;
echo 'var chmod 777';
find ./var -type d -exec chmod 777 {} \;
echo 'media chmod 777';
find ./pub/media -type d -exec chmod 777 {} \;
StenHigh /
Last active May 29, 2019
magento update static content
#!/usr/bin/env bash
while getopts d:e option
case "${option}"
e) ENV="${OPTARG}";;