These commands should execute on your "GUEST" OS/Your virtual machine.
If the OS is a linux, run
dd if=/dev/zero of=/var/tmp/bigemptyfile bs=4096k ; rm /var/tmp/bigemptyfile
if the OS is windows
## Windows 10+ optimizations | |
%windir%\system32\usoclient StartScan | |
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 | |
Enable hibernation: | |
powercfg /h on | |
powercfg hibernate size 0 | |
powercfg /h /type reduced |
These commands should execute on your "GUEST" OS/Your virtual machine.
If the OS is a linux, run
dd if=/dev/zero of=/var/tmp/bigemptyfile bs=4096k ; rm /var/tmp/bigemptyfile
if the OS is windows
#! /usr/bin/env python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |
# Colors (Nord) | |
# colors: | |
# # Default colors | |
# primary: | |
# background: '0x2E3440' | |
# foreground: '0xD8DEE9' | |
# | |
# # Normal colors | |
# normal: | |
# black: '0x3B4252' |
using System; | |
using System.Threading; | |
using System.Diagnostics; | |
namespace csgo_walls { | |
public class Glow { | |
public static int Client; | |
public static string process = "csgo"; |
using System; | |
using System.Threading; | |
using System.Diagnostics; | |
namespace csgo_walls { | |
public class Glow { | |
public static int Client; | |
public static string process = "csgo"; |
; Based on https://superuser.com/a/768060/542406 | |
!`:: ; Next window | |
WinGet, ActiveProcessName, ProcessName, A | |
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName% | |
IF WinClassCount = 1 | |
Return | |
Else | |
WinSet, Bottom,, A | |
WinActivate, ahk_exe %ActiveProcessName% | |
return |
# Copyright (c) 2015-2016 Vector 35 LLC | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to | |
# deal in the Software without restriction, including without limitation the | |
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
# sell copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in |
// Save this file somewhere as spotify.preload.c | |
// Then build the library: | |
// gcc -fPIC -shared -o ~/spotify.preload.so spotify.preload.c -ldl | |
// When you execute spotify, you need to preload this library, which wraps the "setsockopt" function call with another function that gives spotify the results it expects: | |
// LD_PRELOAD=~/spotify.preload.so spotify | |
// To make the desktop icon work, edit: /usr/share/applications/spotify.desktop | |
// Change Exec=... to: |