Skip to content

Instantly share code, notes, and snippets.

@awakecoding
awakecoding / RdpProps.txt
Last active June 5, 2023 13:23
RDP Property Sets
CoreProperties(234):
ServerName (String)
ServerNetBiosName (String)
ServerFqdn (String)
ServerAddressesToConnect (IUnknown)
UserSpecifiedServerName (String)
UserName (String)
Domain (String)
Password (SecureString)
AlternateShell (String)
@OlfillasOdikno
OlfillasOdikno / Linux_GPU_PV.md
Last active April 15, 2024 09:46
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"
@selvalogesh
selvalogesh / keepSysAwake.ps1
Last active February 28, 2024 10:14
A system tray app for windows using Power shell script to keep your system awake.
#Thanks to - https://github.com/damienvanrobaeys/Build-PS1-Systray-Tool
# - https://www.systanddeploy.com/2018/12/create-your-own-powershell.html
# - https://stackoverflow.com/questions/54649456/powershell-notifyicon-context-menu
# - https://adamtheautomator.com/powershell-async/
[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | out-null
[System.Reflection.Assembly]::LoadWithPartialName('presentationframework') | out-null
@rstacruz
rstacruz / README.md
Last active April 23, 2024 00:19
Setting up Jest with ESM

Setting up Jest with ESM

Here are some different ways on how to set up Jest to support ESM. This applies for Jest v25, Node v13, and Babel v7.

Method A: Native Node.js support

Node v14 and Jest v26 support ESM natively with the --experimental-vm-modules flag.

Install cross-env:

@nrdmn
nrdmn / vsock-notes.md
Last active April 26, 2024 14:51
vsock notes

vsock notes

about vsocks

Vsocks are a means of providing socket communication (either stream or datagram) directly between VMs and their host operating system. The host and each VM have a 32 bit CID (Context IDentifier) and may connect or bind to a 32 bit port number. Ports < 1024 are privileged ports.

@andreaferretti
andreaferretti / README.md
Last active November 4, 2019 21:38
mynim - manage nim versions

MyNim

MyNim is a tool to install and manage various versions of Nim and related tools.

Since it requires a bash and symlinks, it works fine on Unix derived systems (e.g. MacOSX or Linux) but not on Windows.

Installing MyNim

Just download the mynim file, make it executable and put it somewhere on your $PATH.

@Ohohcakester
Ohohcakester / javacombiner.py
Last active April 15, 2024 20:57
A simple java project combiner to merge all of your .java files into one nice, long single-file java program. Probably doesn't work with abstract classes yet.
import os
folderPath = 'InsertDirectoryPathHere/src/'
# mainFile is the file containing the main class.
mainFile = 'ProjectMainClass.java'
# exclude these files from the project.
excluded = ['State.java', 'Frame.java', 'Label.java']
def printSafe(s):
s = str(s).encode('ascii', 'ignore')