Skip to content

Instantly share code, notes, and snippets.

View fsworld009's full-sized avatar

Andy Lee fsworld009

View GitHub Profile
@lbrame
lbrame / framework_16_linux_fedora.md
Last active April 16, 2025 18:53
Framework Laptop 16 Linux configuration tips

⚙️🐧 Framework 16 comprehensive Linux set-up gist

DSC_3274

The Framework Laptop 16 is my new laptop of choice that I purchased to replace my dying older machine. While this laptop enjoys official Linux support, there are still a few things to take care of post-install.

Hardware configuration

This might be useful for people who stumble onto this gist to debug. My laptop is configured as such, with notes on the Linux support:

@fsworld009
fsworld009 / ExtraNote.md
Last active January 4, 2023 09:56
HP Elitebook 830 G8 Pop!_os installation note

Not so important notes

Reinstall Windows

https://support.hp.com/tw-zh/document/c06177099 I first created Win10 Pro USB with drivers, but it couldn't detect product key in this device. I created again without drivers, this time it can reinstall Win10 Pro properly.

VirtualBox install WIndows 10 with OEM key

@joshuakraemer
joshuakraemer / instructions.md
Last active January 31, 2025 20:30
How to install Windows Media Player 11 to a Proton prefix
  1. Download Windows Media Player 11, 64 bit (wmp11-windowsxp-x64-enu.exe):
    $ cd /tmp/
    $ curl -O https://web.archive.org/web/20190512112704/https://download.microsoft.com/download/3/0/8/3080C52C-2517-43DE-BDB4-B7EAFD88F084/wmp11-windowsxp-x64-enu.exe
  2. Extract the archive:
    $ cabextract wmp11-windowsxp-x64-enu.exe -d wmp11
  3. Run and close the game through Steam. A Proton prefix is created on the first run.
  4. Go to the game's folder inside Steam's compatdata folder:
    $ cd $HOME/.local/share/Steam/steamapps/compatdata/287290
  5. Set prefix to Windows XP: $ WINEPREFIX=$PWD/pfx wine winecfg
@Informatic
Informatic / domain.xml
Last active April 13, 2025 00:32
How to use Windows 10 OEM license in libvirt VM (<smbios mode='host' /> does not work as Windows seems to verify UUID; apparmor/security configuration changes may be needed)
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<!-- ... -->
<qemu:commandline>
<qemu:arg value='-acpitable'/>
<qemu:arg value='file=/some/path/slic.bin'/>
<qemu:arg value='-acpitable'/>
<qemu:arg value='file=/some/path/msdm.bin'/>
<qemu:arg value='-smbios'/>
<qemu:arg value='file=/some/path/smbios_type_0.bin'/>
<qemu:arg value='-smbios'/>
@loilo
loilo / pass-slots.md
Last active February 20, 2025 09:47
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@PaulKinlan
PaulKinlan / monitorEvents.js
Created October 14, 2016 07:38
monitorEvents.js
function monitorEvents(element) {
var log = function(e) { console.log(e);};
var events = [];
for(var i in element) {
if(i.startsWith("on")) events.push(i.substr(2));
}
events.forEach(function(eventName) {
element.addEventListener(eventName, log);
});
@sabpprook
sabpprook / gist:3a05cdaa0a2bab91de35a9de5d3bd2cf
Created September 19, 2016 23:27
Android ID change via ADB shell
adb shell content query --uri content://settings/secure --where "name=\'android_id\'"
adb shell content delete --uri content://settings/secure --where "name=\'android_id\'"
adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:7373de1e9e9670c2
@joshco
joshco / Guardfile.rb
Last active May 10, 2019 18:44
Vagrant Guest Guard HTTP Solution
require 'sinatra'
require 'json'
# Use of guard-yield based on wisdom from https://github.com/e2
# use of HTTP crime by @joshco
class SinatraGuard < Sinatra::Base
set :bind, '0.0.0.0'
set :port, 4000