Skip to content

Instantly share code, notes, and snippets.

View mxvin's full-sized avatar
🍪

mxvin mxvin

🍪
  • World
View GitHub Profile
@mxvin
mxvin / 1-orca-21.20.md
Last active August 2, 2023 15:45
[OpenCL & OpenGL] orca icd (legacy) & libgl amdgpu-pro ver 21.20 for GCN 2.0 - PKGBUILD
@mxvin
mxvin / mixer_paths_mtp.xml.patch
Created April 13, 2023 23:19
tissot mixer_paths_mtp.xml fix muffled microphone when on voice speaker mode / voice-speaker-dmic-ef
LineageOS bsp: https://github.com/LineageOS/android_device_xiaomi_tissot/blob/lineage-19.1/audio/mixer_paths_mtp.xml
diff --git a/mixer_paths_mtp.xml.orig b/mixer_paths_mtp.xml
index 30a9cec..ecb8bd9 100644
--- a/mixer_paths_mtp.xml.orig
+++ b/mixer_paths_mtp.xml
@@ -1673,12 +1673,7 @@
</path>
<path name="voice-speaker-dmic-ef">
- <ctl name="MI2S_TX Channels" value="Two" />
@mxvin
mxvin / 0_mailu-lite2.txt
Last active January 9, 2023 07:13
mailu docker with host nginx instead running two nginx
RESERVED
@mxvin
mxvin / recipe.wow
Created August 4, 2022 14:43
WTF GNU+Linux & KDE || A gist of my journey, converting everything that 'just works' on windows to more respecting and greener grass tux ^o^ == And every solution/recommendation of every pitfalls ==
[[ WORK IN PROGRESS ]]
-----
Profile / Introduction
-----
Distro : Manjaro
DE : KDE
@mxvin
mxvin / dnsproxy-manager.vbs
Created December 4, 2021 13:47
How to Getting Started using Adguard dnsproxy (https://github.com/AdguardTeam/dnsproxy) on Windows. Simple and flexible by utilizing vbs script
Set Shell = CreateObject("WScript.Shell")
Shell.Run "taskkill /F /im dnsproxy.exe", 0, False
WScript.Sleep 1000
Shell.Run "%APPDATA%\dnsproxy\dnsproxy.exe -u tls://1.1.1.1 -f tls://9.9.9.9 -l 127.0.0.1 --cache --cache-size=1000000", 0, False
MsgBox "dnsproxy restarted",64,"Adguard dnsproxy"
@mxvin
mxvin / sub-to-infinity.js
Last active December 2, 2021 15:29
Import subreddit plaintext list to infinity - for - reddit client (https://github.com/Docile-Alligator/Infinity-For-Reddit) anonymous subscriptions database
var fs = require('fs')
var path = require('path')
var https = require('https');
var subNameFile = "test.txt"
var result = [];
var errorListArr = [];
var errorReasonListArr = [];
async function run (){
@mxvin
mxvin / moon.xyz
Created December 10, 2020 08:04
Pinescript: Modified moon phase (orig from /u/paaax)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// ---------------------------© paaax----------------------------
// --------------------------------------------------------------
// ---------------- Author: Pascal Simon (paaax) ----------------
// --------------------------------------------------------------
// -------------------- www.pascal-simon.de ---------------------
// --------------------------------------------------------------
// ---------------- www.tradingview.com/u/paaax/-----------------
// --------------------------------------------------------------
// Source: https://gist.github.com/L-A/3497902#file-moonobject-js
@mxvin
mxvin / mailu-lite.txt
Created October 11, 2020 18:18
Cutting down Mailu nginx server -- removing nginx from mailu
Cutting down Mailu - Dockerized Mail Server https://github.com/Mailu/Mailu
I like Mailu, with docker, deploying mail server is just easy and simple. Very Low overhead and low memory usage (Without using any fancy addons like ClamAV antivirus, fetchmail, webDav, etc... Only Postfix, Dovecot, and Their manager app)
Some tip to cutting down Mailu nginx server -- removing nginx from mailu -- I feel that running two nginx on one server is kinda useless. Oh Why, I said :)
Assuming you have running/configuring mailu via docker-compose.yml that you get from setup.mailu.io
Steps/Tip
1. You need to extract nginx.conf and proxy.conf from the running 'front' container. run `` docker-compose exec cat /etc/nginx/nginx.conf > nginx.conf `` && `` docker-compose exec cat /etc/nginx/proxy.conf > proxy.conf ``-- save that coz u need that later + save your time
2. You can start do `` docker-compose down `` -- then delete 'front' entry on docker-compose.yml. It's okay also to delete some 'depends_on' options that linked to 'fr
@mxvin
mxvin / terminal.reg
Created January 29, 2020 06:34
Add Windows Terminal to Right click context Explorer menu. https://github.com/microsoft/terminal/issues/1060#issuecomment-572987837
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Open Windows Terminal Here"
"Icon"="C:\\Users\\{YourUserName}\\AppData\\Local\\Microsoft\\WindowsApps\\terminal.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\{YourUserName}\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"
@mxvin
mxvin / gain
Last active July 27, 2023 09:02
Simple Gain / Boost Volume on any website (Youtube, Vimeo, Twitch etc) video by only one click of bookmark button. Copy code below, then create new bookmark, and fill code below to location address.
javascript:var g_6z; function cI_6z(){ var ctx_6z = new AudioContext(); var el_6z = document.querySelector("video") ? document.querySelector("video") : document.querySelector("audio")? document.querySelector("audio"):alert('Media DOM not exist. Aborting.'); if (el_6z){ g_6z = ctx_6z.createGain(); g_6z.gain.value = 1; var src_6z = ctx_6z.createMediaElementSource(el_6z); src_6z.connect(g_6z).connect(ctx_6z.destination); var p = document.createElement("div"); p.innerHTML = `<div class=vpc_6z id=vpc_6z><style>.vpc_6z{float:right;width:25%;position:fixed;bottom:0;padding:20px 20px;z-index:9999999;background:#444;color:#fff}.vpc_6z-hide{position:fixed;background:#444;padding:0;width:80px;height:30px;bottom:0;z-index:999999}.vpi_6z-hide{display:none}</style><button%20onclick='d=document.getElementById("vpi_6z"),"vpi_6z"==d.getAttribute("class")?d.setAttribute("class","vpi_6z-hide"):d.setAttribute("class","vpi_6z"),c=document.getElementById("vpc_6z"),"vpc_6z"==c.getAttribute("class")?c.setAttribute("class","vpc_6z-hi