Skip to content

Instantly share code, notes, and snippets.

View StenHigh's full-sized avatar
😎
I am working

Dzianis StenHigh

😎
I am working
View GitHub Profile
@StenHigh
StenHigh / toucpadGnome.sh
Last active May 29, 2019 14:57
Ubuntu Gnome touchpad 4 finger
#!/usr/bin/env bash
sudo apt install touchegg -f
cat >> ~/.xprofile <<EOL
synclient ClickFinger4=0
synclient TapButton4=0
touchegg &
EOL
cat > ~/config/touchegg/touchegg.conf <<EOL
@StenHigh
StenHigh / all-static-update.sh
Last active May 29, 2019 14:56
magento update static content
#!/usr/bin/env bash
while getopts d:e option
do
case "${option}"
in
d) DIRECTORY="${OPTARG}";;
e) ENV="${OPTARG}";;
esac
done
@StenHigh
StenHigh / pa.sh
Last active May 29, 2019 14:55
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
StenHigh / deploy.sh
Created March 5, 2019 12:03
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
}
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
StenHigh / .Xresources
Last active May 17, 2019 18:59
rxvt config
! Color-scheme : Relic Dark
! Author : stark <stark@openmailbox.org>

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

*cursorColor: #BE5E1E

*color0: #39474A
*color1: #986345
@StenHigh
StenHigh / libinput-gestures.sh
Last active May 29, 2019 14:55
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 https://github.com/bulletmark/libinput-gestures.git &&
cd libinput-gestures &&
sudo make install &&
libinput-gestures-setup autostart
cat > ~/.config/libinput-gestures.conf <<EOL
# 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.
# ~/.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;;
esac
-- 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