Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Shark Ashark

View GitHub Profile
View get_vlans_by_librenms_port_url.sh
#!/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 / DaVinci Resolve main window always with titlebar and frame.kwinrule
Last active Sep 15, 2021
Importable window rule file to force davinci resolve to show titlebar in kde. See https://youtu.be/H82ZUO06EAk
View DaVinci Resolve main window always with titlebar and frame.kwinrule
[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
@Ashark
Ashark / yay.bash
Last active Sep 1, 2019
Bash completion for yay -Uc feature request - wip
View yay.bash
# 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 PKGBUILD
Last active Sep 10, 2020
remake PKGBUILD for davinci-resolve
View davinci-resolve PKGBUILD
# 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 / PKGBUILD-gxneur-git.sh
Created Jan 9, 2018
Gxneur-git package build script for ArchLinux (needs review before publish in AUR)
View PKGBUILD-gxneur-git.sh
# 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 / PKGBUILD-xneur-git.sh
Last active Jan 5, 2018
xneur-git package build script for ArchLinux (needs review before publish in AUR)
View PKGBUILD-xneur-git.sh
# 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-xneurchecker-git.sh
Last active Jan 1, 2018
Xneurchecker-git package build script for ArchLinux (needs review before publish in AUR)
View PKGBUILD-xneurchecker-git.sh
# 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-kdeneur-git.sh
Last active Jan 5, 2018
Kdeneur-git package build script for ArchLinux (needs review before publish in AUR)
View PKGBUILD-kdeneur-git.sh
# 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 / audio_policy.conf
Created Nov 3, 2016
Audio policy original samsung's file in Android 5.0.1 on Galaxy S4 (located in /system/etc/)
View audio_policy.conf
# 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
}