Skip to content

Instantly share code, notes, and snippets.

@wyhasany
wyhasany / README.MD
Last active November 23, 2022 18:27
Yubikey/Yubicom/Yubico login/lock/unlock screensaver, greeter, pantheon-greeter Elementary OS

Summary:

Requirements:

OS: Elementary OS 0.4.1 Loki | Should work properly on other Debian based distro's, remember to change your screensaver command this might be different depending on the distro Yubikey: Yubikey II

Description:

This is a Short guide on how to get your Yubikey to work on Linux (Debian based) with the option to lock/unlock your screen using your Yubikey.

Features:

@wyhasany
wyhasany / README.md
Last active April 19, 2024 13:08
Wine configuration for QTranslate under Linux/MacOS

QTranslate for Linux

This is tutorial how to run awesome application to context translation: QTranslate The authors write on the site that they don't plan to support QTranslate for other platforms than Microsoft Windows. I felt a lack similiar solution at Linux. So I've tried to run that application at Linux Ubuntu distribution. On the end that's works I really appreciate all the help which I received at winehq forum.

Installation

@wyhasany
wyhasany / Complex.java
Created March 4, 2017 14:12
Simple cross correlation implementation
/******************************************************************************
* Compilation: javac Complex.java
* Execution: java Complex
*
* Data type for complex numbers.
*
* The data type is "immutable" so once you create and initialize
* a Complex object, you cannot change it. The "final" keyword
* when declaring re and im enforces this rule, making it a
* compile-time error to change the .re or .im fields after