Skip to content

Instantly share code, notes, and snippets.

View dobrowins's full-sized avatar

Artem Dobrovinskiy dobrowins

View GitHub Profile
@dobrowins
dobrowins / .tmux.conf
Last active January 4, 2024 13:47
.tmux.conf
set -s set-clipboard on
set -g mouse on
set -g status-right '%d-%m-%Y %H:%M '
set-option -g allow-rename off
set-option -g focus-events on
set-option -g default-terminal "screen-256color"
set -ag terminal-overrides ',xterm-256color:Tc'
set-option -sg escape-time 10
# switch panes using Alt-arrow without prefix
@dobrowins
dobrowins / init.lua
Last active March 24, 2024 16:58
init.lua
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Sync clipboard between OS and Neovim.
-- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'`
vim.o.clipboard = 'unnamedplus'
-- Enable break indent
vim.o.breakindent = true
-- Save undo history
vim.o.undofile = true
@dobrowins
dobrowins / .ideavimrc
Last active March 24, 2024 16:51
.ideavimrc
"" Source your .vimrc
"source ~/.vimrc
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
set scrolloff=5
" Don't use Ex mode, use Q for formatting.
map Q gq
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/nikitagusarov/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
-optimizationpasses 5
ext {
config = [
'compileSdkVersion' : 30,
'minSdkVersion' : 23,
'targetSdkVersion' : 28,
'versionCode' : 1,
'versionName' : "1.0",
]
}
ext {
versions = [
'androidx' : '1.1.0',
'fragmentktx' : '1.3.1',
'activityktx' : '1.2.1',
'constraintLayout' : '2.0.4',
'dataBinding' : '3.1.4',
'atsl' : '1.0.2',
'kotlin' : '1.4.32',
'kotlinCoroutines' : '1.4.2',
@dobrowins
dobrowins / AndroidManifest.xml
Created February 7, 2018 08:14
Detecting foreground activity from service
<application>
<service
android:label="BLABLABLA"
android:name=".service.WindowChangeDetectingService"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService"/>
</intent-filter>
<meta-data
android:name="android.accessibilityservice"