Skip to content

Instantly share code, notes, and snippets.

View vadimstasiev's full-sized avatar

AName* name("Vadim"); vadimstasiev

View GitHub Profile
@vadimstasiev
vadimstasiev / readme.md
Last active December 30, 2022 19:40
Chromebook setup

Chromebook linux setup

sudo apt install git android-tools-adb nautilus gnome-tweaks nano htop tmux bmon qt5-style-kvantum qt5-style-kvantum-themes icoutils dolphin kde-cli-tools konsole kfind cifs-utils menulibre flatpak gnome-software-plugin-flatpak gnome-software
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
@vadimstasiev
vadimstasiev / windows_11.xml
Created October 12, 2022 20:29
windows 11 KVM config
<domain type="kvm">
<name>win11-GTX1080-ti</name>
<uuid>4f07d22d-bd49-443f-8a96-302222f23594</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">16384000</memory>
<currentMemory unit="KiB">16384000</currentMemory>
@vadimstasiev
vadimstasiev / gist:c6a652e0a5c0f3fd135a83362fff7082
Created September 22, 2022 23:56
Add Flatpak repo on chromebook linux env
`flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo`
@vadimstasiev
vadimstasiev / gist:25c9f6d1307415c65e23ede31f7c97b1
Last active September 19, 2022 13:13
Disable nvidia in Xorg config file
Add
```
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "AllowNVIDIAGPUScreens" "false"
EndSection
@vadimstasiev
vadimstasiev / .readme.md
Last active September 15, 2023 15:35
Ubuntu Fix MTP - Archive

Original Thread: https://ubuntuforums.org/showthread.php?t=2226702

STEP 1

Firstly we're going to need to install some of the common MTP apps that will be needed. Open up a terminal and type the following two lines one after the other.

Code: sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9

Code:

@vadimstasiev
vadimstasiev / .README.md
Created July 19, 2022 16:57
Archived: Linux Nvidia Overclocking on Optimus-enabled laptop

Original Source of these documents and files: https://forums.developer.nvidia.com/t/option-coolbits-is-not-used-optimus-enabled-laptop-running-an-rtx-2070-manjaro-linux/111771/13

Brief instructions

DISCLAIMER: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER

@vadimstasiev
vadimstasiev / .readme.md
Created July 17, 2022 22:08
Setting Up Google Coral In Docker within an LXC container

Copy paste of Reddit post, for archival purpose, original post: https://www.reddit.com/r/Proxmox/comments/n34f8q/proxmox_vm_ubuntu_2004_frigate_2x_google_coral_tpu/

Proxmox >> VM (Ubuntu 20.04) >> Frigate + 2x Google Coral TPU This assumes that you already have Proxmox (6.3+) installed and a VM running Ubuntu 20.04+ with Docker installed and a Frigate container created that you wish to pass-thru some Google Coral(s) for TensorFlow processing.

Required Hardware

You will need a Coral device. These can be purchased from okdo.com (there are other distributors)

Note: I avoided the USB device due to the high price and the low availably so instead opted to try two different PCIe devices. I can confirm both devices below work but if I had to choose I would go the mini-pcie route as it's a smaller form factor with equal performance of the m.2

@vadimstasiev
vadimstasiev / .readme.md
Last active July 8, 2022 22:26
pihole + unbound

ARM (raspberry / other arm device) docker-compose config to set up pihole + unbound with no need for any extra configuration

docker-compose up -d

version: "2"

services:
 pihole:
@vadimstasiev
vadimstasiev / .readme.md
Last active July 30, 2022 15:50
Ubuntu 22 Biased Installation, aka, How I like things to be

Preview:

image

BTRFS

When installing on BTRFS, make sure that @ (as /) and @home (as /home) subvolumes are created, otherwise Timeshift won't work.

My custom mount options for BTRFS, can be added after installation.

In my case I'm using an Intel 660p NVME SSD, but it is probably a good idea to read up and decide on the individual options yourself as different options will work better or worse, or in some cases much worse depending on the disks used.

# Some prerequisites
`sudo apt-get install build-essential dkms`
# Install the driver
```
git clone https://github.com/gnab/rtl8812au
mv rtl8812au /usr/src/8812au-4.2.3
sudo dkms add -m 8812au -v 4.2.3