Skip to content

Instantly share code, notes, and snippets.

View kalaschnik's full-sized avatar
🤷

Steven Kalinke kalaschnik

🤷
View GitHub Profile

macOS German keyboard layout

⌥ (option) layout

⇧ + ⌥ (shift + option) layout

@kalaschnik
kalaschnik / screenCoords.js
Last active January 20, 2021 13:59
Tool Tip which shows your screen coords when your mouse stops (screenXY, pageXY, clientXY)
document.onmousemove = function(e){
e.target.title = `screenX,Y:\t\t${e.screenX},${e.screenY}
pageX,Y:\t\t${e.pageX},${e.pageY}
clientX,Y:\t\t${e.clientX},${e.clientY}`;
};
@kalaschnik
kalaschnik / index.html
Last active August 25, 2020 11:30
Demo of Webcam using JavaScript's WebRTC API: getUserMedia()
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebRTC Webcam Demo</title>
</head>
<body>
<video id="video-preview" muted></video>
@kalaschnik
kalaschnik / E-Prime-Windows10-19041.md
Created April 4, 2020 09:17
Install E-Prime for Windows 10 version 20H1 (Build >= 19041.0)

How to install E-Prime 3 on Windows 10 version 20H1 (≥19041.0)

There is an easy fix for the system crash during the latest E-Prime 3 installation running Windows 10 20H1 (Build 19041.X). The crash report displays: Stop code: PAGE FAULT IN NONPAGED AREA ; What Failed: aksfridge.sy.

The crash is related to the E-Prime installer which ships with an old driver for the Sentinel HASP/LDK hardware dongle. You can, however, install the update-to-date HASP drivers manually. Follow the steps:

  1. Download and install Sentinel HASP/LDK - Windows GUI Run-time Installer.
  2. Install E-Prime
  3. Profit
@kalaschnik
kalaschnik / miscellaneous.md
Last active April 13, 2020 16:07
random stuff

FFmpeg

Add to Path (Windows)

Run in elevated cmd: setx /M PATH "%PATH%;C:\ffmpeg\bin"

fish <><

Abbreviations

abbr -a -g cdgit cd /mnt/d/Steven/git/
abbr -a -g cdws cd /mnt/d/OneDrive/WorkSpaces/
@kalaschnik
kalaschnik / send_mail.vba
Last active March 25, 2020 19:44
Send condition-based emails in MS Excel triggering the send_mail subroutine
Sub send_email()
' Check if Mail was sent (value = 1) if so, do nothing
If Range("B5").Value = 1 Then Exit Sub
Dim NewMail As Object
Dim MailConfig As Object
Dim SMTP_Config As Variant
Dim strSubject As String
Dim strFrom As String
@kalaschnik
kalaschnik / RStudio-in-WSL2.md
Last active March 14, 2024 20:41
Run RStudio in the Windows Subsystem for Linux 2 (WSL 2) using Pengwin and X410
@kalaschnik
kalaschnik / settings.json
Last active May 1, 2020 07:23
Windows Terminal Config
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"profiles": {
"defaults": {
// Put settings here that you want to apply to all profiles
"colorScheme": "Campbell",
"fontFace": "Fira Code",
@kalaschnik
kalaschnik / 0-WindowsTerminalRightClick.reg
Last active March 17, 2020 10:48
Add Windows Terminal to Rick Click Menu (aka Shell Menu, Context Menu)
; "Extended"="" requires you holding down shift key to reveal the entry
; Terminal Icon https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico
; \Directory\ enables Terminal to show when right click on a directory
; \Background\ enables Terminal to show when right click within a folder
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\wt]
@="Open Terminal here"
"Extended"=""