Skip to content

Instantly share code, notes, and snippets.

@shamil
shamil / mount_qcow2.md
Last active November 16, 2024 09:15
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@xeloader
xeloader / unfollow-all.md
Last active October 15, 2021 04:08
Unfollow everyone on LinkedIn

Unfollow everyone on Social Media

Unfollow everyone on LinkedIn

LinkedIn is even more clickbait than Facebook nowadays. Adios. 💣

Visit https://www.linkedin.com/feed/following/

Scroll down to load all of your contacts

Open developer console, run the following

//Postman pre-request Script which generates a SAS token query string.
const storageSasKey = pm.variables.get("storageSasKey");
const storageAccountName = pm.variables.get("storageAccountName");
const storageSasTokenQueryString = createStorageSASTokenQueryString(storageAccountName, storageSasKey);
pm.variables.set("storageSasTokenQueryString", storageSasTokenQueryString);
/**
@eykanal
eykanal / autoscroll.user.js
Last active October 30, 2024 13:50
Automatic scroll to bottom of page in twitter and facebook
// ==UserScript==
// @name AutoScroll
// @namespace https://gist.github.com/eykanal/a0b30e035d8c15995deeffec6ab21866
// @version 0.1
// @description Automatically scroll to the bottom of the page
// @author Eliezer Kanal
// @match https://www.facebook.com/search/str/*
// @match https://twitter.com/search*
// @grant none
// ==/UserScript==

Place theme files in ~/.k9s/ and create a symlink to the theme you wish to use as the current skin:

ln -s ~/.k9s/theme-to-use.yml ~/.k9s/skin.yml
@OlfillasOdikno
OlfillasOdikno / Linux_GPU_PV.md
Last active November 12, 2024 19:12
Hyperv Linux Guest GPU PV

Hyperv Linux Guest GPU PV

  • Create VM
$isopath = <iso location>
$vhdpath = <vhdx location>
$vmpath = <vm path>
$vmname = "Arch-dxgkrnl"
New-VM -Name $vmname -MemoryStartupBytes 8GB -BootDevice VHD -NewVHDPath $vhdpath -Path $vmpath -NewVHDSizeBytes 20GB -Generation 2 -Switch "Default Switch"