Skip to content

Instantly share code, notes, and snippets.

View dsetareh's full-sized avatar

Daniel Setareh dsetareh

View GitHub Profile
blueprint:
name: ZHA - Moes Smart Knob for lights
description: 'Control lights with a Moes Smart Knob.
You can set functions for a single press. This allows you to assign,
e.g., a scene or anything else.
Rotating left/right will change the brightness smoothly of the selected light.
Not all functionality of the device is available at time of writing, e.g. double press, long press and press and rotate.'
@dsetareh
dsetareh / elites.ahk
Created July 5, 2021 19:51
cremation keybinds
XButton1::Space
XButton2::
GetKeyState, state, Space
if (state = "D") {
HoldEsc()
}
else {
HoldTwo()
}
@dsetareh
dsetareh / bankstanding.ahk
Created July 1, 2021 22:22
osrs mouse ahk with toggle between shift and esc
SendShift = 1
SendShift := SendShift = 1 ? 0 : 1
SetTimer, FollowMouse, 8 ; 120hz idk
SetTimer, RemoveToolTip, -2000
XButton2::
if (SendShift = 1) {
HoldShift()
}
@dsetareh
dsetareh / multisrsran.md
Last active May 4, 2024 05:59
How to run multiple srsRAN + zmq environments on one machine

How to run multiple srsRAN + zmq environments on one machine

NOTE: ue/enb/epc.conf should already be setup for normal single environment srsRAN+zmq also this still has issues

generate namespaces

ip netns add ue1
ip netns add ue2
@dsetareh
dsetareh / jpopsuki.py
Created May 28, 2021 14:30
lazy script to dl the smallest torrents on jpopsuki
from webbot import Browser
import time
# lazy script to dl the smallest torrents on jpopsuki
web = Browser()
web.go_to('https://jpopsuki.eu/login.php')
web.type('username', into='Username')
web.type('password', into='Password')
web.click('Log In!')
@dsetareh
dsetareh / 2dark4u-theme.properties
Created May 22, 2021 04:37
weechat-android custom oled dark theme
# suppress inspection "UnusedProperty" for whole file
name = 2Dark4U
default = 0xfffffff
default_bg = 0x0
# unimportant stuff
chat_time = 0xdf5588
chat_prefix_more = 0x222222
chat_prefix_action = 0x222222

Keybase proof

I hereby claim:

  • I am dsetareh on github.
  • I am anime (https://keybase.io/anime) on keybase.
  • I have a public key ASBDHeIDQ2B1rXJdY1bWpIoV4vbxZPBPLVsS4dQ1i9Fdpwo

To claim this, I am signing this object: