Skip to content

Instantly share code, notes, and snippets.

View Kaukov's full-sized avatar
🎯
Focusing

Kaukov

🎯
Focusing
View GitHub Profile
@Kaukov
Kaukov / upgrade_LineageOS_with_Magisk.md
Created January 16, 2025 14:17 — forked from tothi/upgrade_LineageOS_with_Magisk.md
Upgrading LineageOS and reinstalling Magisk

Upgrade LineageOS with Magisk

WARNING: tested only on my setup (LineageOS 18.1 on instantnoodle), other setups may break and brick the device!

Step-by-step instructions (for reinstalling patched boot.img for Magisk):

  1. upgrade LineageOS to the latest by the standard way in Android GUI (download + install + reboot)
  2. if using not the latest Magisk: wipe old (possibly hidden) Magisk app then install the up-to-date one from the official Magisk github repo
  3. install (git clone) payload_dumper from GitHub (in Termux or in an SSH session on the Android device) for the 1st time, or update (git pull) later
  4. the Android terminal session: wget the same LineageOS nightly image installed in step 1 from https://download.lineageos.org/
@Kaukov
Kaukov / tlp.conf
Created July 30, 2024 15:56 — forked from kikislater/tlp.conf
TLP for Lenovo Thinkpad P14s Gen 5 AMD (Works with T14 Gen 5 as well)
################################################################################
########### 2024 July 03 - TLP P14s Gen 5 AMD by Sylvain POULAIN ###############
################################################################################
# Content of /etc/tlp.d/tlp.conf for P14s Gen 5 AMD
# (Also works with T14 Gen 5 : same hardware, same motherboard)
################################################################################
# Complete harware list => https://linux-hardware.org/?probe=1c547a828f
################################################################################
# /!\ For better performance use "acpi.ec_no_wakeup=1" in Kernel option
# https://patchwork.kernel.org/project/linux-acpi/patch/ZnFYpWHJ5Ml724Nv@ohnotp/

How to run melodics on Linux using Wine

export PULSE_LATENCY_MSEC=5\
    && export WINEPREFIX="/home/alinz/.wine"\
    && wine "$USER/.wine/dosdevices/c:/Program Files/Melodics/Melodics.exe"

How to run Melodics on Linux using Bottles

TL;DR: Melodics runs out-of-the-box with the current version of Bottles and its default settings. However Melodics uses your browser to handle logins, and expects your browser to be able to call the Melodics app once logged-in. Read "Melodics Desktop Integration" below to set that up.

Versions tested:

Ubuntu Gentoo Fedora
bc sys-devel/bc bc
bison sys-devel/bison bison
build-essential: g++ gcc libc6-dev make sys-libs/glibc sys-libs/libcxx virtual/libc sys-devel/make gcc gcc-c++ glibc glibc-devel libcxx libcxx-devel make
ccache dev-util/ccache ccache
curl net-misc/curl curl
flex sys-devel/flex flex
g++-multilib sys-devel/gcc[multilib,cxx] gcc-c++.i686
gcc-multilib - gcc.i686
wget https://archive.org/download/archlinux_pkg_mysql-workbench/mysql-workbench-6.3.10-7-x86_64.pkg.tar.xz
wget https://archive.org/download/archlinux_pkg_mysql-workbench/mysql-workbench-6.3.10-7-x86_64.pkg.tar.xz.sig
sudo pacman -U mysql-workbench-6.3.10-7-x86_64.pkg.tar.xz
sudo pacman -S {lib32-,}icu
sudo ln -s /usr/lib/libicui18n.so /usr/lib/libicui18n.so.61
sudo ln -s /usr/lib/libicuuc.so /usr/lib/libicuuc.so.61
sudo ln -s /usr/lib/libicudata.so /usr/lib/libicudata.so.61
@Kaukov
Kaukov / mysql_cheat_sheet.md
Created September 8, 2019 15:35 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

Alias Command
===============================
g git
ga git add
gaa git add --all
gapa git add --patch
gau git add --update
gb git branch
gba git branch -a
gbda git branch --merged | command grep -vE "^(*|\smaster\s$)" | command xargs -n 1 git branch -d
Fetching origin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes