This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name noVNC Paste for Proxmox | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2a | |
| // @description Pastes text into a noVNC window (for use with Proxmox specifically) | |
| // @author Chester Enright | |
| // @match https://* | |
| // @include /^.*novnc.*/ | |
| // @require http://code.jquery.com/jquery-3.3.1.min.js | |
| // @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: http://www.powershellmagazine.com/2013/07/18/pstip-how-to-switch-off-display-with-powershell/ | |
| # Turn display off by calling WindowsAPI. | |
| # PostMessage(HWND_BROADCAST,WM_SYSCOMMAND, SC_MONITORPOWER, POWER_OFF) | |
| # HWND_BROADCAST 0xffff | |
| # WM_SYSCOMMAND 0x0112 | |
| # SC_MONITORPOWER 0xf170 | |
| # POWER_OFF 0x0002 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // install entware | |
| installentware // for coreelec | |
| wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | sh // for libreelec rasbperry 3 | |
| // update && install zerotier | |
| opkg update | |
| opkg install zerotier | |
| // start the daemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function mc | |
| set SHELL_PID %self | |
| set MC_PWD_FILE "/tmp/mc-$USER/mc.pwd.$SHELL_PID" | |
| /usr/bin/mc -P $MC_PWD_FILE $argv | |
| if test -r $MC_PWD_FILE | |
| set MC_PWD (cat $MC_PWD_FILE) | |
| if test -n "$MC_PWD" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Resolves many Windows GUIDs to human friendly values. | |
| .DESCRIPTION | |
| Resolve-WindowsGUID.ps1 takes a GUID from a Windows system and attempts | |
| to return a human friendly value from either a static list or from a | |
| dynamically generated list of LogProvider GUIDs. There are undoubtedly | |
| other GUIDs in use throughout Windows that will not fall into either of | |
| these sets. If you encounter a GUID that you can't resolve via this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # author Marek Vavrecan (vavrecan@gmail.com) | |
| # show usage | |
| [ $# -eq 0 ] && { echo "Usage: $0 [apk path] [source namespace] [target namespace]"; exit 1; } | |
| APK_PATH="$1" | |
| NAMESPACE_FROM="$2" | |
| NAMESPACE_TO="$3" |