Skip to content

Instantly share code, notes, and snippets.

View john-shine's full-sized avatar

John Shine john-shine

View GitHub Profile
@john-shine
john-shine / karabiner.json
Created May 3, 2019 05:12
launch voice input or delete_or_backspace by application key
"global": {
......
},
"profiles": [{
"complex_modifications": {
"parameters": {
......
"basic.to_if_held_down_threshold_milliseconds": 500
},
"rules": [
$AppsKey::
KeyWait, AppsKey, T0.2
if (ErrorLevel) {
Send {F7}
} else {
Send {Backspace}
}
return
<?php
return [
'&#xE84D;' => '3d_rotation',
'&#xE190;' => 'access_alarm',
'&#xE191;' => 'access_alarms',
'&#xE192;' => 'access_time',
'&#xE84E;' => 'accessibility',
'&#xE84F;' => 'account_balance',
'&#xE850;' => 'account_balance_wallet',
@john-shine
john-shine / Host
Created February 18, 2023 07:50 — forked from lucndm/Host
Proxmox GPU passthrough to LXC Container
Note : Proxmox 6.1
VI : /etc/apt/sources.list
# security updates
deb http://security.debian.org jessie/updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian jessie pve-no-subscription
@john-shine
john-shine / Set-VGpuEternalTrial.ps1
Created February 27, 2023 01:56 — forked from neggles/Set-VGpuEternalTrial.ps1
Sets nVidia vGPU unlicensed state timeout to 24 hours and adds a daily scheduled task to restart the GPU drivers and reset the clock.
<#
.SYNOPSIS
Set vGPU VM instance into eternal trial.
.DESCRIPTION
Configures a Windows vGPU client for a 24-hour trial period and automatic daily driver restarts.
.EXAMPLE
Set-VGpuEternalTrial -RestartTime 2AM
.EXAMPLE
Set-VGpuEternalTrial -RestartTime 3AM -Filter '*GRID*'
.INPUTS