Skip to content

Instantly share code, notes, and snippets.

View ygurin's full-sized avatar

Yuri Gurin ygurin

  • Axonista
  • Dublin
View GitHub Profile
@ygurin
ygurin / synapticshotkey.ahk
Last active March 30, 2022 14:05
Simple AutoHotkey script disables and enables touchpad on Windows 10. Synaptics touchpad driver must be installed. This is targeted at older machines where the driver is installed, but Function key for disabling the touchpad doesn’t work.
;Disable and Enable Synaptics touchpad using Keyboard Shortcut on Windows 10
;CTRL+F9 to enable the Synaptics Touchpad
^F9::
Run C:\Windows\System32\control.exe main.cpl ;Open Mouse Properties
Sleep 1000 ;Wait one second
if WinExist("Mouse Properties") {
WinActivate ;Make Mouse Properties the active Window
Send, ^+{TAB} ;Go to last tab
Send, !E ;Alt+E to enable touchpad
@ygurin
ygurin / pdFlatmap.py
Last active February 13, 2018 11:19
Performing a Pandas DataFrame Flatmap Operation mapping each list value among each of its rows this example uses Pythons itertools
# Performing a Flatmap Operation on a selected column
# containing rows of lists this example uses
# Pythons itertools
import pandas as pd
from itertools import chain
def flatmap(f, items):
return list(chain.from_iterable(list(map(f, items))))
@ygurin
ygurin / steam_startup_log_20200615105235_2.log
Created June 15, 2020 10:06
Steam startup log until steam client streaming attempt crashes
[yuri:~] [base] % steam
Running Steam on ubuntu 20.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
/home/yuri/.local/share/Steam/ubuntu12_32/steam
[2020-06-15 10:51:30] Startup - updater built Jun 4 2020 05:50:42
Installing breakpad exception handler for appid(steam)/version(1591251555)
Installing breakpad exception handler for appid(steam)/version(1591251555)
[2020-06-15 10:51:31] Verifying installation...

Keybase proof

I hereby claim:

  • I am ygurin on github.
  • I am ygurin (https://keybase.io/ygurin) on keybase.
  • I have a public key ASCd0cjd3_jn-w3EX5vI9uu2DxlYbhrLfGo6Iee2cVd07Ao

To claim this, I am signing this object:

@ygurin
ygurin / logid.cfg
Created March 7, 2022 11:04
Logiops configuration file
// logiops - https://github.com/PixlOne/logiops
// see instructions https://developpaper.com/logiops-set-logitech-mouse-buttons-and-gestures-under-linux/
// see button mapping https://github.com/fin-ger/logitech-m720-config#button-cid-mapping
// see Linux key mapping https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h
devices: (
{
name: "M720 Triathlon Multi-Device Mouse";
buttons: (
{
#!/bin/bash
# Function to print usage
print_usage() {
echo "Usage: $0 [-d directory]"
}
# Parse the command line arguments
while getopts 'd:' flag; do
case "${flag}" in
@ygurin
ygurin / json
Created December 15, 2024 17:05
data.json
[
{
"question": "What should a driver do if involved in an incident where they feel it was the fault of another driver?",
"heading": "Accidents",
"explanation": "If you are involved in any sort of incident with another motorist, you should always exchange insurance details with the other driver and take note of the other vehicle’s make and model, colour and registration number. Report the incident to the Gardaí. In a collision where nobody is injured and there is only minor damage to vehicles, the vehicles should be moved to the side of the road to ensure that they do not cause an obstruction or endanger other road users.",
"questions": [
"Drive on to the nearest Garda Station and report the incident.",
"Stop and exchange licence details with the other person involved.",
"Carry on if they think there was no damage to their vehicle.",
"Stop immediately and exchange particulars with the other person involved."