Skip to content

Instantly share code, notes, and snippets.

View yrtimiD's full-sized avatar

Dmitry Gurovich yrtimiD

  • Israel
  • 06:57 (UTC +02:00)
View GitHub Profile
@yrtimiD
yrtimiD / fs5000.py
Created June 5, 2024 12:21 — forked from brookst/fs5000.py
Serial interface to Bosean FS-5000 radiation detector
#!/usr/bin/env python3
__author__ = "Tim Brooks"
__email__ = "[email protected]"
__date__ = "2024-04-23"
import datetime
from enum import Enum, Flag
import logging
import serial
import serial.tools.list_ports as list_ports
@yrtimiD
yrtimiD / git_stashes_export.sh
Last active February 7, 2024 13:08
Migrate stashes between git repos
refs=$(git stash list|cut -d: -f1)
for ref in $refs; do
patchname=`git show -s --pretty=%f $ref`.patch
echo $patchname
git stash show -p $ref > $patchname;
done
@yrtimiD
yrtimiD / launch.json
Created November 27, 2020 22:58
vscode-chrome-attach-issue-files
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch in Chrome",
@yrtimiD
yrtimiD / Always-On-Top-AutoHotkey.ahk
Created May 23, 2020 18:17
Windows Always on Top AutoHotkey
Menu,Tray,Tip,Always on top`nWin+Space to toggle always on top
SendMode, Input
;#SPACE:: Winset, Alwaysontop, , A
#SPACE::
WinGetActiveTitle, t
WinGet, ExStyle, ExStyle, %t%
if (ExStyle & 0x8)
@yrtimiD
yrtimiD / KDE-Mover-Sizer-AutoHotKey.ahk
Created May 23, 2020 18:15
KDE-Mover-Sizer-AutoHotKey AutoHotkey
; Internationally known as "KDE Mover-Sizer" Version 2.9
;
; http://corz.org/windows/software/accessories/KDE-resizing-moving-for-Windows.php
; Which is essentially..
; Easy Window Dragging -- KDE style (requires XP/2k/NT) -- by Jonny
; ..with nobs on. See http://www.autohotkey.com and their forum.
;
; This script makes it much easier to move or resize a window: 1) Hold down
@yrtimiD
yrtimiD / shuffle.js
Created November 10, 2019 20:12
Shuffle array in javascript
function shuffle(arr){
let shuffle = [];
while(arr.length>0){
const r = Math.floor(Math.random()*arr.length);
shuffle.push(arr.splice(r,1)[0]);
}
return shuffle;
}
const list = [1,2,3,4,5,6,7,8,9];