Skip to content

Instantly share code, notes, and snippets.

View lenisko's full-sized avatar
🏠
Working from home

Jakub lenisko

🏠
Working from home
View GitHub Profile
@lenisko
lenisko / MoveToBinMPC-HC.ahk
Last active August 15, 2024 02:02
Autohotkey - Move opened file in MPC-HC to Recycle Bin
; Autohotkey - Move opened file to Recycle Bin
; Working on: MPC-HC, Media Player Classic
;
; Setup: Options -> Player -> Title Bar -> Display full path
; Delete is under Del key, assuming page down is set to open next file as default.
#IfWinActive ahk_class MediaPlayerClassicW
{
Del::
@lenisko
lenisko / dark_gentleman.css
Created January 12, 2016 15:07
Pisg - dark gentleman theme
/* <!--
Pisg - dark gentleman theme
based on https://gist.github.com/Liamraystanley/5924421
by lazy Len
--> */
a {
color: #0088FF;
}
a:link {
text-decoration: none;
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@lenisko
lenisko / SteamBulkKeyActivatorPL.ahk
Created November 30, 2016 00:25
Steam Bulk Key Activator - For systems with Polish language
; Copyright 2014 colingg (colin.gg)
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
@lenisko
lenisko / SteamBulkKeyActivatorEN.ahk
Created November 30, 2016 00:27
Steam Bulk Key Activator - For systems with English language
; Copyright 2014 colingg (colin.gg)
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
@lenisko
lenisko / kill_not_active_pts.py
Created October 10, 2017 23:04
Simple python script used to kill not active pts sessions
#!/usr/bin/python
"""
Author: @lenisko
Simple python script used to kill not active pts sessions.
"""
import re
import subprocess
@lenisko
lenisko / tobii.py
Created September 14, 2018 00:30 — forked from Epictek/tobii.py
import logging
import clr
clr.AddReference("Tobii.Interaction.Net")
clr.AddReference("Tobii.Interaction.Model")
clr.AddReference("EyeXFramework")
clr.AddReference("System")
from Tobii.Interaction import *
from Tobii.Interaction.Framework import *
from System import *
@lenisko
lenisko / mumble_info.py
Created December 1, 2018 18:02
Script used to send PING to Mumble server and get data
#!/usr/bin/python
"""
Author: @lenisko
Script used to send PING to Mumble server and get data:
- server version
- ping
- users
- max users
- bandwidth
"""
<?xml version="1.0" encoding="utf-8" ?>
<Device_Info>
<DeviceInfoVers>0001</DeviceInfoVers>
<CommApiVers>0301</CommApiVers>
<Gen>0002</Gen>
<BrandCode>0</BrandCode>
<ProductCategory>01</ProductCategory>
<CategoryName>AV RECEIVER</CategoryName>
<ManualModelName>AVR-X1400H</ManualModelName>
<DeliveryCode>02</DeliveryCode>
@lenisko
lenisko / gist:db937642b294d651507866b1aa8c7adb
Created February 14, 2019 01:14 — forked from Ayms/gist:6451926
WebCrypto code example - Upload a file, encrypt it, calculate the hash and store the results using indexedDB

Code example using WebCrypto, File API, indexedDB, createObjectURL and Workers.

<input type="file" onsubmit="process_upload">
var workerjs=' \
  onmessage=function(evt) { \
		var encrypt=crypto.workersubtle.encrypt({name:"AES-CBC",iv:new Uint8Array(16)},evt.data[0]); \
		var buffer=evt.data[1]; \