Skip to content

Instantly share code, notes, and snippets.

@CGarces
CGarces / gist:bead08d670e0fc99032a28147fe63cfe
Created January 21, 2024 12:15
mount ext4 on windows 10 with WSL
GET-CimInstance -query "SELECT * from Win32_DiskDrive"
wsl --mount \\.\PHYSICALDRIVE1
wsl --unmount \\.\PHYSICALDRIVE1
@CGarces
CGarces / rtl8812au_usb_intf.c
Created March 6, 2021 10:44
rtl8812au_usb_intf.c
/******************************************************************************
*
* Copyright(c) 2007 - 2017 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@CGarces
CGarces / install-ut-goty-debian-64bits.md
Created April 26, 2020 15:44 — forked from soifou/install-ut-goty-debian-64bits.md
Install Unreal Tournament GOTY on Debian Jessie 64bits

Install Unreal Tournament GOTY on Debian 64bits

Run natively Unreal Tournament Game Of The Year (GOTY) on Debian system.

UT is not dead! The install process is a bit cumbersome but the game has been published more than 20 years ago! Please let me know how it went for you and if you have any tips, please share :)

And most important, have fun!

(Tested on Debian Bullseye 64bits)

@CGarces
CGarces / getversion.sh
Created April 9, 2017 17:09
Check if there is newer versions of libreelec packages on github repositories
#!/bin/bash
if [ -z "$1" ]; then
echo "usage: $0 user:password (from github)"
exit 1
fi
ROOT=/media/hdd/Development/LibreELEC.tv
TARGET_ARCH="x"
find $ROOT/packages -type f -name "package.mk" | while read line; do
@CGarces
CGarces / stopmediacenter.sh
Created November 19, 2016 10:17
script used to stopt kodi and let other process run on background
systemctl stop kodi
systemctl stop kodi-cleanlogs.service
systemctl stop kodi.target
systemctl stop graphical.target
systemctl stop pulseaudio.service 
echo 1 > /sys/class/graphics/fb0/blank
@CGarces
CGarces / startmediacenter.sh
Created November 19, 2016 10:15
Script used to start kodi from LE
systemctl start pulseaudio.service 
systemctl start graphical.target
systemctl start kodi.target
systemctl start kodi-cleanlogs.service
systemctl start kodi
echo 0 > /sys/class/graphics/fb0/blank
I'm not sure if entry 189 is correct... Should be 'ME' and 'RS' for Serbia and Montenegro