Skip to content

Instantly share code, notes, and snippets.

@krzys-h
krzys-h / Hyper-V GPU-PV with Linux guest.md
Last active November 18, 2024 00:01
Ubuntu 21.04 VM with GPU acceleration under Hyper-V...?

Ubuntu 21.04 VM with GPU acceleration under Hyper-V...?

Modern versions of Windows support GPU paravirtualization in Hyper-V with normal consumer graphics cards. This is used e.g. for graphics acceleration in Windows Sandbox, as well as WSLg. In some cases, it may be useful to create a normal VM with GPU acceleration using this feature, but this is not officially supported. People already figured out how to do it with Windows guests though, so why not do the same with Linux? It should be easy given that WSLg is open source and reasonably well documented, right?

Well... not quite. I managed to get it to run... but not well.

How to do it?

  1. Verify driver support
@jepio
jepio / ubuntu20-hyperv-enhanced-session.md
Last active September 4, 2023 06:54 — forked from milnak/ubuntu20-hyperv-enhanced-session.md
Verified way of enabling enhanced session in Hyper-V for Ubuntu 20

Setup Hyper-V enhanced session for Ubuntu 20

I couldn't find instructions that were 100% complete, so I put this together.

These instructions worked fine for me. Follow each step carefully.

Download Ubuntu 20.04 desktop

Download Ubuntu Desktop 20.04 LTS from here.

@tomdaley92
tomdaley92 / README.md
Last active November 21, 2024 18:53
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

@Ed1123
Ed1123 / autoEmojiSignal.js
Last active March 7, 2024 22:01
A script to auto-select the star emoji for all stickers when importing them to Signal
// Delay function
const delay = ms => new Promise(res => setTimeout(res, ms));
// Delay between clicks (seconds)
delayBetweenClicks = .1;
// Loop for all the stickers
stickers = document.getElementsByClassName('lCzvEVovrfFcZaKyf3ZOA');
for (i=0; i<stickers.length; i++){
// Clicking each emoji element for each sticker
stickers[i].getElementsByClassName('_2S1Fkez4JWbv9-1wbe5aeH')[0].click();
@tannerdsilva
tannerdsilva / hostXMRNode.md
Last active June 11, 2024 09:39
How To Build And Host a Monero Node from Source

How to Build and Install a Monero Node on a Debian-based System

Hello. In this document, we will walk through the steps of building and hosting your own Monero node from source on a Debian-based Linux system. These systems include Raspbian, Debian (9 and above), and Ubuntu (18.04 and above). This tutorial assumes that you are capable of accessing the ROOT terminal of your Debian-based system, and are capable of getting your system online if necessary. You may plan on using an external storage device to store the blockchain, this tutorial will include the optional steps to support external storage. Alternatively, this setup procedure can also accomodate users looking to host a pruned blockchain with restricted storage space.

Here are some useful links for reaching this prerequisite if you do not currently have access to a Debian-based system that meets the recommended system requirements.

@nikias
nikias / limd-build-macos.sh
Last active November 8, 2024 13:42
Build libimobiledevice stack for macOS with ease
#!/bin/bash
# If you like this script and my work on libimobiledevice, please
# consider becoming a patron at https://patreon.com/nikias - Thanks <3
REV=1.0.19
if test "`echo -e Test`" != "Test" 2>&1; then
echo Please run this with zsh or bash.
exit 1
@rvanlaar
rvanlaar / get_transip_jwt.sh
Last active April 30, 2022 00:10
Get TransIP JWT
#!/usr/bin/env bash
#
# Get a TRANSIP JWT to use for authenticated API requests
# https://api.transip.nl/rest/docs.html#header-authentication
#
# necessary commandline tools:
# jq
# curl
#
# Setting it up:
@ayyybe
ayyybe / ccdl.command
Last active September 12, 2024 02:13
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@cdeath
cdeath / ffmpeg_mkv_ops.md
Last active October 2, 2024 19:25
extract stuff from .mkv with ffmpeg
@flowchartsman
flowchartsman / kali_osx_persistence_wifi.md
Last active May 30, 2024 06:53 — forked from widdowquinn/kali_osx_persistence_wifi.md
Kali Linux Live USB with encrypted persistence and wireless on Macbook Pro/Air without networking.

Kali Linux Bootable USB with Persistence and Wireless on OSX

Tutorials for running live Kali on OSX often require you have networking on your laptop to apt install the drivers, but without an ethernet adapter you're not going to be able to do that, so this tutorial will cover a method of doing this manually, using another thumbdrive or external data source.

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP.