Skip to content

Instantly share code, notes, and snippets.

View cniw's full-sized avatar

Wachid Adi Nugroho cniw

  • Sukoharjo, Indonesia
View GitHub Profile
@cniw
cniw / mpv-full-git.txt
Last active January 20, 2022 12:07
Build mpv package with luajit support for Arch Linux
# set variable
_pkgbase=mpv-full-git
_pkgbase_cache_dir="$HOME/.cache/yay"
_repo_cache_dir="$HOME/Applications/git"
_git_url=https://github.com/mpv-player/mpv.git
_git_repo="${_git_url%%.git}"
_git_repo="${_git_repo##*.com/}"
# prepare source code
[ -d "${_pkgbase_cache_dir}" ] || mkdir -p "${_pkgbase_cache_dir}"
@cniw
cniw / build.sh
Last active February 17, 2022 12:43
build maui-shell on ubuntu 20.04 (focal)
sudo apt install software-properties-common
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E6D4736255751E5D
sudo apt-add-repository "deb https://archive.neon.kde.org/dev/unstable focal main"
sudo apt install -y \
libkf5config-dev libkf5coreaddons-dev libkf5i18n-dev libkf5kio-dev libkf5notifications-dev libkf5service-dev libqt5svg5-dev libqt5waylandcompositor5-dev qtbase5-dev qtdeclarative5-dev qtquickcontrols2-5-dev libkf5idletime-dev libpolkit-agent-1-dev libpolkit-qt5-1-dev \
mauikit-dev libmauikitfilebrowsing-dev \
cmake extra-cmake-modules gettext git \
qml-module-qt-labs-settings qml-module-qtwayland-compositor qml-module-qt-labs-calendar plasma-nm bluedevil plasma-pa qml-module-qt-labs-platform
@cniw
cniw / build_waydroid_v8.sh
Last active July 3, 2024 09:35
Build Waydroid for Debian or Ubuntu based distro v8
#!/bin/bash
# script name: build_waydroid_v8.sh
# description: Build Waydroid for Debian or Ubuntu based distro v8
# upstream : https://gist.github.com/cniw/98e204d7dbc73a3fa1bf61629b2a2fc1
# author : Wachid Adi Nugroho <wachidadinugroho.maya@gmail.com>
# date : 2022-07-07
NC='\033[0m'
RED='\033[1;91m'
GREEN='\033[1;92m'
@cniw
cniw / install_waydroid.sh
Last active April 18, 2024 15:59
Install Waydroid on unsupported Debian based distro caused by incompatible python3-gbinder package
#!/bin/bash
# script name: install_waydroid.sh
# description: Install Waydroid on unsupported Debian based distro caused by incompatible python3-gbinder package
# related to : https://github.com/waydroid/waydroid/issues/214#issuecomment-1120926304
# author : Wachid Adi Nugroho <wachidadinugroho.maya@gmail.com>
# date : 2022-07-07
export distro=$(grep -oP '(?<=^NAME=).*' /etc/os-release)
if [[ -f /usr/bin/dpkg ]];