(adapted from Albrecht Schlosser)
- Install dependencies:
sudo apt-get install \ fontconfig \ libxft-dev \ libcairo2-dev \
libjpeg-dev \
| @ECHO OFF | |
| SET INSTALLER=qz-tray-2.2.3-x86_64.exe | |
| SET TEMPQZ=%USERPROFILE%\tempqz | |
| SET SEVENZIP=%PROGRAMFILES%\7-Zip\7z.exe | |
| REM Preflight: Check for admin | |
| NET SESSION >nul 2>&1 | |
| IF %ERRORLEVEL% EQU 0 ( | |
| REM Admin confirmed | |
| ) ELSE ( |
(adapted from Albrecht Schlosser)
sudo apt-get install \
fontconfig \
libxft-dev \
libcairo2-dev \libjpeg-dev \
| # A fatal error has been detected by the Java Runtime Environment: | |
| # | |
| # SIGSEGV (0xb) at pc=0xffffffff9053df5e, pid=3312, tid=3313 | |
| # | |
| # JRE version: (21.0.1+12) (build ) | |
| # Java VM: OpenJDK 64-Bit Server VM (21.0.1-beta+12-ea, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64) | |
| # Problematic frame: | |
| # j java.lang.System.registerNatives()V+0 java.base | |
| # | |
| # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again |
wget https://download2.gluonhq.com/openjfx/19/openjfx-19_monocle-linux-x64_bin-sdk.zip -O \
out/javafx-linux-x86_64-19_monocle.zip && unzip out/javafx-linux-x86_64-19_monocle.zip && \
cp -R javafx-sdk-19 lib/javafx-linux-x86_64-19_monocle && mv javafx-sdk-19 out/javafx-linux-x86_64-19_monoclepushd ~/Applications/qemu/debian-riscv64/ && \| #!/bin/bash | |
| keywords=('developer-low' 'door-open' 'fuser-over-temp' 'fuser-under-temp' 'input-tray-missing' 'interlock-open' 'interpreter-resource-unavailable' 'marker-supply-empty' 'marker-supply-low' 'marker-waste-almost-full' 'marker-waste-full' 'media-empty' 'media-jam' 'media-low' 'media-needed' 'moving-to-paused' 'opc-life-over' 'opc-near-eol' 'output-area-almost-full' 'output-area-full' 'output-tray-missing' 'paused' 'shutdown' 'spool-area-full' 'stopped-partly' 'stopping' 'timed-out' 'toner-empty' 'toner-low') | |
| echo "INFO: This is an informational message, I guess?" >&2 | |
| for i in {1..290} | |
| do | |
| echo "STATE: ${keywords[$i % 29]}" >&2 | |
| sleep .1 | |
| done |
| /** | |
| * Author: A. Tres Finocchiaro | |
| * License: Public Domain | |
| */ | |
| import "https://raw.githubusercontent.com/qzind/tray/v2.2.2/js/qz-tray.js"; | |
| import { encode, decode } from "https://deno.land/std/encoding/base64.ts"; | |
| // Load certificate | |
| qz.security.setCertificatePromise(function(resolve, reject) { |
| let tpe = require('thermal-printer-encoder'); | |
| let ws = require('ws'); | |
| let qz = require('qz-tray'); | |
| let encoder = new tpe({ | |
| language: 'esc-pos' | |
| }); | |
| let result = encoder | |
| .initialize() |
Custom session stealer for Windows fast user switching
For a pure PowerShell solution, see here instead: https://gist.github.com/tresf/4e19e15ad38354af6732ee701c990102
Custom session stealer for Windows fast user switching
For a pure Batch solution, see here instead: https://gist.github.com/tresf/ff91bd29f1f6846c13bf6f8bc255ab55
| # Adopted from: https://www.reddit.com/r/PowerShell/comments/306mcn/wtsenumeratesessions/ | |
| # Original Author: u/geostude | |
| $_WTSMyStruct_Def = @' | |
| namespace mystruct { | |
| using System; | |
| using System.Runtime.InteropServices; | |
| [StructLayout(LayoutKind.Sequential)] | |
| public struct WTS_SESSION_INFO { | |
| public Int32 SessionID; |