Skip to content

Instantly share code, notes, and snippets.

View Ashark's full-sized avatar

Andrew Shark Ashark

View GitHub Profile
@Ashark
Ashark / audio_policy.conf
Created November 3, 2016 14:48
Audio policy original samsung's file in Android 5.0.1 on Galaxy S4 (located in /system/etc/)
# Global configuration section: lists input and output devices always present on the device
# as well as the output device selected by default.
# Devices are designated by a string that corresponds to the enum in audio.h
global_configuration {
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE
default_output_device AUDIO_DEVICE_OUT_SPEAKER
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_THIRD_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_VOICE_CALL
}
@Ashark
Ashark / PKGBUILD-kdeneur-git.sh
Last active January 5, 2018 05:23
Kdeneur-git package build script for ArchLinux (needs review before publish in AUR)
# Maintainer: Andrew Shark <ashark@linuxcomp.ru>
pkgname=kdeneur-git
pkgver=0.20.0.r153.219393c
pkgrel=1
_xneurver=0.20.0
pkgdesc="KDE frontend for xneur (Auto Keyboard Layout Switcher)"
arch=('x86_64')
url="https://xneur.ru/"
license=('GPL')
@Ashark
Ashark / PKGBUILD-xneurchecker-git.sh
Last active January 1, 2018 20:58
Xneurchecker-git package build script for ArchLinux (needs review before publish in AUR)
# Maintainer: Andrew Shark <ashark@linuxcomp.ru>
pkgname=xneurchecker-git
pkgver=r141.da341f5
pkgrel=1
pkgdesc="xneurchecker for xneur (Auto Keyboard Layout Switcher)"
arch=('x86_64')
url="https://xneur.ru/"
license=('GPL')
depends=('xneur') # xneurchecker wants to use its headers at build time. And maybe it is needed at runtime.
@Ashark
Ashark / PKGBUILD-xneur-git.sh
Last active January 5, 2018 05:20
xneur-git package build script for ArchLinux (needs review before publish in AUR)
# Maintainer: Andrew Shark <ashark@linuxcomp.ru>
pkgname=xneur-git
pkgver=0.20.0.r155.75ebdcc
pkgrel=1
pkgdesc="Automatic Keyboard Layout Switcher like Punto Switcher"
arch=('x86_64')
url="https://xneur.ru/"
license=('GPL')
depends=()
@Ashark
Ashark / PKGBUILD-gxneur-git.sh
Created January 9, 2018 08:23
Gxneur-git package build script for ArchLinux (needs review before publish in AUR)
# Maintainer: Andrew Shark <ashark@linuxcomp.ru>
pkgname=gxneur-git
pkgver=0.20.0.r155.75ebdcc
pkgrel=1
pkgdesc="GTK frontend for xneur (Auto Keyboard Layout Switcher)"
arch=('x86_64')
url="https://xneur.ru/"
license=('GPL')
depends=()
@Ashark
Ashark / davinci-resolve PKGBUILD
Last active September 10, 2020 19:29
remake PKGBUILD for davinci-resolve
# Maintainer: Alex S. <shantanna_at_hotmail_dot_com>
# Contributor: Jonathon Fernyhough <jonathon_at_manjaro_dot_org>
# Contributor: Andrew Shark <ashark#linuxcomp.ru>
# Hardware support is limited.
# See https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=56878&p=456990#p456924
pkgname=davinci-resolve
_pkgname=resolve
pkgver=15.2.3
@Ashark
Ashark / yay.bash
Last active September 1, 2019 16:02
Bash completion for yay -Uc feature request - wip
# This file is in the public domain.
_arch_compgen() {
local i r
COMPREPLY=($(compgen -W '$*' -- "$cur"))
for ((i=1; i < ${#COMP_WORDS[@]}-1; i++)); do
for r in ${!COMPREPLY[@]}; do
if [[ ${COMP_WORDS[i]} = ${COMPREPLY[r]} ]]; then
unset 'COMPREPLY[r]'; break
fi
@Ashark
Ashark / DaVinci Resolve main window always with titlebar and frame.kwinrule
Last active December 19, 2024 18:15
Importable window rule file to force davinci resolve to show titlebar in kde. See https://youtu.be/H82ZUO06EAk
[DaVinci Resolve main window always with titlebar and frame]
Description=DaVinci Resolve main window always with titlebar and frame
clientmachinematch=0
noborder=false
noborderrule=2
titlematch=0
types=1
wmclass=resolve
wmclasscomplete=false
wmclassmatch=1
#!/bin/bash
# A crutch way to extract vlans from librenms, because currently (librenms 1.63)
# the api cannot provide all vlans, however the web interface can.
# See https://github.com/librenms/librenms/issues/12607
pw="123456"
user="someuser"
url_to_login="https://yourdomain.com/login"
@Ashark
Ashark / PKGBUILD
Last active December 27, 2023 18:05
WIP plasma6-runners-jetbrains-runner-git PKGBUILD, see https://github.com/alex1701c/JetBrainsRunner/issues/42
# Maintainer: Andrew Shark <ashark linuxcomp ru>
pkgname=plasma6-runners-jetbrains-runner-git
_pkgname=plasma6-runners-jetbrains-runner
pkgver=r179.9f3e9d3
pkgrel=2
pkgdesc="Launch your recent JetBrains projects from KRunner"
license=('LGPL3')
_project_name="JetBrainsRunner"
_url='https://github.com/alex1701c'