Skip to content

Instantly share code, notes, and snippets.

View caglarsayin's full-sized avatar

Çağlar Sayin caglarsayin

View GitHub Profile
@caglarsayin
caglarsayin / blueprint.yaml
Last active October 7, 2023 17:22
Zigbee homeassistant blueprint for ikea temp lights and switch with 4 buttons
blueprint:
name: ZHA - IKEA TRADFRI - 4 Button Remote - Temperature Lights
description: This automation simulates the use of the IKEA TRADFRI remote control
connected through ZHA. Button Up and Button Down = Turn On and Turn Off. Holdin Button Up or holding Button Down = Increase or decrease of brightness. Button Right Press changes the color hue, Button Left changes the color saturation.
domain: automation
input:
remote:
name: IKEA TRADFRI remote control 4 buttons
description: Select the remote control you wish to use.
selector:
@caglarsayin
caglarsayin / zha_ikea_tradfri_4button_remote_color.yaml
Created September 18, 2023 17:31 — forked from cehberlin/zha_ikea_tradfri_4button_remote_color.yaml
blueprint zha_ikea_tradfri_4button_remote_temp
blueprint:
name: ZHA - IKEA TRADFRI - 4 Button Remote - Color Lights
description: This automation simulates the use of the IKEA TRADFRI remote control
connected through ZHA. Button Up and Button Down = Turn On and Turn Off. Holdin Button Up or holding Button Down = Increase or decrease of brightness. Button Right Press changes the color hue, Button Left changes the color saturation.
domain: automation
input:
remote:
name: IKEA TRADFRI remote control 4 buttons
description: Select the remote control you wish to use.
selector:
@caglarsayin
caglarsayin / allocate_table.py
Last active July 2, 2020 10:21
Allocate_table.py
import gspread
import os
creds_file_name = os.environ['creds_file_name']
gc = gspread.service_account(filename=creds_file_name)
sh = gc.open("DH HQ 1st floor reservations")
for i in sh.worksheets():
if "Week" in i.title:
last_week = i
---------------
MATCH (u:User)-[r:AdminTo|MemberOf*1..]->(c:Computer)
RETURN u.name
That’ll return a list of users who have admin rights on at least one system either explicitly or through group membership
---------------
MATCH
(U:User)-[r:MemberOf|:AdminTo*1..]->(C:Computer)
10000
10001
1010
102
1023
1024
10243
1025
10250
104

Keybase proof

I hereby claim:

  • I am caglarsayin on github.
  • I am caglar (https://keybase.io/caglar) on keybase.
  • I have a public key ASAbcJITiIDqmZfFnBN2QJsSBAxT14rGzxS9rkzLGkweigo

To claim this, I am signing this object:

[
{
"name":"github",
"cname_pattern":["*.github.io", "github.map.fastly.net"],
"regex_pattern":["There isn't a GitHub Pages site here.", "For root URLs (like http://example.com/) you must provide an index.html file"]
},
{
"name":"heroku",
"cname_pattern":["*.herokudns.com", "herokussl.com", "herokuapp.com"],
"regex_pattern":["There's nothing here, yet.", "herokucdn.com/error-pages/no-such-app.html", "<title>No such app</title>"]
.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/usr/share/bash-completion/bash_completion
/
/%09/google.com
/%2f%2fgoogle.com
/%5cgoogle.com
/.google.com
//%09/google.com
//%5cgoogle.com
///%09/google.com
///%5cgoogle.com