Skip to content

Instantly share code, notes, and snippets.

View aldenjenkins's full-sized avatar
😀
Happy

Alden Jenkins aldenjenkins

😀
Happy
View GitHub Profile
@caseywatts
caseywatts / 0-self-publishing.md
Last active April 7, 2024 21:25
Self-Publishing via Markdown
@rowantran
rowantran / xp-pen-on-linux.md
Created May 19, 2019 17:30
Setting up XP-Pen tablet on Linux using new kernel drivers

Short guide detailing how to use the new drivers included in kernel (since 5.1) for an XP-Pen tablet.

As of 5.1, this method should work for at least the XP-Pen G540 and G640 (I am using a G540 but commands given should be identical across either tablet.)

Running xinput list should yield something similar to this:

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1