Skip to content

Instantly share code, notes, and snippets.

View salimkayabasi's full-sized avatar
🎯
Representy ⚡️

Salim KAYABASI salimkayabasi

🎯
Representy ⚡️
View GitHub Profile
blueprint:
name: Low battery level detection & notification (Interval Check) v2.1
description: Regularly test all sensors with 'battery' device-class for crossing
a certain battery level threshold and if so execute an action. The check runs at a configurable
interval and sends a notification via a selected service.
domain: automation
input:
threshold:
name: Battery warning level threshold
description: Battery sensors below threshold are assumed to be low-battery (as
blueprint:
name: Ecovacs Paused Resume (with Retry Limit)
description: Automatically triggers the Ecovacs robot to continue if it pauses, but stops retrying after a set limit. Sends notifications for all events.
domain: automation
source_url: https://gist.github.com/salimkayabasi/c6d3faeead35b1e42cc625ddd285fac2
input:
vacuum_entity:
name: Ecovacs Robot Vacuum
description: The entity_id of your Ecovacs robot vacuum (e.g., vacuum.my_robot).
selector:
blueprint:
name: Window Open - Climate Off/On (Flexible Notification)
description: |
Automatically turns off a climate device when a window sensor is opened, and returns
it to 'auto' mode when the window is closed. Notification handling is provided by the user.
domain: automation
source_url: https://gist.github.com/salimkayabasi/f387083bf2f07a12cdf39da9f8e30dc0
input:
window_sensor:
name: Window/Door Sensor
@salimkayabasi
salimkayabasi / .gitignore
Created August 22, 2017 09:34
common .gitignore configuration
.idea/
config/runtime.*
config/*.json
jest/
build/
dist/
### Windows template
# Windows thumbnail cache files
Thumbs.db
@salimkayabasi
salimkayabasi / phantomjs_intaller.sh
Last active February 19, 2016 13:24 — forked from wbotelhos/phantomjs_intaller.sh
Installing PhantomJS 2.1.1 on Ubuntu x64/x86
#!/bin/bash
sudo apt-get remove phantomjs
sudo unlink /usr/local/bin/phantomjs
sudo unlink /usr/local/share/phantomjs
sudo unlink /usr/bin/phantomjs
cd /usr/local/share
@salimkayabasi
salimkayabasi / remove-apps.bat
Last active October 18, 2016 05:58
how to get rid of windows 10 apps
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
Get-AppxPackage *solitairecollection* | Remove-AppxPackage
@salimkayabasi
salimkayabasi / flash-all.bat
Created July 13, 2015 22:40
hammerhead-HHZ12h
PATH=%PATH%;"%SYSTEMROOT%\System32"
adb reboot bootloader
fastboot flash bootloader bootloader-hammerhead-HHZ12h.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-hammerhead-M8974A-2.0.50.2.26.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash recovery recovery.img
fastboot flash boot boot.img
# credit: http://haacked.com/archive/2014/07/28/github-flow-aliases/
[user]
email = [email protected]
name = Salim KAYABASI
[core]
autocrlf = input
# editor = 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
editor = /Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl -n -w
eol = lf
[color]
@salimkayabasi
salimkayabasi / googlemapsThemes.js
Created May 24, 2014 20:07
some colorful themes for google maps
var themeArray = {
"snazzy": [
{"featureType": "water", "elementType": "geometry", "stylers": [
{"color": "#333739"}
]},
{"featureType": "landscape", "elementType": "geometry", "stylers": [
{"color": "#2ecc71"}
]},
{"featureType": "poi", "stylers": [
{"color": "#2ecc71"},
window.mobilecheck = function() {
var check = false;
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v